OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 virtual void SetSend(bool send) = 0; | 984 virtual void SetSend(bool send) = 0; |
985 // Configure stream for sending. | 985 // Configure stream for sending. |
986 virtual bool SetAudioSend(uint32_t ssrc, | 986 virtual bool SetAudioSend(uint32_t ssrc, |
987 bool enable, | 987 bool enable, |
988 const AudioOptions* options, | 988 const AudioOptions* options, |
989 AudioSource* source) = 0; | 989 AudioSource* source) = 0; |
990 // Gets current energy levels for all incoming streams. | 990 // Gets current energy levels for all incoming streams. |
991 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0; | 991 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0; |
992 // Get the current energy level of the stream sent to the speaker. | 992 // Get the current energy level of the stream sent to the speaker. |
993 virtual int GetOutputLevel() = 0; | 993 virtual int GetOutputLevel() = 0; |
994 // Get the time in milliseconds since last recorded keystroke, or negative. | |
995 virtual int GetTimeSinceLastTyping() = 0; | |
996 // Temporarily exposed field for tuning typing detect options. | |
997 virtual void SetTypingDetectionParameters(int time_window, | |
998 int cost_per_typing, int reporting_threshold, int penalty_decay, | |
999 int type_event_delay) = 0; | |
1000 // Set speaker output volume of the specified ssrc. | 994 // Set speaker output volume of the specified ssrc. |
1001 virtual bool SetOutputVolume(uint32_t ssrc, double volume) = 0; | 995 virtual bool SetOutputVolume(uint32_t ssrc, double volume) = 0; |
1002 // Returns if the telephone-event has been negotiated. | 996 // Returns if the telephone-event has been negotiated. |
1003 virtual bool CanInsertDtmf() = 0; | 997 virtual bool CanInsertDtmf() = 0; |
1004 // Send a DTMF |event|. The DTMF out-of-band signal will be used. | 998 // Send a DTMF |event|. The DTMF out-of-band signal will be used. |
1005 // The |ssrc| should be either 0 or a valid send stream ssrc. | 999 // The |ssrc| should be either 0 or a valid send stream ssrc. |
1006 // The valid value for the |event| are 0 to 15 which corresponding to | 1000 // The valid value for the |event| are 0 to 15 which corresponding to |
1007 // DTMF event 0-9, *, #, A-D. | 1001 // DTMF event 0-9, *, #, A-D. |
1008 virtual bool InsertDtmf(uint32_t ssrc, int event, int duration) = 0; | 1002 virtual bool InsertDtmf(uint32_t ssrc, int event, int duration) = 0; |
1009 // Gets quality stats for the channel. | 1003 // Gets quality stats for the channel. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 const char*, | 1195 const char*, |
1202 size_t> SignalDataReceived; | 1196 size_t> SignalDataReceived; |
1203 // Signal when the media channel is ready to send the stream. Arguments are: | 1197 // Signal when the media channel is ready to send the stream. Arguments are: |
1204 // writable(bool) | 1198 // writable(bool) |
1205 sigslot::signal1<bool> SignalReadyToSend; | 1199 sigslot::signal1<bool> SignalReadyToSend; |
1206 }; | 1200 }; |
1207 | 1201 |
1208 } // namespace cricket | 1202 } // namespace cricket |
1209 | 1203 |
1210 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ | 1204 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ |
OLD | NEW |