mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-31 03:00:05 +00:00
Minor code clean-ups
This commit is contained in:
parent
76a92c0c26
commit
32081a387c
30 changed files with 240 additions and 279 deletions
|
|
@ -91,18 +91,12 @@ static void jack_Log (const String& s)
|
|||
|
||||
static void dumpJackErrorMessage (const jack_status_t status)
|
||||
{
|
||||
if (status & JackServerFailed || status & JackServerError)
|
||||
jack_Log ("Unable to connect to JACK server");
|
||||
if (status & JackVersionError)
|
||||
jack_Log ("Client's protocol version does not match");
|
||||
if (status & JackInvalidOption)
|
||||
jack_Log ("The operation contained an invalid or unsupported option");
|
||||
if (status & JackNameNotUnique)
|
||||
jack_Log ("The desired client name was not unique");
|
||||
if (status & JackNoSuchClient)
|
||||
jack_Log ("Requested client does not exist");
|
||||
if (status & JackInitFailure)
|
||||
jack_Log ("Unable to initialize client");
|
||||
if (status & JackServerFailed || status & JackServerError) jack_Log ("Unable to connect to JACK server");
|
||||
if (status & JackVersionError) jack_Log ("Client's protocol version does not match");
|
||||
if (status & JackInvalidOption) jack_Log ("The operation contained an invalid or unsupported option");
|
||||
if (status & JackNameNotUnique) jack_Log ("The desired client name was not unique");
|
||||
if (status & JackNoSuchClient) jack_Log ("Requested client does not exist");
|
||||
if (status & JackInitFailure) jack_Log ("Unable to initialize client");
|
||||
}
|
||||
#else
|
||||
#define dumpJackErrorMessage(a) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue