diff options
author | wm4 <wm4@nowhere> | 2014-03-14 22:37:19 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-14 22:37:46 +0100 |
commit | 16596d025a4b84c696dd300b80fe27024f262ab5 (patch) | |
tree | cda5f00ceb2c0b15b3f03400ec55dd3d353dc664 /audio/out/ao.c | |
parent | c473635f6611ad5277a8c092854c4911ec8fb18a (diff) | |
download | mpv-16596d025a4b84c696dd300b80fe27024f262ab5.tar.bz2 mpv-16596d025a4b84c696dd300b80fe27024f262ab5.tar.xz |
ao: print (estimated) device buffer size on init in verbose mode
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r-- | audio/out/ao.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |