mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 03:10:55 +00:00
ao_wasapi: remove useless buffer_block_size
this was only ever used for a verbose message
This commit is contained in:
parent
cbc951d491
commit
099fdde7a4
@ -103,7 +103,6 @@ typedef struct wasapi_state {
|
|||||||
|
|
||||||
/* format info */
|
/* format info */
|
||||||
WAVEFORMATEXTENSIBLE format;
|
WAVEFORMATEXTENSIBLE format;
|
||||||
size_t buffer_block_size; /* Size of each block in bytes */
|
|
||||||
UINT32 bufferFrameCount; /* wasapi buffer block size, number of frames, frame size at format.nBlockAlign */
|
UINT32 bufferFrameCount; /* wasapi buffer block size, number of frames, frame size at format.nBlockAlign */
|
||||||
|
|
||||||
change_notify change;
|
change_notify change;
|
||||||
|
@ -694,9 +694,6 @@ reinit:
|
|||||||
EXIT_ON_ERROR(hr);
|
EXIT_ON_ERROR(hr);
|
||||||
|
|
||||||
ao->device_buffer = state->bufferFrameCount;
|
ao->device_buffer = state->bufferFrameCount;
|
||||||
state->buffer_block_size = state->format.Format.nChannels *
|
|
||||||
state->format.Format.wBitsPerSample / 8 *
|
|
||||||
state->bufferFrameCount;
|
|
||||||
bufferDuration =
|
bufferDuration =
|
||||||
(REFERENCE_TIME) ((10000.0 * 1000 / state->format.Format.nSamplesPerSec *
|
(REFERENCE_TIME) ((10000.0 * 1000 / state->format.Format.nSamplesPerSec *
|
||||||
state->bufferFrameCount) + 0.5);
|
state->bufferFrameCount) + 0.5);
|
||||||
@ -715,9 +712,6 @@ reinit:
|
|||||||
mp_LastError_to_str());
|
mp_LastError_to_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
MP_VERBOSE(state, "Format fixed. Using %lld byte buffer block size\n",
|
|
||||||
(long long) state->buffer_block_size);
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
exit_label:
|
exit_label:
|
||||||
MP_ERR(state, "Error initializing device: %s\n", mp_HRESULT_to_str(hr));
|
MP_ERR(state, "Error initializing device: %s\n", mp_HRESULT_to_str(hr));
|
||||||
|
Loading…
Reference in New Issue
Block a user