Fix compiler warnings on Mac.
This commit is contained in:
parent
d2054b201e
commit
7a78469780
3 changed files with 4 additions and 2 deletions
|
|
@ -123,11 +123,12 @@ int main(void)
|
|||
outputParameters.sampleFormat = paFloat32; /* 32 bit floating point output */
|
||||
outputParameters.suggestedLatency = Pa_GetDeviceInfo( outputParameters.device )->defaultLowOutputLatency;
|
||||
|
||||
/* Use an ASIO specific structure. WARNING - this is not portable. */
|
||||
asioOutputInfo.size = sizeof(PaAsioStreamInfo);
|
||||
asioOutputInfo.hostApiType = paASIO;
|
||||
asioOutputInfo.version = 1;
|
||||
asioOutputInfo.flags = paAsioUseChannelSelectors;
|
||||
outputChannelSelectors[0] = 1; /* select the second (right) ASIO device channel */
|
||||
outputChannelSelectors[0] = 1; /* skip channel 0 and use the second (right) ASIO device channel */
|
||||
asioOutputInfo.channelSelectors = outputChannelSelectors;
|
||||
outputParameters.hostApiSpecificStreamInfo = &asioOutputInfo;
|
||||
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ static int QaCallback( const void *inputBuffer, void *outputBuffer,
|
|||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case paInt16:
|
||||
{
|
||||
short *out = (short *) outputBuffer;
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ static int TestBadActions( void )
|
|||
{
|
||||
PaStream* stream = NULL;
|
||||
const PaDeviceInfo* deviceInfo = NULL;
|
||||
PaError result;
|
||||
PaError result = 0;
|
||||
PaQaData myData;
|
||||
PaStreamParameters opp;
|
||||
const PaDeviceInfo* info = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue