mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
ao: print (estimated) device buffer size on init in verbose mode
This commit is contained in:
parent
c473635f66
commit
16596d025a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user