summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-08 01:52:48 +0200
committerwm4 <wm4@nowhere>2014-08-08 01:56:23 +0200
commitb4f72b46e5a5d804e52e1e8fdbebe7493509ba73 (patch)
treefb66baea68278f5c1940cc8d3f844fea86be9552 /audio
parent90ec3334174e80c16f00971886223a3afabc1aca (diff)
downloadmpv-b4f72b46e5a5d804e52e1e8fdbebe7493509ba73.tar.bz2
mpv-b4f72b46e5a5d804e52e1e8fdbebe7493509ba73.tar.xz
ao_dsound: reduce default buffer size
Reduce from 1000ms to 100ms. Since there is an audio thread updating AOs quickly enough now, requesting such a large buffer size makes no sense anymore.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_dsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_dsound.c b/audio/out/ao_dsound.c
index e8d37e48f7..e313c7d440 100644
--- a/audio/out/ao_dsound.c
+++ b/audio/out/ao_dsound.c
@@ -403,7 +403,7 @@ static int init(struct ao *ao)
ao->samplerate = rate;
ao->format = format;
ao->bps = ao->channels.num * rate * af_fmt2bps(format);
- int buffersize = ao->bps; // space for 1 sec
+ int buffersize = ao->bps * 0.100; // space for 100ms
MP_VERBOSE(ao, "Samplerate:%iHz Channels:%i Format:%s\n", rate,
ao->channels.num, af_fmt_to_str(format));
MP_VERBOSE(ao, "Buffersize:%d bytes (%d msec)\n",