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

Side by Side Diff: talk/session/media/channel.h

Issue 1325023005: Remove Channel::SetRingbackTone() and Channel::PlayRingbackTone(), and the code beneath it (within … (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine_unittest.cc ('k') | talk/session/media/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Configure sending media on the stream with SSRC |ssrc| 333 // Configure sending media on the stream with SSRC |ssrc|
334 // If there is only one sending stream SSRC 0 can be used. 334 // If there is only one sending stream SSRC 0 can be used.
335 bool SetAudioSend(uint32 ssrc, bool mute, const AudioOptions* options, 335 bool SetAudioSend(uint32 ssrc, bool mute, const AudioOptions* options,
336 AudioRenderer* renderer); 336 AudioRenderer* renderer);
337 337
338 // downcasts a MediaChannel 338 // downcasts a MediaChannel
339 virtual VoiceMediaChannel* media_channel() const { 339 virtual VoiceMediaChannel* media_channel() const {
340 return static_cast<VoiceMediaChannel*>(BaseChannel::media_channel()); 340 return static_cast<VoiceMediaChannel*>(BaseChannel::media_channel());
341 } 341 }
342 342
343 bool SetRingbackTone(const void* buf, int len);
344 void SetEarlyMedia(bool enable); 343 void SetEarlyMedia(bool enable);
345 // This signal is emitted when we have gone a period of time without 344 // This signal is emitted when we have gone a period of time without
346 // receiving early media. When received, a UI should start playing its 345 // receiving early media. When received, a UI should start playing its
347 // own ringing sound 346 // own ringing sound
348 sigslot::signal1<VoiceChannel*> SignalEarlyMediaTimeout; 347 sigslot::signal1<VoiceChannel*> SignalEarlyMediaTimeout;
349 348
350 bool PlayRingbackTone(uint32 ssrc, bool play, bool loop);
351 // TODO(ronghuawu): Replace PressDTMF with InsertDtmf. 349 // TODO(ronghuawu): Replace PressDTMF with InsertDtmf.
352 bool PressDTMF(int digit, bool playout); 350 bool PressDTMF(int digit, bool playout);
353 // Returns if the telephone-event has been negotiated. 351 // Returns if the telephone-event has been negotiated.
354 bool CanInsertDtmf(); 352 bool CanInsertDtmf();
355 // Send and/or play a DTMF |event| according to the |flags|. 353 // Send and/or play a DTMF |event| according to the |flags|.
356 // The DTMF out-of-band signal will be used on sending. 354 // The DTMF out-of-band signal will be used on sending.
357 // The |ssrc| should be either 0 or a valid send stream ssrc. 355 // The |ssrc| should be either 0 or a valid send stream ssrc.
358 // The valid value for the |event| are 0 which corresponding to DTMF 356 // The valid value for the |event| are 0 which corresponding to DTMF
359 // event 0-9, *, #, A-D. 357 // event 0-9, *, #, A-D.
360 bool InsertDtmf(uint32 ssrc, int event_code, int duration, int flags); 358 bool InsertDtmf(uint32 ssrc, int event_code, int duration, int flags);
(...skipping 30 matching lines...) Expand all
391 const rtc::PacketTime& packet_time, 389 const rtc::PacketTime& packet_time,
392 int flags); 390 int flags);
393 virtual void ChangeState(); 391 virtual void ChangeState();
394 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc); 392 virtual const ContentInfo* GetFirstContent(const SessionDescription* sdesc);
395 virtual bool SetLocalContent_w(const MediaContentDescription* content, 393 virtual bool SetLocalContent_w(const MediaContentDescription* content,
396 ContentAction action, 394 ContentAction action,
397 std::string* error_desc); 395 std::string* error_desc);
398 virtual bool SetRemoteContent_w(const MediaContentDescription* content, 396 virtual bool SetRemoteContent_w(const MediaContentDescription* content,
399 ContentAction action, 397 ContentAction action,
400 std::string* error_desc); 398 std::string* error_desc);
401 bool SetRingbackTone_w(const void* buf, int len);
402 bool PlayRingbackTone_w(uint32 ssrc, bool play, bool loop);
403 void HandleEarlyMediaTimeout(); 399 void HandleEarlyMediaTimeout();
404 bool InsertDtmf_w(uint32 ssrc, int event, int duration, int flags); 400 bool InsertDtmf_w(uint32 ssrc, int event, int duration, int flags);
405 bool SetOutputScaling_w(uint32 ssrc, double left, double right); 401 bool SetOutputScaling_w(uint32 ssrc, double left, double right);
406 bool GetStats_w(VoiceMediaInfo* stats); 402 bool GetStats_w(VoiceMediaInfo* stats);
407 403
408 virtual void OnMessage(rtc::Message* pmsg); 404 virtual void OnMessage(rtc::Message* pmsg);
409 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const; 405 virtual void GetSrtpCiphers(std::vector<std::string>* ciphers) const;
410 virtual void OnConnectionMonitorUpdate( 406 virtual void OnConnectionMonitorUpdate(
411 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos); 407 ConnectionMonitor* monitor, const std::vector<ConnectionInfo>& infos);
412 virtual void OnMediaMonitorUpdate( 408 virtual void OnMediaMonitorUpdate(
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 // SetSendParameters. 645 // SetSendParameters.
650 DataSendParameters last_send_params_; 646 DataSendParameters last_send_params_;
651 // Last DataRecvParameters sent down to the media_channel() via 647 // Last DataRecvParameters sent down to the media_channel() via
652 // SetRecvParameters. 648 // SetRecvParameters.
653 DataRecvParameters last_recv_params_; 649 DataRecvParameters last_recv_params_;
654 }; 650 };
655 651
656 } // namespace cricket 652 } // namespace cricket
657 653
658 #endif // TALK_SESSION_MEDIA_CHANNEL_H_ 654 #endif // TALK_SESSION_MEDIA_CHANNEL_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine_unittest.cc ('k') | talk/session/media/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698