diff options
Diffstat (limited to 'audio/out')
-rwxr-xr-x | audio/out/ao_wasapi.h | 1 | ||||
-rwxr-xr-x | audio/out/ao_wasapi_utils.c | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/audio/out/ao_wasapi.h b/audio/out/ao_wasapi.h index c61ba8e4d3..7f15e90332 100755 --- a/audio/out/ao_wasapi.h +++ b/audio/out/ao_wasapi.h @@ -103,7 +103,6 @@ typedef struct wasapi_state { /* format info */ 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 */ change_notify change; diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index b008657b44..542334fbc4 100755 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -694,9 +694,6 @@ reinit: EXIT_ON_ERROR(hr); ao->device_buffer = state->bufferFrameCount; - state->buffer_block_size = state->format.Format.nChannels * - state->format.Format.wBitsPerSample / 8 * - state->bufferFrameCount; bufferDuration = (REFERENCE_TIME) ((10000.0 * 1000 / state->format.Format.nSamplesPerSec * state->bufferFrameCount) + 0.5); @@ -715,9 +712,6 @@ reinit: 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; exit_label: MP_ERR(state, "Error initializing device: %s\n", mp_HRESULT_to_str(hr)); |