| Index: media/audio/audio_device_thread.cc
|
| diff --git a/media/audio/audio_device_thread.cc b/media/audio/audio_device_thread.cc
|
| index a0f283ee5638ae49c01637c402c511700b942dfe..9447293979415cccca39977c937f55c0d9f4f576 100644
|
| --- a/media/audio/audio_device_thread.cc
|
| +++ b/media/audio/audio_device_thread.cc
|
| @@ -183,8 +183,15 @@ void AudioDeviceThread::Thread::Run() {
|
| callback_->Process(pending_data);
|
| }
|
|
|
| - // Let the other end know which buffer we just filled. The buffer index is
|
| - // used to ensure the other end is getting the buffer it expects. For more
|
| + // The usage of |synchronized_buffers_| differs between input and output
|
| + // cases.
|
| + // Input:
|
| + // Let the other end know that we have read data, so that it can verify
|
| + // it doesn't overwrite any data before read. The |buffer_index| value is
|
| + // not used. For more details, see AudioInputSyncWriter::Write().
|
| + // Output:
|
| + // Let the other end know which buffer we just filled. The |buffer_index| is
|
| + // used to ensure the other end is getting the buffer it expects. For more
|
| // details on how this works see AudioSyncReader::WaitUntilDataIsReady().
|
| if (synchronized_buffers_) {
|
| ++buffer_index;
|
|
|