[MPlayer-dev-eng] Weird audio with Mac OS X 10.4
Chris Roccati
roccati at pobox.com
Mon May 9 22:33:01 CEST 2005
On May 6, 2005, at 23:55 , Chris Roccati wrote:
> Hello all,
> there must be something wrong in the ao_macosx.c code which tries
> to change the audio sampling rate: with the USB Audio of the G4
> cube it works fine under Mac OS 10.3.x but it will try to set the
> configuration to something weird under Mac OS X 10.4. Everything
> works fine ommenting out the lines 366/367/368 (the code that calls
> AudioDeviceSetProperty()) even if, atleast in theory, the code is
> actually trying to set the format to the one actually in use.
If found what's wrong: in the AudioDeviceGetProperty call for
kAudioDevicePropertyStreamFormatMatch, the stream description does
not indicate the number of channels required. The first match,
atleast here is for a single channel audio.
The attached patch, adds to the requested format the number of channels.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ao_macosx.patch
Type: application/octet-stream
Size: 795 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050509/56da0ae3/attachment.obj>
More information about the MPlayer-dev-eng
mailing list