{
int i;
for( i=0; i<auhalHostApi->devCount; ++i )
- printf( "Device %d\t: %ld\n", i, auhalHostApi->devIds[i] );
+ printf( "Device %d\t: %ld\n", i, (long)auhalHostApi->devIds[i] );
}
#endif
}
}
- VDBUG( ( "Default in : %ld\n", auhalHostApi->defaultIn ) );
- VDBUG( ( "Default out: %ld\n", auhalHostApi->defaultOut ) );
+ VDBUG( ( "Default in : %ld\n", (long)auhalHostApi->defaultIn ) );
+ VDBUG( ( "Default out: %ld\n", (long)auhalHostApi->defaultOut ) );
return paNoError;
}
if( inStreamParams && outStreamParams )
{
- VDBUG( ("Opened device %ld for input and output.\n", *audioDevice ) );
+ VDBUG( ("Opened device %ld for input and output.\n", (long)*audioDevice ) );
}
else if( inStreamParams )
{
- VDBUG( ("Opened device %ld for input.\n", *audioDevice ) );
+ VDBUG( ("Opened device %ld for input.\n", (long)*audioDevice ) );
}
else if( outStreamParams )
{
- VDBUG( ("Opened device %ld for output.\n", *audioDevice ) );
+ VDBUG( ("Opened device %ld for output.\n", (long)*audioDevice ) );
}
return paNoError;
#undef ERR_WRAP
}else{
VDBUG( ("Block Size unspecified. Based on Latency, the user wants a Block Size near: %ld.\n",
- resultBufferSizeFrames ) );
+ (long)resultBufferSizeFrames ) );
}
// Clip to the capabilities of the device.
ClipToDeviceBufferSize( auhalHostApi->devIds[outputParameters->device],
false, resultBufferSizeFrames, &resultBufferSizeFrames );
}
- VDBUG(("After querying hardware, setting block size to %ld.\n", resultBufferSizeFrames));
+ VDBUG(("After querying hardware, setting block size to %ld.\n", (long)resultBufferSizeFrames));
return resultBufferSizeFrames;
}
int i=0;
Float64 max = -1; /*the maximum rate available*/
Float64 best = -1; /*the lowest sample rate still greater than desired rate*/
- VDBUG(("Setting sample rate for device %ld to %g.\n",device,(float)desiredSrate));
+ VDBUG(("Setting sample rate for device %ld to %g.\n",(long)device,(float)desiredSrate));
/* -- try setting the sample rate -- */
srate = 0;