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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 { | 566 { |
567 TEST_LOG("++"); | 567 TEST_LOG("++"); |
568 } | 568 } |
569 } // if (_playCount % 100 == 0) | 569 } // if (_playCount % 100 == 0) |
570 | 570 |
571 nSamplesOut = nSamples; | 571 nSamplesOut = nSamples; |
572 | 572 |
573 return 0; | 573 return 0; |
574 } | 574 } |
575 | 575 |
576 int AudioTransportImpl::OnDataAvailable(const int voe_channels[], | |
577 int number_of_voe_channels, | |
578 const int16_t* audio_data, | |
579 int sample_rate, | |
580 int number_of_channels, | |
581 size_t number_of_frames, | |
582 int audio_delay_milliseconds, | |
583 int current_volume, | |
584 bool key_pressed, | |
585 bool need_audio_processing) { | |
586 return 0; | |
587 } | |
588 | |
589 void AudioTransportImpl::PushCaptureData(int voe_channel, | |
590 const void* audio_data, | |
591 int bits_per_sample, int sample_rate, | |
592 int number_of_channels, | |
593 size_t number_of_frames) {} | |
594 | |
595 void AudioTransportImpl::PullRenderData(int bits_per_sample, int sample_rate, | |
596 int number_of_channels, | |
597 size_t number_of_frames, | |
598 void* audio_data, | |
599 int64_t* elapsed_time_ms, | |
600 int64_t* ntp_time_ms) {} | |
601 | |
602 FuncTestManager::FuncTestManager() : | 576 FuncTestManager::FuncTestManager() : |
603 _audioDevice(NULL), | 577 _audioDevice(NULL), |
604 _audioEventObserver(NULL), | 578 _audioEventObserver(NULL), |
605 _audioTransport(NULL) | 579 _audioTransport(NULL) |
606 { | 580 { |
607 _playoutFile48 = webrtc::test::ResourcePath("audio_device\\audio_short48", | 581 _playoutFile48 = webrtc::test::ResourcePath("audio_device\\audio_short48", |
608 "pcm"); | 582 "pcm"); |
609 _playoutFile44 = webrtc::test::ResourcePath("audio_device\\audio_short44", | 583 _playoutFile44 = webrtc::test::ResourcePath("audio_device\\audio_short44", |
610 "pcm"); | 584 "pcm"); |
611 _playoutFile16 = webrtc::test::ResourcePath("audio_device\\audio_short16", | 585 _playoutFile16 = webrtc::test::ResourcePath("audio_device\\audio_short16", |
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 | 2738 |
2765 TEST_LOG("\n"); | 2739 TEST_LOG("\n"); |
2766 PRINT_TEST_RESULTS; | 2740 PRINT_TEST_RESULTS; |
2767 | 2741 |
2768 return 0; | 2742 return 0; |
2769 } | 2743 } |
2770 | 2744 |
2771 } // namespace webrtc | 2745 } // namespace webrtc |
2772 | 2746 |
2773 // EOF | 2747 // EOF |
OLD | NEW |