diff options
author | wm4 <wm4@mplayer2.org> | 2012-04-27 11:26:04 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-05-06 17:57:44 +0300 |
commit | cd21ce3779d40e36ac2b49811679e30cc07ed357 (patch) | |
tree | 99a9e52c82ffbe0712d713050edd4668123b65b7 /libao2/audio_out.c | |
parent | bb908027178fe8bfd7d6e3fc255dea8c5051cd4a (diff) | |
download | mpv-cd21ce3779d40e36ac2b49811679e30cc07ed357.tar.bz2 mpv-cd21ce3779d40e36ac2b49811679e30cc07ed357.tar.xz |
ao_portaudio: add new PortAudio audio output driver
This AO has potential to be useful on platforms other than Linux. On
Windows in particular, PortAudio can make use of newer/better audio
APIs like WASAPI, instead of DirectSound.
As an implementation choice, the PortAudio callback API was used. The
blocking API might be a better match for mplayer's requirements, but
caused severe problems on Linux/ALSA (possibly PortAudio bugs).
Diffstat (limited to 'libao2/audio_out.c')
-rw-r--r-- | libao2/audio_out.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libao2/audio_out.c b/libao2/audio_out.c index 268c17d749..d9a81b93b6 100644 --- a/libao2/audio_out.c +++ b/libao2/audio_out.c @@ -55,6 +55,7 @@ extern const struct ao_driver audio_out_v4l2; extern const struct ao_driver audio_out_mpegpes; extern const struct ao_driver audio_out_pcm; extern const struct ao_driver audio_out_pss; +extern const struct ao_driver audio_out_portaudio; static const struct ao_driver * const audio_out_drivers[] = { // native: @@ -82,6 +83,9 @@ static const struct ao_driver * const audio_out_drivers[] = { #ifdef CONFIG_OSS_AUDIO &audio_out_oss, #endif +#ifdef CONFIG_PORTAUDIO + &audio_out_portaudio, +#endif #ifdef CONFIG_SGI_AUDIO &audio_out_sgi, #endif |