mirror of
https://github.com/mpv-player/mpv
synced 2025-04-10 03:31:32 +00:00
audio/out: always log retrieved audio device size
This commit is contained in:
parent
7697d300d2
commit
d96bd0eaa8
@ -236,10 +236,10 @@ static int ao_init(struct ao *ao)
|
|||||||
}
|
}
|
||||||
ao->bps = ao->samplerate * ao->sstride;
|
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);
|
ao->device_buffer = ao->driver->get_space(ao);
|
||||||
|
if (ao->device_buffer)
|
||||||
MP_VERBOSE(ao, "device buffer: %d samples.\n", ao->device_buffer);
|
MP_VERBOSE(ao, "device buffer: %d samples.\n", ao->device_buffer);
|
||||||
}
|
|
||||||
ao->buffer = MPMAX(ao->device_buffer, ao->def_buffer * ao->samplerate);
|
ao->buffer = MPMAX(ao->device_buffer, ao->def_buffer * ao->samplerate);
|
||||||
MP_VERBOSE(ao, "using soft-buffer of %d samples.\n", ao->buffer);
|
MP_VERBOSE(ao, "using soft-buffer of %d samples.\n", ao->buffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user