many changes, mostly to export
This commit is contained in:
@@ -18,6 +18,7 @@ uint8_t* audio_cache_B = NULL;
|
||||
int audio_cache_size = 0;
|
||||
bool switch_audio_cache = true;
|
||||
bool reading_audio_cache_A = false;
|
||||
int audio_bytes_written = 0;
|
||||
|
||||
void init_audio(Sequence* s) {
|
||||
if (audio_cache_A != NULL) {
|
||||
|
||||
@@ -11,6 +11,7 @@ extern QIODevice* audio_io_device;
|
||||
extern uint8_t* audio_cache_A;
|
||||
extern uint8_t* audio_cache_B;
|
||||
extern int audio_cache_size;
|
||||
extern int audio_bytes_written;
|
||||
extern bool switch_audio_cache;
|
||||
extern bool reading_audio_cache_A;
|
||||
void init_audio(Sequence* s);
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ void cache_audio_worker(Clip* c, bool write_A) {
|
||||
int limit = std::min(c->frame_sample_index + audio_cache_size - bytes_written, nb_bytes);
|
||||
// perform all audio effects
|
||||
for (unsigned int j=0;j<c->effects.size();j++) {
|
||||
c->effects[j]->process_audio(frame->data[0], limit);
|
||||
c->effects.at(j)->process_audio(frame->data[0], limit);
|
||||
}
|
||||
// mix audio into cache
|
||||
for (int i=c->frame_sample_index;i<limit;i++) {
|
||||
|
||||
Reference in New Issue
Block a user