-Add: Disconnect from jack with ^D, for completeness...

git-svn-id: http://svn.fuzzle.org/mloop/trunk@29 ba049829-c6ef-42ef-81ac-908dd8d2e907
master
petern 2009-07-23 16:43:47 +00:00
parent b4494dc6b2
commit c271123265
2 changed files with 8 additions and 0 deletions

View File

@ -277,6 +277,13 @@ bool UI::Run(Jack &j)
}
}
break;
case UIKEY_DISCONNECT:
if (j.Connected()) {
j.Disconnect();
snprintf(status, sizeof status, "Disconnected from JACK");
}
break;
}
return false;

View File

@ -42,5 +42,6 @@ public:
#define UIKEY_TEMPO 't'
#define UIKEY_SAVE 'S'
#define UIKEY_RECONNECT 18
#define UIKEY_DISCONNECT 4
#endif /* UI_H */