fixed various audio issues

This commit is contained in:
itsmattkc
2018-06-07 03:30:54 -07:00
parent b2b3f5a14e
commit 35e03bd91b
24 changed files with 225 additions and 237 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ void Clip::init() {
}
void Clip::reset() {
cache_size = cache_A.offset = cache_B.offset = open = pkt_written = cache_A.written = cache_B.written = cache_A.unread = cache_B.unread = reached_end = reset_audio = frame_sample_index = 0;
cache_size = cache_A.offset = cache_B.offset = open = pkt_written = cache_A.written = cache_B.written = cache_A.unread = cache_B.unread = reached_end = reset_audio = frame_sample_index = audio_buffer_write = 0;
texture_frame = -1;
formatCtx = NULL;
stream = NULL;
+1
View File
@@ -89,6 +89,7 @@ struct Clip
// audio playback variables
SwrContext* swr_ctx;
int frame_sample_index;
int audio_buffer_write;
bool reset_audio;
};
+2 -2
View File
@@ -21,5 +21,5 @@ Effect* Effect::copy() {
return e;
}
void Effect::process_gl(int* anchor_x, int* anchor_y) {}
void Effect::process_audio(uint8_t* samples, int nb_bytes) {}
void Effect::process_gl(int*, int*) {}
void Effect::process_audio(uint8_t*, int) {}