# HG changeset patch # User nplourde # Date 1116033298 0 # Node ID 324046793f7c2dc9b8a77fe38a490cee79d56573 # Parent a246c4454efc27c8960c91f3a08a3aca0e6ee972 indicate the number of channels required, patch by Chris Roccati diff -r a246c4454efc -r 324046793f7c libao2/ao_macosx.c --- a/libao2/ao_macosx.c Fri May 13 23:19:06 2005 +0000 +++ b/libao2/ao_macosx.c Sat May 14 01:14:58 2005 +0000 @@ -337,6 +337,7 @@ memset(&ao->outputStreamBasicDescription,0,propertySize); ao->outputStreamBasicDescription.mSampleRate=rate; ao->outputStreamBasicDescription.mFormatID=kAudioFormatLinearPCM; + ao->outputStreamBasicDescription.mChannelsPerFrame=channels; // status = AudioDeviceGetProperty(ao->outputDeviceID, 0, false, kAudioStreamPropertyPhysicalFormatMatch, &propertySize, &ao->outputStreamBasicDescription); status = AudioDeviceGetProperty(ao->outputDeviceID, 0, false, kAudioDevicePropertyStreamFormatMatch, &propertySize, &ao->outputStreamBasicDescription); if (status || ao->outputStreamBasicDescription.mFormatID!=kAudioFormatLinearPCM) {