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..65fc1fa503c5fd6f70e53ce8654f6689325e25bf 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 { |
+ _volume = volume; |
+ _nativeAudioSource->SetVolume(volume); |
+} |
+ |
#pragma mark - Private |
- (rtc::scoped_refptr<webrtc::AudioSourceInterface>)nativeAudioSource { |