Files
itgmania212121/stepmania/src/arch/Sound/CAHelpers.h
T
Glenn Maynard bee8234100 fix potential memory leak
increase decoder thread priority
init the hardware stream in the driver, not in the converter
2004-03-28 21:18:21 +00:00

29 lines
711 B
C++

#ifndef CA_HELPERS_H
#define CA_HELPERS_H
#include "FormatConverterClient.h"
#include "CAStreamBasicDescription.h"
typedef CAStreamBasicDescription Desc;
class AudioConverter : public FormatConverterClient
{
public:
AudioConverter( RageSound_CA *driver, const Desc &procFormat );
~AudioConverter() { delete mBuffer; }
protected:
OSStatus FormatConverterInputProc(UInt32& ioNumberDataPackets,
AudioBufferList& ioData,
AudioStreamPacketDescription **outDesc);
private:
static Desc FindClosestFormat(const vector<Desc>& formats);
RageSound_CA *mDriver;
UInt8 *mBuffer;
UInt32 mBufferSize;
};
#endif