Home
last modified time | relevance | path

Searched refs:sampwidth (Results 1 – 25 of 27) sorted by relevance

12

/external/python/cpython3/Lib/test/
Daudiotests.py28 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 …]
Dtest_sunau.py19 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
Dtest_aifc.py22 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 …]
Dtest_wave.py20 sampwidth = 1 variable in WavePCM8Test
37 sampwidth = 2 variable in WavePCM16Test
58 sampwidth = 3 variable in WavePCM24Test
85 sampwidth = 4 variable in WavePCM32Test
Dtest_sndhdr.py26 self.assertEqual(what.sampwidth, expected[4])
/external/python/cpython2/Lib/test/
Dtest_sunau.py17 sampwidth = 1 variable in SunauPCM8Test
34 sampwidth = 2 variable in SunauPCM16Test
53 sampwidth = 4 variable in SunauPCM32Test
78 sampwidth = 2 variable in SunauULAWTest
Dtest_wave.py20 sampwidth = 1 variable in WavePCM8Test
37 sampwidth = 2 variable in WavePCM16Test
64 sampwidth = 3 variable in WavePCM24Test
91 sampwidth = 4 variable in WavePCM32Test
Daudiotests.py51 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 …]
Dtest_aifc.py23 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/
Dwave.py261 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)
Dsunau.py354 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)
Daifc.py261 _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)
Dsndhdr.py49 SndHeaders.sampwidth.__doc__ = ("""Either the sample size in bits or
/external/python/cpython2/Lib/
Dwave.py271 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)
Daudiodev.py153 self.sampwidth = 0
170 self.sampwidth = width
186 if self.sampwidth == 0:
191 info.o_precision = 8 * self.sampwidth
Dsunau.py327 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)
Daifc.py636 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/
DAudio_mac.py38 def setsampwidth(self, sampwidth): argument
39 self._sampwidth = sampwidth
/external/python/cpython2/Doc/library/
Dwave.rst101 Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype,
184 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
Dsunau.rst153 Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype,
234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
Daifc.rst194 .. method:: aifc.setparams(nchannels, sampwidth, framerate, comptype, compname)
/external/python/cpython3/Doc/library/
Dsndhdr.rst22 ``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). The value for *type*
Dsunau.rst149 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
Dwave.rst103 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
209 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
Daifc.rst93 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
197 .. method:: aifc.setparams(nchannels, sampwidth, framerate, comptype, compname)

12