(self)
| 398 | return self._comptype |
| 399 | |
| 400 | def getcompname(self): |
| 401 | if self._comptype == 'ULAW': |
| 402 | return 'CCITT G.711 u-law' |
| 403 | elif self._comptype == 'ALAW': |
| 404 | return 'CCITT G.711 A-law' |
| 405 | else: |
| 406 | return 'not compressed' |
| 407 | |
| 408 | def setparams(self, params): |
| 409 | nchannels, sampwidth, framerate, nframes, comptype, compname = params |