Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: webrtc/modules/audio_device/audio_device_buffer.cc

Issue 2054373002: FileWrapper[Impl] modifications and actually remove the "Impl" class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix compile error in func_test_manager.cc Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_device/audio_device_buffer.cc
diff --git a/webrtc/modules/audio_device/audio_device_buffer.cc b/webrtc/modules/audio_device/audio_device_buffer.cc
index 48ae88ee90477e7ec4b5c5b132a2840b9116c68e..4b0078ee3a1e0fd3f0e8e29596c66f3a8f667ae0 100644
--- a/webrtc/modules/audio_device/audio_device_buffer.cc
+++ b/webrtc/modules/audio_device/audio_device_buffer.cc
@@ -313,7 +313,7 @@ int32_t AudioDeviceBuffer::StartInputFileRecording(
_recFile.Flush();
_recFile.CloseFile();
- return (_recFile.OpenFile(fileName, false, false, false));
+ return (_recFile.OpenFile(fileName, false));
}
// ----------------------------------------------------------------------------
@@ -346,7 +346,7 @@ int32_t AudioDeviceBuffer::StartOutputFileRecording(
_playFile.Flush();
_playFile.CloseFile();
- return (_playFile.OpenFile(fileName, false, false, false));
+ return (_playFile.OpenFile(fileName, false));
}
// ----------------------------------------------------------------------------
@@ -424,7 +424,7 @@ int32_t AudioDeviceBuffer::SetRecordedBuffer(const void* audioBuffer,
}
}
- if (_recFile.Open())
+ if (_recFile.is_open())
{
// write to binary file in mono or stereo (interleaved)
_recFile.Write(&_recBuffer[0], _recSize);
@@ -572,7 +572,7 @@ int32_t AudioDeviceBuffer::GetPlayoutData(void* audioBuffer)
memcpy(audioBuffer, &_playBuffer[0], _playSize);
- if (_playFile.Open())
+ if (_playFile.is_open())
{
// write to binary file in mono or stereo (interleaved)
_playFile.Write(&_playBuffer[0], _playSize);

Powered by Google App Engine
This is Rietveld 408576698