diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-10 19:02:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-10 19:02:53 (GMT) |
commit | 81895f8ee327474b5a07a12e957b786510227b29 (patch) | |
tree | 7b2e5049c97e2f9f2521fce809b071f0a7980bc8 /Lib/test/test_sunau.py | |
parent | a49ccb205fa2f25bf3d09d8f99476942ec3d66fd (diff) | |
download | cpython-81895f8ee327474b5a07a12e957b786510227b29.zip cpython-81895f8ee327474b5a07a12e957b786510227b29.tar.gz cpython-81895f8ee327474b5a07a12e957b786510227b29.tar.bz2 |
Issue #19261: Added support for writing 24-bit samples in the sunau module.
Diffstat (limited to 'Lib/test/test_sunau.py')
-rw-r--r-- | Lib/test/test_sunau.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Lib/test/test_sunau.py b/Lib/test/test_sunau.py index 767314f..81acd96 100644 --- a/Lib/test/test_sunau.py +++ b/Lib/test/test_sunau.py @@ -47,6 +47,34 @@ class SunauPCM16Test(audiotests.AudioWriteTests, """) +class SunauPCM24Test(audiotests.AudioWriteTests, + audiotests.AudioTestsWithSourceFile, + unittest.TestCase): + module = sunau + sndfilename = 'pluck-pcm24.au' + sndfilenframes = 3307 + nchannels = 2 + sampwidth = 3 + framerate = 11025 + nframes = 48 + comptype = 'NONE' + compname = 'not compressed' + frames = bytes.fromhex("""\ + 022D65FFEB9D 4B5A0F00FA54 3113C304EE2B 80DCD6084303 \ + CBDEC006B261 48A99803F2F8 BFE82401B07D 036BFBFE7B5D \ + B85756FA3EC9 B4B055F3502B 299830EBCB62 1A5CA7E6D99A \ + EDFA3EE491BD C625EBE27884 0E05A9E0B6CF EF2929E02922 \ + 5758D8E27067 FB3557E83E16 1377BFEF8402 D82C5BF7272A \ + 978F16FB7745 F5F865FC1013 086635FB9C4E DF30FCFB40EE \ + 117FE0FA3438 3EE6B8FB5AC3 BC77A3FCB2F4 66D6DAFF5F32 \ + CF13B9041275 431D69097A8C C1BB600EC74E 5120B912A2BA \ + EEDF641754C0 8207001664B7 7FFFFF14453F 8000001294E6 \ + 499C1B0EB3B2 52B73E0DBCA0 EFB2B20F5FD8 CE3CDB0FBE12 \ + E4B49C0CEA2D 6344A80A5A7C 08C8FE0A1FFE 2BB9860B0A0E \ + 51486F0E44E1 8BCC64113B05 B6F4EC0EEB36 4413170A5B48 \ + """) + + class SunauPCM32Test(audiotests.AudioWriteTests, audiotests.AudioTestsWithSourceFile, unittest.TestCase): |