diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/pcm/avi_alaw_decoder.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/pcm/avi_alaw_decoder.h')
-rw-r--r-- | Src/pcm/avi_alaw_decoder.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Src/pcm/avi_alaw_decoder.h b/Src/pcm/avi_alaw_decoder.h new file mode 100644 index 00000000..38ad23f4 --- /dev/null +++ b/Src/pcm/avi_alaw_decoder.h @@ -0,0 +1,21 @@ +#pragma once +#include "../nsavi/avi_header.h" +#include "../Plugins/Input/in_avi/ifc_aviaudiodecoder.h" + +class AVIALawDecoder : public ifc_aviaudiodecoder +{ +public: + AVIALawDecoder(const nsavi::audio_format *waveformat); + +protected: + RECVS_DISPATCH; +private: + /* ifc_aviaudiodecoder implementation */ + int OutputFrameSize(size_t *frame_size); + int GetOutputProperties(unsigned int *sampleRate, unsigned int *channels, unsigned int *bitsPerSample, bool *isFloat); + int DecodeChunk(uint16_t type, void **inputBuffer, size_t *inputBufferBytes, void *outputBuffer, size_t *outputBufferBytes); + void Close(); + +private: + const nsavi::audio_format *waveformat; +};
\ No newline at end of file |