OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 VideoSourceInterface* source) = 0; | 633 VideoSourceInterface* source) = 0; |
634 | 634 |
635 // Creates an new AudioTrack. At the moment |source| can be NULL. | 635 // Creates an new AudioTrack. At the moment |source| can be NULL. |
636 virtual rtc::scoped_refptr<AudioTrackInterface> | 636 virtual rtc::scoped_refptr<AudioTrackInterface> |
637 CreateAudioTrack(const std::string& label, | 637 CreateAudioTrack(const std::string& label, |
638 AudioSourceInterface* source) = 0; | 638 AudioSourceInterface* source) = 0; |
639 | 639 |
640 // Starts AEC dump using existing file. Takes ownership of |file| and passes | 640 // Starts AEC dump using existing file. Takes ownership of |file| and passes |
641 // it on to VoiceEngine (via other objects) immediately, which will take | 641 // it on to VoiceEngine (via other objects) immediately, which will take |
642 // the ownerhip. If the operation fails, the file will be closed. | 642 // the ownerhip. If the operation fails, the file will be closed. |
643 // TODO(grunell): Remove when Chromium has started to use AEC in each source. | 643 // A maximum file size in bytes can be specified. When the file size limit is |
644 // http://crbug.com/264611. | 644 // reached, logging is stopped automatically. If max_size_bytes is set to a |
645 virtual bool StartAecDump(rtc::PlatformFile file) = 0; | 645 // value <= 0, no limit will be used, and logging will continue until the |
| 646 // StopAecDump function is called. |
| 647 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; |
646 | 648 |
647 // Stops logging the AEC dump. | 649 // Stops logging the AEC dump. |
648 virtual void StopAecDump() = 0; | 650 virtual void StopAecDump() = 0; |
649 | 651 |
650 // Starts RtcEventLog using existing file. Takes ownership of |file| and | 652 // Starts RtcEventLog using existing file. Takes ownership of |file| and |
651 // passes it on to VoiceEngine, which will take the ownership. If the | 653 // passes it on to VoiceEngine, which will take the ownership. If the |
652 // operation fails the file will be closed. The logging will stop | 654 // operation fails the file will be closed. The logging will stop |
653 // automatically after 10 minutes have passed, or when the StopRtcEventLog | 655 // automatically after 10 minutes have passed, or when the StopRtcEventLog |
654 // function is called. | 656 // function is called. |
655 // This function as well as the StopRtcEventLog don't really belong on this | 657 // This function as well as the StopRtcEventLog don't really belong on this |
(...skipping 25 matching lines...) Expand all Loading... |
681 CreatePeerConnectionFactory( | 683 CreatePeerConnectionFactory( |
682 rtc::Thread* worker_thread, | 684 rtc::Thread* worker_thread, |
683 rtc::Thread* signaling_thread, | 685 rtc::Thread* signaling_thread, |
684 AudioDeviceModule* default_adm, | 686 AudioDeviceModule* default_adm, |
685 cricket::WebRtcVideoEncoderFactory* encoder_factory, | 687 cricket::WebRtcVideoEncoderFactory* encoder_factory, |
686 cricket::WebRtcVideoDecoderFactory* decoder_factory); | 688 cricket::WebRtcVideoDecoderFactory* decoder_factory); |
687 | 689 |
688 } // namespace webrtc | 690 } // namespace webrtc |
689 | 691 |
690 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ | 692 #endif // TALK_APP_WEBRTC_PEERCONNECTIONINTERFACE_H_ |
OLD | NEW |