[MPlayer-dev-eng] Weird audio with Mac OS X 10.4

Chris Roccati roccati at pobox.com
Sun May 15 19:39:32 CEST 2005


On May 14, 2005, at 13:26 , Nicolas Plourde wrote:

>> The attached patch, adds to the requested format the number of  
>> channels.
> commited. thank you.

The audio is still quite quirky:  
kAudioStreamPropertyPhysicalFormatMatch will still try to return a  
mono stream format most of the times. Point is, apparently, less you  
provide, better the result wil be.
In the end, CoreAudio will ALWAYS give you 32 bits float audio anyway  
so, there's no reason to ask anything else; mBytesPerPacket and  
mBytesPerFrame will be used even if the audio format is not what you  
asked, so setting them will lead to 32 bits MONO if you asked 16 bits  
STEREO.

The attached patch simplifies the format matching logic, yelding at  
worst the same results as before, and fixing the "unwanted mono"  
malfunction in many cases. It still works fine under Mac OS X 10.3.9.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: ao_macosx.patch
Type: application/octet-stream
Size: 4918 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050515/2a87ae79/attachment.obj>


More information about the MPlayer-dev-eng mailing list