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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCAudioSource.mm

Issue 2534843002: Added support for changing the volume of RTCAudioSource as discussed in BUG=webrtc:6533 (Closed)
Patch Set: use @property for changing volume of RTCAudioSource Created 4 years, 1 month 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/sdk/objc/Framework/Classes/RTCAudioSource.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCAudioSource.mm b/webrtc/sdk/objc/Framework/Classes/RTCAudioSource.mm
index 897565244044e41433b4c05b053fb90d7fc87289..6e55281f1f468af2ee0d16a3bf2f43d064524619 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCAudioSource.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCAudioSource.mm
@@ -38,6 +38,11 @@ - (NSString *)description {
return [NSString stringWithFormat:@"RTCAudioSource( %p ): %@", self, stateString];
}
+- (void)setVolume:(double) volume {
tkchin_webrtc 2016/11/28 21:29:54 no space after (double)
Frederik 2016/12/01 18:54:31 Done.
+ _volume = volume;
tkchin_webrtc 2016/11/28 21:29:54 nit: 2 spaces not 4 (see other indentation in file
Frederik 2016/12/01 18:54:31 Done.
+ _nativeAudioSource->SetVolume(volume);
+}
+
#pragma mark - Private
- (rtc::scoped_refptr<webrtc::AudioSourceInterface>)nativeAudioSource {

Powered by Google App Engine
This is Rietveld 408576698