예제 #1
0
파일: sounds.py 프로젝트: d42/py_soundboard
 def _get_state(self):
     sample = self.current_sample
     position = self.samples.index(sample) if sample in self.samples else None
     return sound_state(sample, position)
예제 #2
0
파일: sounds.py 프로젝트: q3k/py_soundboard
 def _get_state(self):
     chunk = self.current_chunk
     position = self.chunks.index(chunk) if chunk in self.chunks else None
     return sound_state(chunk, position)