summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi_utils.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-12-20 17:46:50 -0800
committerKevin Mitchell <kevmitch@gmail.com>2015-12-21 05:03:09 -0800
commit099fdde7a4dade4d2cae24cbda607b0680593735 (patch)
treea0a629cdf5a7d3c78543748c069428b7d1edbf15 /audio/out/ao_wasapi_utils.c
parentcbc951d491cd092dd8c53fab895be389a7ee1892 (diff)
downloadmpv-099fdde7a4dade4d2cae24cbda607b0680593735.tar.bz2
mpv-099fdde7a4dade4d2cae24cbda607b0680593735.tar.xz
ao_wasapi: remove useless buffer_block_size
this was only ever used for a verbose message
Diffstat (limited to 'audio/out/ao_wasapi_utils.c')
-rwxr-xr-xaudio/out/ao_wasapi_utils.c6
1 files changed, 0 insertions, 6 deletions
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));