many improvements to the playback algorithm

This commit is contained in:
itsmattkc
2018-10-20 22:58:19 +11:00
parent c9b8775a81
commit 386693d372
11 changed files with 234 additions and 299 deletions
+1 -3
View File
@@ -79,7 +79,6 @@ void Clip::reset() {
open = false;
finished_opening = false;
pkt_written = false;
reached_end = false;
audio_reset = false;
frame_sample_index = -1;
audio_buffer_write = false;
@@ -97,8 +96,7 @@ void Clip::reset_audio() {
case MEDIA_TYPE_TONE:
audio_reset = true;
frame_sample_index = -1;
audio_buffer_write = 0;
reached_end = false;
audio_buffer_write = 0;
break;
case MEDIA_TYPE_SEQUENCE:
{