diff --git a/source/opus.c b/source/opus.c index d526719..58789b9 100644 --- a/source/opus.c +++ b/source/opus.c @@ -76,7 +76,7 @@ uint8_t channelOpus(void) */ uint64_t decodeOpus(void* buffer) { - return fillOpusBuffer(opusFile, buffer); + return fillOpusBuffer(buffer); } /** @@ -90,11 +90,10 @@ void exitOpus(void) /** * Decode Opus file to fill buffer. * - * \param opusFile File to decode. * \param bufferOut Pointer to buffer. * \return Samples read per channel. */ -uint64_t fillOpusBuffer(OggOpusFile* opusFile, int16_t* bufferOut) +uint64_t fillOpusBuffer(int16_t* bufferOut) { uint64_t samplesRead = 0; int samplesToRead = buffSize; diff --git a/source/opus.h b/source/opus.h index 4e88f02..174530a 100644 --- a/source/opus.h +++ b/source/opus.h @@ -15,6 +15,6 @@ void exitOpus(void); int playOpus(const char* in); -uint64_t fillOpusBuffer(OggOpusFile* opusFile, int16_t* bufferOut); +uint64_t fillOpusBuffer(int16_t* bufferOut); int isOpus(const char* in);