]> iEval git - fdkaac.git/blame_incremental - src/wav_reader.h
cleanup metadata handling
[fdkaac.git] / src / wav_reader.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 2013 nu774
3 * For conditions of distribution and use, see copyright notice in COPYING
4 */
5#ifndef WAV_READER_H
6#define WAV_READER_H
7
8#include "lpcm.h"
9#include "pcm_reader.h"
10
11enum wav_error_code {
12 WAV_IO_ERROR = 1,
13 WAV_NO_MEMORY,
14 WAV_INVALID_FORMAT,
15 WAV_UNSUPPORTED_FORMAT
16};
17
18typedef int (*wav_read_callback)(void *cookie, void *data, uint32_t size);
19typedef int (*wav_seek_callback)(void *cookie, int64_t off, int whence);
20typedef int64_t (*wav_tell_callback)(void *cookie);
21
22typedef struct wav_io_context_t {
23 wav_read_callback read;
24 wav_seek_callback seek;
25 wav_tell_callback tell;
26} wav_io_context_t;
27
28typedef struct wav_reader_t wav_reader_t;
29
30pcm_reader_t *wav_open(wav_io_context_t *io_ctx, void *io_cookie,
31 int ignore_length);
32pcm_reader_t *raw_open(wav_io_context_t *io_ctx, void *io_cookie,
33 const pcm_sample_description_t *desc);
34
35#endif
This page took 0.024374 seconds and 4 git commands to generate.