Debian Codegraph @

components/decoder/winamp/winamp.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2017 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
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)