From 16596d025a4b84c696dd300b80fe27024f262ab5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 14 Mar 2014 22:37:19 +0100 Subject: ao: print (estimated) device buffer size on init in verbose mode --- audio/out/ao.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao.c b/audio/out/ao.c index d48b266122..32eff86ff0 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -180,8 +180,10 @@ static struct ao *ao_create(bool probing, struct mpv_global *global, } ao->bps = ao->samplerate * ao->sstride; - if (!ao->device_buffer && ao->driver->get_space) + if (!ao->device_buffer && ao->driver->get_space) { ao->device_buffer = ao->driver->get_space(ao); + MP_VERBOSE(ao, "device buffer: %d samples.\n", ao->device_buffer); + } ao->buffer = MPMAX(ao->device_buffer, MIN_BUFFER * ao->samplerate); MP_VERBOSE(ao, "using soft-buffer of %d samples.\n", ao->buffer); -- cgit v1.2.3