fixed various audio issues
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user