summaryrefslogtreecommitdiffstats
path: root/libao2/audio_out.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-05-05 21:34:17 +0300
committerUoti Urpala <uau@mplayer2.org>2011-05-05 21:34:17 +0300
commit40f6ab5064a628dc11b79b5e571dc9444efac093 (patch)
treed5217e4e08b5a8ebd16c323c69df2b45c85222ed /libao2/audio_out.h
parent2fae42d00e7f8a4a8e0e39bd5e84836a26d3755a (diff)
downloadmpv-40f6ab5064a628dc11b79b5e571dc9444efac093.tar.bz2
mpv-40f6ab5064a628dc11b79b5e571dc9444efac093.tar.xz
ao_pcm, core: use new API in ao_pcm, change timing with it
Change ao_pcm to use the new audio output driver API and clean up some of the code. Rewrite the logic controlling how playback timing works when using -ao pcm. Deprecate the "fast" suboption; its only effect now is to print a warning, but it's still accepted so that specifying it is not an error. Before, timing with -ao pcm and video enabled had two possible modes. In the default mode playback speed was rather arbitrary - not realtime, but not particularly fast. -ao pcm:fast tried to play back at maximum video playback speed - mostly succeeding, but not quite guaranteed to work in all cases. Now the default is to play at realtime speed. The -benchmark option can now be used to get faster playback (same as the video-only case). In the audio-only case playback is always maximum speed.
Diffstat (limited to 'libao2/audio_out.h')
-rw-r--r--libao2/audio_out.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index c60819e545..fb62923297 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -72,6 +72,7 @@ struct ao {
int buffersize;
int pts;
bool initialized;
+ bool untimed;
const struct ao_driver *driver;
void *priv;
};