| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 int32_t NeedMorePlayData(const size_t nSamples, | 100 int32_t NeedMorePlayData(const size_t nSamples, |
| 101 const size_t nBytesPerSample, | 101 const size_t nBytesPerSample, |
| 102 const size_t nChannels, | 102 const size_t nChannels, |
| 103 const uint32_t samplesPerSec, | 103 const uint32_t samplesPerSec, |
| 104 void* audioSamples, | 104 void* audioSamples, |
| 105 size_t& nSamplesOut, | 105 size_t& nSamplesOut, |
| 106 int64_t* elapsed_time_ms, | 106 int64_t* elapsed_time_ms, |
| 107 int64_t* ntp_time_ms) override; | 107 int64_t* ntp_time_ms) override; |
| 108 | 108 |
| 109 void PushCaptureData(int voe_channel, |
| 110 const void* audio_data, |
| 111 int bits_per_sample, |
| 112 int sample_rate, |
| 113 size_t number_of_channels, |
| 114 size_t number_of_frames) override; |
| 115 |
| 116 void PullRenderData(int bits_per_sample, |
| 117 int sample_rate, |
| 118 size_t number_of_channels, |
| 119 size_t number_of_frames, |
| 120 void* audio_data, |
| 121 int64_t* elapsed_time_ms, |
| 122 int64_t* ntp_time_ms) override; |
| 123 |
| 109 AudioTransportImpl(AudioDeviceModule* audioDevice); | 124 AudioTransportImpl(AudioDeviceModule* audioDevice); |
| 110 ~AudioTransportImpl(); | 125 ~AudioTransportImpl(); |
| 111 | 126 |
| 112 public: | 127 public: |
| 113 int32_t SetFilePlayout(bool enable, const char* fileName = NULL); | 128 int32_t SetFilePlayout(bool enable, const char* fileName = NULL); |
| 114 void SetFullDuplex(bool enable); | 129 void SetFullDuplex(bool enable); |
| 115 void SetSpeakerVolume(bool enable) | 130 void SetSpeakerVolume(bool enable) |
| 116 { | 131 { |
| 117 _speakerVolume = enable; | 132 _speakerVolume = enable; |
| 118 } | 133 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 224 |
| 210 std::unique_ptr<ProcessThread> _processThread; | 225 std::unique_ptr<ProcessThread> _processThread; |
| 211 AudioDeviceModule* _audioDevice; | 226 AudioDeviceModule* _audioDevice; |
| 212 AudioEventObserver* _audioEventObserver; | 227 AudioEventObserver* _audioEventObserver; |
| 213 AudioTransportImpl* _audioTransport; | 228 AudioTransportImpl* _audioTransport; |
| 214 }; | 229 }; |
| 215 | 230 |
| 216 } // namespace webrtc | 231 } // namespace webrtc |
| 217 | 232 |
| 218 #endif // #ifndef WEBRTC_AUDIO_DEVICE_FUNC_TEST_MANAGER_H | 233 #endif // #ifndef WEBRTC_AUDIO_DEVICE_FUNC_TEST_MANAGER_H |
| OLD | NEW |