[MPlayer-dev-eng] [PATCH] Mac OS X Audio with AudioUnits and AudioToolbox format converters
Nicolas Plourde
nicolas.plourde at sympatico.ca
Sun Jun 5 18:49:15 CEST 2005
On 29-May-05, at 10:03 AM, Chris Roccati wrote:
> Hello,
> after some fiddling, it became apparent (to me, atleast) that using
> the "raw" CoreAudio for audio output is not going to work in all
> cases, and "fixing" it is troublesome: for example changing the
> sample rate takes a random amount of time, because all the
> applications involved in audio output must be notified, all the
> conversion filter chains must be rebuilt and so on. The way
> ao_macosx.c handles that simply can't be fixed.
>
> This patch proposes a move from the "raw" CoreAudio to the AudioUnit
> +AudioToolbox frameworks.
> The change provides several advantages, for example a better
> cooperation with other audio playing applications and (potential)
> usage of hardware accelerated sample rate and sample format
> conversion.
>
> (Atleast with my hardware case, the "clicks" in AC3 conversion are
> gone too.)
>
> The changed files are:
>
> libao2/ao_macosx.c
> use AudioUnits instead CoreAudio and provide sample rate and format
> conversion via AudioToolbox
>
> configure
> added the -framework AudioUnits and -framework AudioToolbox to the
> list of required frameworks.
>
>
> <ao_macosx_audiounits.patch>
>
>
commited.
====
Nicolas Plourde <nicolas.plourde at sympatico.ca>
More information about the MPlayer-dev-eng
mailing list