| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#include <boca.h> |
| 14 |
#include "dllinterface.h" |
| 15 |
|
| 16 |
BoCA_BEGIN_COMPONENT(DecoderWinamp) |
| 17 |
|
| 18 |
namespace BoCA |
| 19 |
{ |
| 20 |
class DecoderWinamp : public CS::DecoderComponent |
| 21 |
{ |
| 22 |
friend int Out_Open(int, int, int, int, int); |
| 23 |
friend int Out_CanWrite(); |
| 24 |
friend int Out_Write(char *, int); |
| 25 |
|
| 26 |
private: |
| 27 |
ConfigLayer *configLayer; |
| 28 |
|
| 29 |
Buffer<Byte> samplesBuffer; |
| 30 |
Threads::Mutex *samplesBufferMutex; |
| 31 |
Int64 samplesDone; |
| 32 |
|
| 33 |
Track *infoTrack; |
| 34 |
|
| 35 |
In_Module *module; |
| 36 |
|
| 37 |
In_Module *GetModuleForFile(const String &) const; |
| 38 |
public: |
| 39 |
static const String &GetComponentSpecs(); |
| 40 |
|
| 41 |
DecoderWinamp(); |
| 42 |
~DecoderWinamp(); |
| 43 |
|
| 44 |
Bool CanOpenStream(const String &); |
| 45 |
Error GetStreamInfo(const String &, Track &); |
| 46 |
|
| 47 |
Bool Activate(); |
| 48 |
Bool Deactivate(); |
| 49 |
|
| 50 |
Int ReadData(Buffer<UnsignedByte> &); |
| 51 |
|
| 52 |
ConfigLayer *GetConfigurationLayer(); |
| 53 |
}; |
| 54 |
}; |
| 55 |
|
| 56 |
BoCA_DEFINE_DECODER_COMPONENT(DecoderWinamp) |
| 57 |
|
| 58 |
BoCA_END_COMPONENT(DecoderWinamp) |