libcm/osx/cmAudioPortOsx.h
2012-10-29 20:52:39 -07:00

31 linhas
922 B
C

#ifndef cmAudioPortOsx_h
#define cmAudioPortOsx_h
#ifdef __cplusplus
extern "C" {
#endif
cmApRC_t cmApOsxInitialize( cmRpt_t* rpt );
cmApRC_t cmApOsxFinalize();
cmApRC_t cmApOsxDeviceCount();
const char* cmApOsxDeviceLabel( unsigned devIdx );
unsigned cmApOsxDeviceChannelCount( unsigned devIdx, bool inputFl );
double cmApOsxDeviceSampleRate( unsigned devIdx );
unsigned cmApOsxDeviceFramesPerCycle( unsigned devIdx, bool inputFl );
cmApRC_t cmApOsxDeviceSetup(
unsigned devIdx,
double srate,
unsigned framesPerCycle,
cmApCallbackPtr_t callbackPtr,
void* userCbPtr );
cmApRC_t cmApOsxDeviceStart( unsigned devIdx );
cmApRC_t cmApOsxDeviceStop( unsigned devIdx );
bool cmApOsxDeviceIsStarted( unsigned devIdx );
#ifdef __cplusplus
}
#endif
#endif