Esempio n. 1
0
 def _clear_ring_buffer(self):
     check(asound.snd_pcm_drop(self._device.pcm))
     check(asound.snd_pcm_prepare(self._device.pcm))
     self._current_buffer_time = 0.
     self._cumulative_buffer_time = 0.
     self._source_read_index = 0
     self._queue_audio_data = None
     self._start_time = None
Esempio n. 2
0
 def clear(self):
     check(asound.snd_pcm_drop(self.pcm))
     self._stop_alsatime = None
     self._timestamps = []
Esempio n. 3
0
 def clear(self):
     check(asound.snd_pcm_drop(self.pcm))
     self._stop_alsatime = None
     self._timestamps = []