| Index: media/audio/win/core_audio_util_win.cc
|
| diff --git a/media/audio/win/core_audio_util_win.cc b/media/audio/win/core_audio_util_win.cc
|
| index 2c262b4e72d37026199881a3fdaae3ef37601964..912085d2d9cea75d88299c172a67542d11be1424 100644
|
| --- a/media/audio/win/core_audio_util_win.cc
|
| +++ b/media/audio/win/core_audio_util_win.cc
|
| @@ -549,34 +549,6 @@ ScopedComPtr<IAudioRenderClient> CoreAudioUtil::CreateRenderClient(
|
| DVLOG(1) << "IAudioClient::GetService: " << std::hex << hr;
|
| return ScopedComPtr<IAudioRenderClient>();
|
| }
|
| -
|
| - // TODO(henrika): verify that this scheme is the same for shared mode and
|
| - // exclusive mode streams.
|
| -
|
| - // Avoid start-up glitches by filling up the endpoint buffer with "silence"
|
| - // before starting the stream.
|
| - UINT32 endpoint_buffer_size = 0;
|
| - hr = client->GetBufferSize(&endpoint_buffer_size);
|
| - DVLOG_IF(1, FAILED(hr)) << "IAudioClient::GetBufferSize: " << std::hex << hr;
|
| -
|
| - BYTE* data = NULL;
|
| - hr = audio_render_client->GetBuffer(endpoint_buffer_size, &data);
|
| - DVLOG_IF(1, FAILED(hr)) << "IAudioRenderClient::GetBuffer: "
|
| - << std::hex << hr;
|
| - if (SUCCEEDED(hr)) {
|
| - // Using the AUDCLNT_BUFFERFLAGS_SILENT flag eliminates the need to
|
| - // explicitly write silence data to the rendering buffer.
|
| - hr = audio_render_client->ReleaseBuffer(endpoint_buffer_size,
|
| - AUDCLNT_BUFFERFLAGS_SILENT);
|
| - DVLOG_IF(1, FAILED(hr)) << "IAudioRenderClient::ReleaseBuffer: "
|
| - << std::hex << hr;
|
| - }
|
| -
|
| - // Sanity check: verify that the endpoint buffer is filled with silence.
|
| - UINT32 num_queued_frames = 0;
|
| - client->GetCurrentPadding(&num_queued_frames);
|
| - DCHECK(num_queued_frames == endpoint_buffer_size);
|
| -
|
| return audio_render_client;
|
| }
|
|
|
|
|