From e9600a1fe0d09d9c76e7885e796de5a9420e9f92 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Tue, 20 Nov 2012 21:28:04 +0000 Subject: Fixed audio stuttering loud annoying repeated segments upon seek. Slight readjustment of audio prefetch and midi thread priority. --- muse2/ChangeLog | 3 +++ muse2/muse/app.cpp | 8 ++++---- muse2/muse/main.cpp | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'muse2') diff --git a/muse2/ChangeLog b/muse2/ChangeLog index 21bdba1d..b5cbc4c6 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -1,3 +1,6 @@ +20.11.2012: + - Fixed audio stuttering loud annoying repeated segments upon seek. (Tim) + Slight readjustment of audio prefetch and midi thread priority (-5 and -1 instead of +1 and +2). 17.11.2012: * Improved: Deicsonze soft synthesizer: Fixed crash, bugs, added ladspa plugins. (Tim) TODO: No plugin control automation. Some oddities with log slider/entry ranges. Maybe add delay wet/dry. diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 0286fc2c..e0fffd4d 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -177,10 +177,10 @@ bool MusE::seqStart() // in JackAudioDevice::realtimePriority() which is a bit flawed - it reports there's no RT... if(MusEGlobal::realTimeScheduling) { - { - pfprio = MusEGlobal::realTimePriority + 1; - midiprio = MusEGlobal::realTimePriority + 2; - } + if(MusEGlobal::realTimePriority - 5 >= 0) + pfprio = MusEGlobal::realTimePriority - 5; + if(MusEGlobal::realTimePriority - 1 >= 0) + midiprio = MusEGlobal::realTimePriority - 1; } if(MusEGlobal::midiRTPrioOverride > 0) diff --git a/muse2/muse/main.cpp b/muse2/muse/main.cpp index 2ee9b60c..ceb245ba 100644 --- a/muse2/muse/main.cpp +++ b/muse2/muse/main.cpp @@ -232,7 +232,7 @@ static void usage(const char* prog, const char* txt) fprintf(stderr, " -A Force inclusion of ALSA midi even if using Jack\n"); fprintf(stderr, " -P n Set audio driver real time priority to n\n"); fprintf(stderr, " (Dummy only, default 40. Else fixed by Jack.)\n"); - fprintf(stderr, " -Y n Force midi real time priority to n (default: audio driver prio +2)\n"); + fprintf(stderr, " -Y n Force midi real time priority to n (default: audio driver prio -1)\n"); fprintf(stderr, "\n"); fprintf(stderr, " -p Don't load LADSPA plugins\n"); #ifdef VST_SUPPORT -- cgit v1.2.3