From db04e2fb861ed7ccef5a7339e9860ca5c2590a7c Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 10 Jan 2011 20:39:51 +0100 Subject: In-synth-cli can now (re)load programs. maybe SEGFAULTING? --- synth/channel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'synth/channel.cpp') diff --git a/synth/channel.cpp b/synth/channel.cpp index dbfcc48..61ea6de 100644 --- a/synth/channel.cpp +++ b/synth/channel.cpp @@ -435,6 +435,12 @@ void Channel::kill_program(int prog) it++; } +void Channel::maybe_reload_program(int prog) +{ + if (program==prog) + curr_prg=program_settings[prog]; +} + void Channel::release_all() { list::iterator it; -- cgit v1.2.3