diff options
author | dvdli <dvdli@google.com> | 2021-02-22 17:24:30 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2021-02-22 17:34:58 +0800 |
commit | b1b3582772dae244e6e3569ca6c0cc5780ffb8f3 (patch) | |
tree | be70b84ce4ba9c1e9fbcc14f86c19e0471d9e05f /tests | |
parent | d7364cd3aebd62f8527c986afa7132b1f5271ed5 (diff) |
support float config and float wave file playback
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/pcm_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/pcm_test.cc b/tests/src/pcm_test.cc index 2668350..da114de 100644 --- a/tests/src/pcm_test.cc +++ b/tests/src/pcm_test.cc @@ -49,6 +49,8 @@ TEST(PcmTest, FormatToBits) { ASSERT_EQ(pcm_format_to_bits(PCM_FORMAT_S24_BE), 32); ASSERT_EQ(pcm_format_to_bits(PCM_FORMAT_S24_3BE), 24); ASSERT_EQ(pcm_format_to_bits(PCM_FORMAT_S32_BE), 32); + ASSERT_EQ(pcm_format_to_bits(PCM_FORMAT_FLOAT_LE), 32); + ASSERT_EQ(pcm_format_to_bits(PCM_FORMAT_FLOAT_BE), 32); } TEST(PcmTest, OpenAndCloseOutPcm) { |