[MPlayer-users] audio not available on mac

thyme pancakes newsbought at hotmail.com
Fri Jan 5 06:05:50 CET 2007


I ran into the exact same problem and I've posted a fix here.

http://bugzilla.bunkus.org./show_bug.cgi?id=706

I'm still not sure if it's the correct fix but it does get sound working on 
Mac OS Panther.

It involves a change in the ao_macosx.c file in the libao2 directory. In the 
init function there is a call to AudioUnitGetProperty with the enum value of 
'bsiz' as one of the parameters. (kAudioDevicePropertyBufferSize == 'bsiz' 
!= AudioUnitPropertyID. That is why we are getting a garbage value 
returned.)

replace that code with
--------------------------------
	size = sizeof(UInt32);
	maxFrames = 0;
	err = AudioUnitGetProperty(ao->theOutputUnit, 
kAudioDevicePropertyBufferFrameSize, kAudioUnitScope_Input, 0, &maxFrames, 
&size);
	if (err)
	{
		ao_msg(MSGT_AO,MSGL_WARN, "AudioUnitGetProperty returned %d when getting 
kAudioDevicePropertyBufferFrameSize\n", (int)err);
		return CONTROL_FALSE;
	}
--------------------------------

and sound will work.

Try it if you like.

_________________________________________________________________
Discover Live.ca, the search engine by the creators of Windows Live 
Messenger http://www.live.com/?mkt=en-ca




More information about the MPlayer-users mailing list