fixed device queries for numChannels and sampleRates,
one CoreAudio device now maps to separate input and output PaDevices,
audio input works if using same CoreAudio device (some HW devices make separate CoreAudio devices).
+ 2.22.2002 - Stephane Letz - Explicit cast needed for compilation with Code Warrior 7
+
TODO:
O- conversion for other user formats besides paFloat32
ERR_RPT(("No Devices Available\n"));
// make space for the devices we are about to get
- sCoreDeviceIDs = malloc(outSize);
+ sCoreDeviceIDs = (AudioDeviceID *)malloc(outSize);
// get an array of AudioDeviceIDs
err = AudioHardwareGetProperty(kAudioHardwarePropertyDevices, &outSize, (void *)sCoreDeviceIDs);
err = AudioDeviceGetPropertyInfo(deviceID, 0, isInput, kAudioDevicePropertyDeviceName, &outSize, &outWritable);
if (err == noErr)
{
- deviceName = malloc( outSize + 1);
+ deviceName = (char*)malloc( outSize + 1);
if( deviceName )
{
err = AudioDeviceGetProperty(deviceID, 0, isInput, kAudioDevicePropertyDeviceName, &outSize, deviceName);
gotOutput = 0;
if( past->past_NumOutputChannels > 0 )
{
- outBufPtr = outOutputData->mBuffers[0].mData,
+ outBufPtr = (char*)outOutputData->mBuffers[0].mData,
gotOutput = 1;
}
inBufPtr = NULL;
if( past->past_NumInputChannels > 0 )
{
- inBufPtr = inInputData->mBuffers[0].mData,
+ inBufPtr = (char*)inInputData->mBuffers[0].mData,
gotInput = 1;
}
*/
static void PaHost_CalcHostBufferSize( internalPortAudioStream *past )
{
- PaHostSoundControl *pahsc = past->past_DeviceData;
+ PaHostSoundControl *pahsc = ( PaHostSoundControl *)past->past_DeviceData;
unsigned int minNumUserBuffers;
// Determine number of user buffers based on minimum latency.