+ if frame_count > 0:
+ self.a_s_with_effect = None
+
+ segment = self.current_audio_segment
+ max_val = int(segment.frame_count())
+
+ start_i = max(self.current_frame, 0)
+ end_i = min(self.current_frame + frame_count, max_val)
+ data += segment._data[(start_i * fw):(end_i * fw)]
+ nb_frames += end_i - start_i
+ self.current_frame += end_i - start_i
+
+ return [data, nb_frames]
+
+ def seek(self, value = 0, delta = False):
+ # We don't want to do that while stopping
+ if not (self.is_loaded_playing() or self.is_loaded_paused()):
+ return
+ with self.music_lock:
+ self.a_s_with_effect = None
+ self.current_frame = max(0, int(delta) * self.current_frame + int(value * self.audio_segment.frame_rate))
+ # FIXME: si on fait un seek + delta, adapter le "loop"
+
+ def stop(self, fade_out = 0, wait = False):