MCPcopy Index your code
hub / github.com/RustPython/RustPython / WavePCM16Test

Class WavePCM16Test

Lib/test/test_wave.py:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class WavePCM16Test(WaveTest, unittest.TestCase):
34 sndfilename = 'pluck-pcm16.wav'
35 sndfilenframes = 3307
36 nchannels = 2
37 sampwidth = 2
38 framerate = 11025
39 nframes = 48
40 comptype = 'NONE'
41 compname = 'not compressed'
42 frames = bytes.fromhex("""\
43 022EFFEA 4B5C00F9 311404EF 80DC0843 CBDF06B2 48AA03F3 BFE701B2 036BFE7C \
44 B857FA3E B4B2F34F 2999EBCA 1A5FE6D7 EDFCE491 C626E279 0E05E0B8 EF27E02D \
45 5754E275 FB31E843 1373EF89 D827F72C 978BFB7A F5F7FC11 0866FB9C DF30FB42 \
46 117FFA36 3EE4FB5D BC75FCB6 66D5FF5F CF16040E 43220978 C1BC0EC8 511F12A4 \
47 EEDF1755 82061666 7FFF1446 80001296 499C0EB2 52BA0DB9 EFB70F5C CE400FBC \
48 E4B50CEB 63440A5A 08CA0A1F 2BBA0B0B 51460E47 8BCB113C B6F50EEA 44150A59 \
49 """)
50 if sys.byteorder != 'big':
51 frames = wave._byteswap(frames, 2)
52
53
54class WavePCM24Test(WaveTest, unittest.TestCase):

Callers

nothing calls this directly

Calls 1

fromhexMethod · 0.45

Tested by

no test coverage detected