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

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

Issue 3006793002: Removes unused WaveOut APIs from ADM (Closed)
Patch Set: Created 3 years, 4 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_impl.cc
diff --git a/webrtc/modules/audio_device/audio_device_impl.cc b/webrtc/modules/audio_device/audio_device_impl.cc
index d7ab4092ee86c7f0221337495488496101540434..bae4f6a4ef17ee26d542f7b4be3ed646f0d19a57 100644
--- a/webrtc/modules/audio_device/audio_device_impl.cc
+++ b/webrtc/modules/audio_device/audio_device_impl.cc
@@ -575,40 +575,6 @@ int32_t AudioDeviceModuleImpl::SpeakerVolume(uint32_t* volume) const {
return (0);
}
-// ----------------------------------------------------------------------------
-// SetWaveOutVolume
-// ----------------------------------------------------------------------------
-
-int32_t AudioDeviceModuleImpl::SetWaveOutVolume(uint16_t volumeLeft,
- uint16_t volumeRight) {
- LOG(INFO) << __FUNCTION__ << "(" << volumeLeft << ", " << volumeRight << ")";
- CHECK_INITIALIZED();
- return (_ptrAudioDevice->SetWaveOutVolume(volumeLeft, volumeRight));
-}
-
-// ----------------------------------------------------------------------------
-// WaveOutVolume
-// ----------------------------------------------------------------------------
-
-int32_t AudioDeviceModuleImpl::WaveOutVolume(uint16_t* volumeLeft,
- uint16_t* volumeRight) const {
- LOG(INFO) << __FUNCTION__;
- CHECK_INITIALIZED();
-
- uint16_t volLeft(0);
- uint16_t volRight(0);
-
- if (_ptrAudioDevice->WaveOutVolume(volLeft, volRight) == -1) {
- return -1;
- }
-
- *volumeLeft = volLeft;
- *volumeRight = volRight;
- LOG(INFO) << "output: " << *volumeLeft << ", " << *volumeRight;
-
- return (0);
-}
-
// ----------------------------------------------------------------------------
// SpeakerIsInitialized
// ----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698