| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 // Gets current energy levels for all incoming streams. | 1079 // Gets current energy levels for all incoming streams. |
| 1080 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0; | 1080 virtual bool GetActiveStreams(AudioInfo::StreamList* actives) = 0; |
| 1081 // Get the current energy level of the stream sent to the speaker. | 1081 // Get the current energy level of the stream sent to the speaker. |
| 1082 virtual int GetOutputLevel() = 0; | 1082 virtual int GetOutputLevel() = 0; |
| 1083 // Get the time in milliseconds since last recorded keystroke, or negative. | 1083 // Get the time in milliseconds since last recorded keystroke, or negative. |
| 1084 virtual int GetTimeSinceLastTyping() = 0; | 1084 virtual int GetTimeSinceLastTyping() = 0; |
| 1085 // Temporarily exposed field for tuning typing detect options. | 1085 // Temporarily exposed field for tuning typing detect options. |
| 1086 virtual void SetTypingDetectionParameters(int time_window, | 1086 virtual void SetTypingDetectionParameters(int time_window, |
| 1087 int cost_per_typing, int reporting_threshold, int penalty_decay, | 1087 int cost_per_typing, int reporting_threshold, int penalty_decay, |
| 1088 int type_event_delay) = 0; | 1088 int type_event_delay) = 0; |
| 1089 // Set left and right scale for speaker output volume of the specified ssrc. | 1089 // Set speaker output volume of the specified ssrc. |
| 1090 virtual bool SetOutputScaling(uint32_t ssrc, double left, double right) = 0; | 1090 virtual bool SetOutputVolume(uint32_t ssrc, double volume) = 0; |
| 1091 // Returns if the telephone-event has been negotiated. | 1091 // Returns if the telephone-event has been negotiated. |
| 1092 virtual bool CanInsertDtmf() { return false; } | 1092 virtual bool CanInsertDtmf() { return false; } |
| 1093 // Send and/or play a DTMF |event| according to the |flags|. | 1093 // Send and/or play a DTMF |event| according to the |flags|. |
| 1094 // The DTMF out-of-band signal will be used on sending. | 1094 // The DTMF out-of-band signal will be used on sending. |
| 1095 // The |ssrc| should be either 0 or a valid send stream ssrc. | 1095 // The |ssrc| should be either 0 or a valid send stream ssrc. |
| 1096 // The valid value for the |event| are 0 to 15 which corresponding to | 1096 // The valid value for the |event| are 0 to 15 which corresponding to |
| 1097 // DTMF event 0-9, *, #, A-D. | 1097 // DTMF event 0-9, *, #, A-D. |
| 1098 virtual bool InsertDtmf(uint32_t ssrc, | 1098 virtual bool InsertDtmf(uint32_t ssrc, |
| 1099 int event, | 1099 int event, |
| 1100 int duration, | 1100 int duration, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 // Signal when the media channel is ready to send the stream. Arguments are: | 1281 // Signal when the media channel is ready to send the stream. Arguments are: |
| 1282 // writable(bool) | 1282 // writable(bool) |
| 1283 sigslot::signal1<bool> SignalReadyToSend; | 1283 sigslot::signal1<bool> SignalReadyToSend; |
| 1284 // Signal for notifying that the remote side has closed the DataChannel. | 1284 // Signal for notifying that the remote side has closed the DataChannel. |
| 1285 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; | 1285 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; |
| 1286 }; | 1286 }; |
| 1287 | 1287 |
| 1288 } // namespace cricket | 1288 } // namespace cricket |
| 1289 | 1289 |
| 1290 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ | 1290 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ |
| OLD | NEW |