From a0fd6ab697bff4a18fd79db39f45f41ddf6d9aef Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 25 Nov 2016 16:16:56 +0100 Subject: [PATCH 1/2] Fixed internal buffer overflow --- src/jack.cxx | 9 ++++++--- src/jack.hxx | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/jack.cxx b/src/jack.cxx index 23a010d..b6551d3 100644 --- a/src/jack.cxx +++ b/src/jack.cxx @@ -84,7 +84,7 @@ Jack::Jack( std::string name ) : clientActive(false) { jack = this; - + lastnframes=0; samplerate = jack_get_sample_rate( client ); LUPPP_NOTE("Samplerate %i", samplerate ); @@ -494,7 +494,7 @@ void Jack::processFrames(int nframes) metronome->process( nframes, &buffers ); /// mix input, reverb & post-sidechain in - for(unsigned int i = 0; i < buffers.nframes; i++) + for(unsigned int i = 0; i < nframes; i++) { float input= buffers.audio[Buffers::MASTER_INPUT][i] * inputVol; @@ -574,8 +574,9 @@ void Jack::processFrames(int nframes) // JACK in multiple parts internally in Luppp: used for processing bar() / beat() // if a full JACK nframes has been processed, this is extra work: its not that expensive /// update buffers by nframes - if(nframes Date: Tue, 29 Nov 2016 18:31:15 +0100 Subject: [PATCH 2/2] Fixed issue with non responsize lower gui part --- src/gui.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.cxx b/src/gui.cxx index 7b6a7c4..145b437 100644 --- a/src/gui.cxx +++ b/src/gui.cxx @@ -441,7 +441,7 @@ Gui::Gui(const char* argZero) : headerImages->end(); // create a new "Group" with all Luppp GUI contents, for resizing - lupppGroup = new Fl_Group( 0, 0, 1110, 650, "Luppp"); + lupppGroup = new Fl_Group( 0, 0, 1110, 700, "Luppp"); { int i = 0; for (; i < NTRACKS; i++ )