X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fpcm_reader.h;h=1dfef34b78952164ce500c31a7b9faaa5d22c22f;hb=556a3db11b01f05a3895537270a6b1b4aa816113;hp=b9490a49e6f08faabcd0f6a9c2d6695216988619;hpb=1af8624b009faf5bc6b9b8dfa76676483da5f6cf;p=fdkaac.git diff --git a/src/pcm_reader.h b/src/pcm_reader.h index b9490a4..1dfef34 100644 --- a/src/pcm_reader.h +++ b/src/pcm_reader.h @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2013 nu774 + * For conditions of distribution and use, see copyright notice in COPYING + */ #ifndef PCM_READER_H #define PCM_READER_H @@ -85,7 +89,7 @@ uint32_t bitcount(uint32_t bits) int pcm_read(pcm_io_context_t *io, void *buffer, uint32_t size); int pcm_skip(pcm_io_context_t *io, int64_t count); -static int pcm_seek(pcm_io_context_t *io, int64_t off, int whence) +static inline int pcm_seek(pcm_io_context_t *io, int64_t off, int whence) { return io->vtbl->seek ? io->vtbl->seek(io->cookie, off, whence) : -1; } @@ -109,4 +113,6 @@ int apple_chan_chunk(pcm_io_context_t *io, uint32_t chunk_size, pcm_reader_t *pcm_open_sint16_converter(pcm_reader_t *reader); +pcm_reader_t *extrapolater_open(pcm_reader_t *reader); + #endif