OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 TEST_F(AudioManagerTest, IsNoiseSuppressorSupported) { | 70 TEST_F(AudioManagerTest, IsNoiseSuppressorSupported) { |
71 PRINT("%sNoise Suppressor support: %s\n", kTag, | 71 PRINT("%sNoise Suppressor support: %s\n", kTag, |
72 audio_manager()->IsNoiseSuppressorSupported() ? "Yes" : "No"); | 72 audio_manager()->IsNoiseSuppressorSupported() ? "Yes" : "No"); |
73 } | 73 } |
74 | 74 |
75 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) { | 75 TEST_F(AudioManagerTest, IsLowLatencyPlayoutSupported) { |
76 PRINT("%sLow latency output support: %s\n", kTag, | 76 PRINT("%sLow latency output support: %s\n", kTag, |
77 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No"); | 77 audio_manager()->IsLowLatencyPlayoutSupported() ? "Yes" : "No"); |
78 } | 78 } |
79 | 79 |
| 80 TEST_F(AudioManagerTest, IsProAudioSupported) { |
| 81 PRINT("%sPro audio support: %s\n", kTag, |
| 82 audio_manager()->IsProAudioSupported() ? "Yes" : "No"); |
| 83 } |
| 84 |
80 TEST_F(AudioManagerTest, ShowAudioParameterInfo) { | 85 TEST_F(AudioManagerTest, ShowAudioParameterInfo) { |
81 const bool low_latency_out = audio_manager()->IsLowLatencyPlayoutSupported(); | 86 const bool low_latency_out = audio_manager()->IsLowLatencyPlayoutSupported(); |
82 PRINT("PLAYOUT:\n"); | 87 PRINT("PLAYOUT:\n"); |
83 PRINT("%saudio layer: %s\n", kTag, | 88 PRINT("%saudio layer: %s\n", kTag, |
84 low_latency_out ? "Low latency OpenSL" : "Java/JNI based AudioTrack"); | 89 low_latency_out ? "Low latency OpenSL" : "Java/JNI based AudioTrack"); |
85 PRINT("%ssample rate: %d Hz\n", kTag, playout_parameters_.sample_rate()); | 90 PRINT("%ssample rate: %d Hz\n", kTag, playout_parameters_.sample_rate()); |
86 PRINT("%schannels: %" PRIuS "\n", kTag, playout_parameters_.channels()); | 91 PRINT("%schannels: %" PRIuS "\n", kTag, playout_parameters_.channels()); |
87 PRINT("%sframes per buffer: %" PRIuS " <=> %.2f ms\n", kTag, | 92 PRINT("%sframes per buffer: %" PRIuS " <=> %.2f ms\n", kTag, |
88 playout_parameters_.frames_per_buffer(), | 93 playout_parameters_.frames_per_buffer(), |
89 playout_parameters_.GetBufferSizeInMilliseconds()); | 94 playout_parameters_.GetBufferSizeInMilliseconds()); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 params.frames_per_10ms_buffer()); | 151 params.frames_per_10ms_buffer()); |
147 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame()); | 152 EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame()); |
148 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer()); | 153 EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer()); |
149 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer, | 154 EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer, |
150 params.GetBytesPer10msBuffer()); | 155 params.GetBytesPer10msBuffer()); |
151 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds()); | 156 EXPECT_EQ(kBufferSizeInMs, params.GetBufferSizeInMilliseconds()); |
152 } | 157 } |
153 | 158 |
154 } // namespace webrtc | 159 } // namespace webrtc |
155 | 160 |
OLD | NEW |