|
Revision 1, 1.4 kB
(checked in by gbooker, 3 years ago)
|
Initial Import
|
| Line | |
|---|
| 1 |
/* |
|---|
| 2 |
A52 / AC-3 Codec Base Class |
|---|
| 3 |
2004, Shepmaster <shepmaster@applesolutions.com> |
|---|
| 4 |
|
|---|
| 5 |
Uses code from the CoreAudio SDK. |
|---|
| 6 |
*/ |
|---|
| 7 |
|
|---|
| 8 |
#if !defined(__ACShepA52Codec_h__) |
|---|
| 9 |
#define __ACShepA52Codec_h__ |
|---|
| 10 |
|
|---|
| 11 |
//============================================================================= |
|---|
| 12 |
// Includes |
|---|
| 13 |
//============================================================================= |
|---|
| 14 |
|
|---|
| 15 |
#include "ACSimpleCodec.h" |
|---|
| 16 |
#include <vector> |
|---|
| 17 |
|
|---|
| 18 |
//============================================================================= |
|---|
| 19 |
// ACShepA52Codec |
|---|
| 20 |
// |
|---|
| 21 |
// This class encapsulates the common implementation of an A/52 codec. |
|---|
| 22 |
// Basically we throw in a buffer... |
|---|
| 23 |
//============================================================================= |
|---|
| 24 |
|
|---|
| 25 |
class ACShepA52Codec : public ACSimpleCodec { |
|---|
| 26 |
|
|---|
| 27 |
// Construction/Destruction |
|---|
| 28 |
public: |
|---|
| 29 |
ACShepA52Codec(UInt32 inInputBufferByteSize); |
|---|
| 30 |
virtual ~ACShepA52Codec(); |
|---|
| 31 |
|
|---|
| 32 |
// Data Handling |
|---|
| 33 |
public: |
|---|
| 34 |
virtual void Initialize(const AudioStreamBasicDescription* inInputFormat, const AudioStreamBasicDescription* inOutputFormat, const void* inMagicCookie, UInt32 inMagicCookieByteSize); |
|---|
| 35 |
virtual void Reset(); |
|---|
| 36 |
|
|---|
| 37 |
virtual void GetProperty(AudioCodecPropertyID inPropertyID, UInt32& ioPropertyDataSize, void* outPropertyData); |
|---|
| 38 |
virtual void GetPropertyInfo(AudioCodecPropertyID inPropertyID, UInt32& outPropertyDataSize, bool& outWritable); |
|---|
| 39 |
virtual void ACShepA52Codec::ReallocateInputBuffer(UInt32 inInputBufferByteSize); |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
// Implementation |
|---|
| 43 |
protected: |
|---|
| 44 |
}; |
|---|
| 45 |
|
|---|
| 46 |
#endif |
|---|