OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Sets an audio sink that receives unmixed audio from the receive stream. | 120 // Sets an audio sink that receives unmixed audio from the receive stream. |
121 // Ownership of the sink is passed to the stream and can be used by the | 121 // Ownership of the sink is passed to the stream and can be used by the |
122 // caller to do lifetime management (i.e. when the sink's dtor is called). | 122 // caller to do lifetime management (i.e. when the sink's dtor is called). |
123 // Only one sink can be set and passing a null sink clears an existing one. | 123 // Only one sink can be set and passing a null sink clears an existing one. |
124 // NOTE: Audio must still somehow be pulled through AudioTransport for audio | 124 // NOTE: Audio must still somehow be pulled through AudioTransport for audio |
125 // to stream through this sink. In practice, this happens if mixed audio | 125 // to stream through this sink. In practice, this happens if mixed audio |
126 // is being pulled+rendered and/or if audio is being pulled for the purposes | 126 // is being pulled+rendered and/or if audio is being pulled for the purposes |
127 // of feeding to the AEC. | 127 // of feeding to the AEC. |
128 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink) = 0; | 128 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink) = 0; |
129 | 129 |
| 130 // Sets playback gain of the stream, applied when mixing, and thus after it |
| 131 // is potentially forwarded to any attached AudioSinkInterface implementation. |
| 132 virtual void SetGain(float gain) = 0; |
| 133 |
130 protected: | 134 protected: |
131 virtual ~AudioReceiveStream() {} | 135 virtual ~AudioReceiveStream() {} |
132 }; | 136 }; |
133 } // namespace webrtc | 137 } // namespace webrtc |
134 | 138 |
135 #endif // WEBRTC_AUDIO_RECEIVE_STREAM_H_ | 139 #endif // WEBRTC_AUDIO_RECEIVE_STREAM_H_ |
OLD | NEW |