(self, sampwidth)
| 357 | return self._nchannels |
| 358 | |
| 359 | def setsampwidth(self, sampwidth): |
| 360 | if self._nframeswritten: |
| 361 | raise Error('cannot change parameters after starting to write') |
| 362 | if sampwidth not in (1, 2, 3, 4): |
| 363 | raise Error('bad sample width') |
| 364 | self._sampwidth = sampwidth |
| 365 | |
| 366 | def getsampwidth(self): |
| 367 | if not self._framerate: |