Home
last modified time | relevance | path

Searched refs:CheckWavParameters (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/common_audio/
Dwav_header_unittest.cc84 TEST(WavHeaderTest, CheckWavParameters) { in TEST() argument
86 EXPECT_TRUE(CheckWavParameters(1, 8000, WavFormat::kWavFormatPcm, 0)); in TEST()
87 EXPECT_FALSE(CheckWavParameters(0, 8000, WavFormat::kWavFormatPcm, 0)); in TEST()
88 EXPECT_FALSE(CheckWavParameters(0x10000, 8000, WavFormat::kWavFormatPcm, 0)); in TEST()
89 EXPECT_FALSE(CheckWavParameters(1, 0, WavFormat::kWavFormatPcm, 0)); in TEST()
93 CheckWavParameters(1 << 20, 1 << 20, WavFormat::kWavFormatPcm, 0)); in TEST()
94 EXPECT_FALSE(CheckWavParameters(1, 8000, WavFormat::kWavFormatPcm, in TEST()
98 EXPECT_FALSE(CheckWavParameters(3, 8000, WavFormat::kWavFormatPcm, 5)); in TEST()
Dwav_header.cc287 bool CheckWavParameters(size_t num_channels, in CheckWavParameters() function
345 bool CheckWavParameters(size_t num_channels, in CheckWavParameters() function
349 return CheckWavParameters(num_channels, sample_rate, format, in CheckWavParameters()
363 RTC_CHECK(CheckWavParameters(num_channels, sample_rate, format, in WriteWavHeader()
432 if (!CheckWavParameters(*num_channels, *sample_rate, *format, in ReadWavHeader()
Dwav_header.h60 bool CheckWavParameters(size_t num_channels,
Dwav_file.cc206 RTC_CHECK(CheckWavParameters(num_channels_, sample_rate_, format_, in WavWriter()