mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-15 01:34:54 -05:00
21 lines
No EOL
656 B
C++
21 lines
No EOL
656 B
C++
#pragma once
|
|
#include "../nsavi/avi_header.h"
|
|
#include "../Plugins/Input/in_avi/ifc_aviaudiodecoder.h"
|
|
|
|
class AVIULawDecoder : public ifc_aviaudiodecoder
|
|
{
|
|
public:
|
|
AVIULawDecoder(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;
|
|
}; |