類別:HostApi
音訊驅動介面
類型 | 使用 | 成員 | 說明 |
建構子 | public | ||
解構子 | public | ||
列舉 | public | ||
資料 | public | ||
資料 | public | ||
資料 | public | ||
資料 | protected | ||
函式 | public | const StreamParameters * inputParameters , const StreamParameters * outputParameters , double sampleRate , CaUint32 framesPerCallback , CaStreamFlags streamFlags , Conduit * streamCallback ) = 0 |
|
函式 | public | ||
函式 | public | const StreamParameters * outputParameters , double sampleRate ) = 0 |
|
函式 | public | ||
函式 | public | ||
函式 | public | CaDeviceIndex * hostApiDevice , CaDeviceIndex device ) |
C/C++定義
class HostApi
{
public:
typedef enum {
NATIVE = 0 ,
UTF8 = 1 ,
UTF16 = 2 }
Encoding ;
unsigned long baseDeviceIndex ;
HostApiInfo info ;
DeviceInfo ** deviceInfos ;
explicit HostApi (void) ;
virtual ~HostApi (void) ;
virtual CaError Open (Stream ** stream ,
const StreamParameters * inputParameters ,
const StreamParameters * outputParameters ,
double sampleRate ,
CaUint32 framesPerCallback ,
CaStreamFlags streamFlags ,
Conduit * streamCallback ) = 0 ;
virtual void Terminate (void) = 0 ;
virtual CaError isSupported (const StreamParameters * inputParameters ,
const StreamParameters * outputParameters ,
double sampleRate ) = 0 ;
virtual Encoding encoding (void) const = 0 ;
virtual bool hasDuplex (void) const = 0 ;
void setDebugger (Debugger * debug) ;
virtual CaError ToHostDeviceIndex (
CaDeviceIndex * hostApiDevice ,
CaDeviceIndex device ) ;
protected:
Debugger * debugger ;
};typedef CaError HostApiInitializer(HostApi **,CaHostApiIndex) ;
extern HostApiInitializer ** caHostApiInitializers ;
extern void ReplaceHostApiInitializer ( HostApiInitializer ** replacement ) ;