Searched refs:WavFormat (Results 1 – 5 of 5) sorted by relevance
/external/webrtc/common_audio/ |
D | wav_header_unittest.cc | 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() 104 WavFormat format = WavFormat::kWavFormatPcm; in TEST() 288 WriteWavHeader(17, 12345, WavFormat::kWavFormatPcm, 123457689, buf + 4, in TEST() 315 WavFormat format = WavFormat::kWavFormatPcm; in TEST() [all …]
|
D | wav_header.cc | 124 uint16_t MapWavFormatToHeaderField(WavFormat format) { in MapWavFormatToHeaderField() 126 case WavFormat::kWavFormatPcm: in MapWavFormatToHeaderField() 128 case WavFormat::kWavFormatIeeeFloat: in MapWavFormatToHeaderField() 130 case WavFormat::kWavFormatALaw: in MapWavFormatToHeaderField() 132 case WavFormat::kWavFormatMuLaw: in MapWavFormatToHeaderField() 138 WavFormat MapHeaderFieldToWavFormat(uint16_t format_header_value) { in MapHeaderFieldToWavFormat() 140 return WavFormat::kWavFormatPcm; in MapHeaderFieldToWavFormat() 143 return WavFormat::kWavFormatIeeeFloat; in MapHeaderFieldToWavFormat() 220 header.fmt.AudioFormat = MapWavFormatToHeaderField(WavFormat::kWavFormatPcm); in WritePcmWavHeader() 252 MapWavFormatToHeaderField(WavFormat::kWavFormatIeeeFloat); in WriteIeeeFloatWavHeader() [all …]
|
D | wav_header.h | 33 enum class WavFormat { enum 45 constexpr size_t WavHeaderSize(WavFormat format) { in WavHeaderSize() 46 if (format == WavFormat::kWavFormatPcm) { in WavHeaderSize() 49 RTC_CHECK_EQ(format, WavFormat::kWavFormatIeeeFloat); in WavHeaderSize() 55 return std::max(WavHeaderSize(WavFormat::kWavFormatPcm), in MaxWavHeaderSize() 56 WavHeaderSize(WavFormat::kWavFormatIeeeFloat)); in MaxWavHeaderSize() 62 WavFormat format, 72 WavFormat format, 83 WavFormat* format,
|
D | wav_file.cc | 28 static_assert(std::is_trivially_destructible<WavFormat>::value, ""); 31 bool FormatSupported(WavFormat format) { in FormatSupported() 33 return format == WavFormat::kWavFormatPcm || in FormatSupported() 34 format == WavFormat::kWavFormatIeeeFloat; in FormatSupported() 103 if (format_ == WavFormat::kWavFormatIeeeFloat) { in ReadSamples() 113 RTC_CHECK_EQ(format_, WavFormat::kWavFormatPcm); in ReadSamples() 143 if (format_ == WavFormat::kWavFormatPcm) { in ReadSamples() 154 RTC_CHECK_EQ(format_, WavFormat::kWavFormatIeeeFloat); in ReadSamples() 200 ? WavFormat::kWavFormatPcm in WavWriter() 201 : WavFormat::kWavFormatIeeeFloat), in WavWriter() [all …]
|
D | wav_file.h | 72 WavFormat format_; 105 WavFormat format_;
|