Searched refs:CheckWavParameters (Results 1 – 4 of 4) sorted by relevance
/external/webrtc/webrtc/common_audio/ |
D | wav_header_unittest.cc | 69 TEST(WavHeaderTest, CheckWavParameters) { in TEST() argument 71 EXPECT_TRUE(CheckWavParameters(1, 8000, kWavFormatPcm, 1, 0)); in TEST() 72 EXPECT_FALSE(CheckWavParameters(0, 8000, kWavFormatPcm, 1, 0)); in TEST() 73 EXPECT_FALSE(CheckWavParameters(0x10000, 8000, kWavFormatPcm, 1, 0)); in TEST() 74 EXPECT_FALSE(CheckWavParameters(1, 0, kWavFormatPcm, 1, 0)); in TEST() 75 EXPECT_FALSE(CheckWavParameters(1, 8000, WavFormat(0), 1, 0)); in TEST() 76 EXPECT_FALSE(CheckWavParameters(1, 8000, kWavFormatPcm, 0, 0)); in TEST() 79 EXPECT_TRUE(CheckWavParameters(1, 8000, kWavFormatPcm, 2, 0)); in TEST() 80 EXPECT_FALSE(CheckWavParameters(1, 8000, kWavFormatPcm, 4, 0)); in TEST() 81 EXPECT_FALSE(CheckWavParameters(1, 8000, kWavFormatALaw, 2, 0)); in TEST() [all …]
|
D | wav_header.cc | 62 bool CheckWavParameters(size_t num_channels, in CheckWavParameters() function 154 RTC_CHECK(CheckWavParameters(num_channels, sample_rate, format, in WriteWavHeader() 238 return CheckWavParameters(*num_channels, *sample_rate, *format, in ReadWavHeader()
|
D | wav_header.h | 35 bool CheckWavParameters(size_t num_channels,
|
D | wav_file.cc | 108 RTC_CHECK(CheckWavParameters(num_channels_, sample_rate_, kWavFormat, in WavWriter()
|