(self, pos)
| 295 | return self._soundpos |
| 296 | |
| 297 | def setpos(self, pos): |
| 298 | if pos < 0 or pos > self.getnframes(): |
| 299 | raise Error('position not in range') |
| 300 | if self._data_pos is None: |
| 301 | raise OSError('cannot seek') |
| 302 | self._file.seek(self._data_pos + pos * self._framesize) |
| 303 | self._soundpos = pos |
| 304 | |
| 305 | def close(self): |
| 306 | file = self._file |