/third_party/python/Lib/test/ |
D | audiotests.py | 29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 32 self.assertEqual(f.getsampwidth(), sampwidth) 40 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 42 self.assertEqual(params.sampwidth, sampwidth) 58 f.setsampwidth(self.sampwidth) 66 self.assertEqual(f.getsampwidth(), self.sampwidth) 75 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 94 f.setsampwidth(self.sampwidth) 103 self.assertEqual(params.sampwidth, self.sampwidth) 114 f.setsampwidth(self.sampwidth) [all …]
|
D | test_sunau.py | 19 sampwidth = 1 variable in SunauPCM8Test 36 sampwidth = 2 variable in SunauPCM16Test 55 sampwidth = 3 variable in SunauPCM24Test 80 sampwidth = 4 variable in SunauPCM32Test 105 sampwidth = 2 variable in SunauULAWTest
|
D | test_aifc.py | 24 sampwidth = 1 variable in AifcPCM8Test 41 sampwidth = 2 variable in AifcPCM16Test 60 sampwidth = 3 variable in AifcPCM24Test 85 sampwidth = 4 variable in AifcPCM32Test 110 sampwidth = 2 variable in AifcULAWTest 131 sampwidth = 2 variable in AifcALAWTest 180 self.assertEqual(params.sampwidth, f.getsampwidth()) 297 for sampwidth in 0, -1: 299 b += b'COMM' + struct.pack('>LhlhhLL', 38, 1, 0, sampwidth, 422 sampwidth = 2 [all …]
|
D | test_wave.py | 20 sampwidth = 1 variable in WavePCM8Test 37 sampwidth = 2 variable in WavePCM16Test 58 sampwidth = 3 variable in WavePCM24Test 85 sampwidth = 4 variable in WavePCM32Test
|
D | test_sndhdr.py | 26 self.assertEqual(what.sampwidth, expected[4])
|
/third_party/python/Lib/ |
D | wave.py | 261 sampwidth = struct.unpack_from('<H', chunk.read(2))[0] 264 self._sampwidth = (sampwidth + 7) // 8 349 def setsampwidth(self, sampwidth): argument 352 if sampwidth < 1 or sampwidth > 4: 354 self._sampwidth = sampwidth 396 nchannels, sampwidth, framerate, nframes, comptype, compname = params 400 self.setsampwidth(sampwidth)
|
D | sunau.py | 354 def setsampwidth(self, sampwidth): argument 357 if sampwidth not in (1, 2, 3, 4): 359 self._sampwidth = sampwidth 404 nchannels, sampwidth, framerate, nframes, comptype, compname = params 406 self.setsampwidth(sampwidth)
|
D | aifc.py | 261 _aifc_params.sampwidth.__doc__ = 'Sample width in bytes' 626 def setsampwidth(self, sampwidth): argument 629 if sampwidth < 1 or sampwidth > 4: 631 self._sampwidth = sampwidth 679 nchannels, sampwidth, framerate, nframes, comptype, compname = params 686 self.setsampwidth(sampwidth)
|
D | sndhdr.py | 49 SndHeaders.sampwidth.__doc__ = ("""Either the sample size in bits or
|
/third_party/python/Doc/library/ |
D | sunau.rst | 149 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, 234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
|
D | sndhdr.rst | 22 ``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). The value for *type*
|
D | wave.rst | 103 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, 209 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
|
D | aifc.rst | 93 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, 197 .. method:: aifc.setparams(nchannels, sampwidth, framerate, comptype, compname)
|
/third_party/python/Misc/ |
D | HISTORY | 3796 - Issue #19131: The aifc module now correctly reads and writes sampwidth of
|