| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // TODO(deadbeef): These interfaces are effectively just a way for the | 49 // TODO(deadbeef): These interfaces are effectively just a way for the |
| 50 // RtpSenders/Receivers to get to the BaseChannels. These interfaces should be | 50 // RtpSenders/Receivers to get to the BaseChannels. These interfaces should be |
| 51 // refactored away eventually, as the classes converge. | 51 // refactored away eventually, as the classes converge. |
| 52 | 52 |
| 53 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h | 53 // This interface is called by AudioTrackHandler classes in mediastreamhandler.h |
| 54 // to change the settings of an audio track connected to certain PeerConnection. | 54 // to change the settings of an audio track connected to certain PeerConnection. |
| 55 class AudioProviderInterface { | 55 class AudioProviderInterface { |
| 56 public: | 56 public: |
| 57 // Enable/disable the audio playout of a remote audio track with |ssrc|. | 57 // Enable/disable the audio playout of a remote audio track with |ssrc|. |
| 58 virtual void SetAudioPlayout(uint32_t ssrc, | 58 virtual void SetAudioPlayout(uint32_t ssrc, bool enable) = 0; |
| 59 bool enable, | |
| 60 cricket::AudioRenderer* renderer) = 0; | |
| 61 // Enable/disable sending audio on the local audio track with |ssrc|. | 59 // Enable/disable sending audio on the local audio track with |ssrc|. |
| 62 // When |enable| is true |options| should be applied to the audio track. | 60 // When |enable| is true |options| should be applied to the audio track. |
| 63 virtual void SetAudioSend(uint32_t ssrc, | 61 virtual void SetAudioSend(uint32_t ssrc, |
| 64 bool enable, | 62 bool enable, |
| 65 const cricket::AudioOptions& options, | 63 const cricket::AudioOptions& options, |
| 66 cricket::AudioRenderer* renderer) = 0; | 64 cricket::AudioRenderer* renderer) = 0; |
| 67 | 65 |
| 68 // Sets the audio playout volume of a remote audio track with |ssrc|. | 66 // Sets the audio playout volume of a remote audio track with |ssrc|. |
| 69 // |volume| is in the range of [0, 10]. | 67 // |volume| is in the range of [0, 10]. |
| 70 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; | 68 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 bool enable, | 87 bool enable, |
| 90 const cricket::VideoOptions* options) = 0; | 88 const cricket::VideoOptions* options) = 0; |
| 91 | 89 |
| 92 protected: | 90 protected: |
| 93 virtual ~VideoProviderInterface() {} | 91 virtual ~VideoProviderInterface() {} |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace webrtc | 94 } // namespace webrtc |
| 97 | 95 |
| 98 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ | 96 #endif // TALK_APP_WEBRTC_MEDIASTREAMPROVIDER_H_ |
| OLD | NEW |