changeset 15448:324046793f7c

indicate the number of channels required, patch by Chris Roccati <roccati@pobox.com>
author nplourde
date Sat, 14 May 2005 01:14:58 +0000
parents a246c4454efc
children a7966365a197
files libao2/ao_macosx.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) {