/external/python/cpython3/Lib/test/ |
D | audiotests.py | 28 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 31 self.assertEqual(f.getsampwidth(), sampwidth) 39 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 41 self.assertEqual(params.sampwidth, sampwidth) 57 f.setsampwidth(self.sampwidth) 65 self.assertEqual(f.getsampwidth(), self.sampwidth) 74 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 93 f.setsampwidth(self.sampwidth) 102 self.assertEqual(params.sampwidth, self.sampwidth) 113 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 | 22 sampwidth = 1 variable in AifcPCM8Test 39 sampwidth = 2 variable in AifcPCM16Test 58 sampwidth = 3 variable in AifcPCM24Test 83 sampwidth = 4 variable in AifcPCM32Test 108 sampwidth = 2 variable in AifcULAWTest 129 sampwidth = 2 variable in AifcALAWTest 178 self.assertEqual(params.sampwidth, f.getsampwidth()) 295 for sampwidth in 0, -1: 297 b += b'COMM' + struct.pack('>LhlhhLL', 38, 1, 0, sampwidth, 420 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])
|
/external/python/cpython2/Lib/test/ |
D | test_sunau.py | 17 sampwidth = 1 variable in SunauPCM8Test 34 sampwidth = 2 variable in SunauPCM16Test 53 sampwidth = 4 variable in SunauPCM32Test 78 sampwidth = 2 variable in SunauULAWTest
|
D | test_wave.py | 20 sampwidth = 1 variable in WavePCM8Test 37 sampwidth = 2 variable in WavePCM16Test 64 sampwidth = 3 variable in WavePCM24Test 91 sampwidth = 4 variable in WavePCM32Test
|
D | audiotests.py | 51 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 54 self.assertEqual(f.getsampwidth(), sampwidth) 62 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 74 f.setsampwidth(self.sampwidth) 83 self.assertEqual(f.getsampwidth(), self.sampwidth) 94 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 123 framesize = self.nchannels * self.sampwidth 197 framesize = self.nchannels * self.sampwidth 210 self.check_params(f, self.nchannels, self.sampwidth, self.framerate, 228 framesize = self.nchannels * self.sampwidth [all …]
|
D | test_aifc.py | 23 sampwidth = 1 variable in AifcPCM8Test 40 sampwidth = 2 variable in AifcPCM16Test 59 sampwidth = 3 variable in AifcPCM24Test 84 sampwidth = 4 variable in AifcPCM32Test 109 sampwidth = 2 variable in AifcULAWTest 344 sampwidth = 2 349 fout.setparams((1, sampwidth, 1, 1, 'ULAW', '')) 350 frames = '\x00' * fout.getnchannels() * sampwidth
|
/external/python/cpython3/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
|
/external/python/cpython2/Lib/ |
D | wave.py | 271 sampwidth = struct.unpack('<H', chunk.read(2))[0] 272 self._sampwidth = (sampwidth + 7) // 8 347 def setsampwidth(self, sampwidth): argument 350 if sampwidth < 1 or sampwidth > 4: 352 self._sampwidth = sampwidth 394 nchannels, sampwidth, framerate, nframes, comptype, compname = params 398 self.setsampwidth(sampwidth)
|
D | audiodev.py | 153 self.sampwidth = 0 170 self.sampwidth = width 186 if self.sampwidth == 0: 191 info.o_precision = 8 * self.sampwidth
|
D | sunau.py | 327 def setsampwidth(self, sampwidth): argument 330 if sampwidth not in (1, 2, 4): 332 self._sampwidth = sampwidth 377 nchannels, sampwidth, framerate, nframes, comptype, compname = params 379 self.setsampwidth(sampwidth)
|
D | aifc.py | 636 def setsampwidth(self, sampwidth): argument 639 if sampwidth < 1 or sampwidth > 4: 641 self._sampwidth = sampwidth 688 nchannels, sampwidth, framerate, nframes, comptype, compname = info 694 self.setsampwidth(sampwidth)
|
/external/python/cpython2/Lib/plat-mac/ |
D | Audio_mac.py | 38 def setsampwidth(self, sampwidth): argument 39 self._sampwidth = sampwidth
|
/external/python/cpython2/Doc/library/ |
D | wave.rst | 101 Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype, 184 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
|
D | sunau.rst | 153 Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype, 234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
|
D | aifc.rst | 194 .. method:: aifc.setparams(nchannels, sampwidth, framerate, comptype, compname)
|
/external/python/cpython3/Doc/library/ |
D | sndhdr.rst | 22 ``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). The value for *type*
|
D | sunau.rst | 149 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, 234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
|
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)
|