Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Daudiotests.py29 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 …]
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.py24 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 …]
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])
/third_party/python/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
/third_party/python/Doc/library/
Dsunau.rst149 Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth,
234 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
Dsndhdr.rst22 ``framerate``, ``nchannels``, ``nframes``, ``sampwidth``). The value for *type*
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)
/third_party/python/Misc/
DHISTORY3796 - Issue #19131: The aifc module now correctly reads and writes sampwidth of