| 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 | |
| 15 | BoCA_BEGIN_COMPONENT(DecoderVoc) |
| 16 | |
| 17 | namespace BoCA |
| 18 | { |
| 19 | class DecoderVoc : public CS::DecoderComponent |
| 20 | { |
| 21 | private: |
| 22 | Int bytesLeft; |
| 23 | public: |
| 24 | static const String &GetComponentSpecs(); |
| 25 | |
| 26 | DecoderVoc(); |
| 27 | ~DecoderVoc(); |
| 28 | |
| 29 | Bool CanOpenStream(const String &); |
| 30 | Error GetStreamInfo(const String &, Track &); |
| 31 | |
| 32 | Bool Activate(); |
| 33 | |
| 34 | Int ReadData(Buffer<UnsignedByte> &); |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | BoCA_DEFINE_DECODER_COMPONENT(DecoderVoc) |
| 39 | |
| 40 | BoCA_END_COMPONENT(DecoderVoc) |