Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Persistent jack client
  • Loading branch information
falkTX committed Oct 29, 2013
1 parent 43a869b commit 835f963
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions release/distrib/replay/lib/sounddriver/sounddriver_linux.cpp
Expand Up @@ -123,7 +123,9 @@ int _init_JACK()

AUDIO_Latency = jack_get_buffer_size(jaudio_client);

return (jaudio_client != NULL) ? TRUE : FALSE;
jack_activate(jaudio_client);

return TRUE;
}

int AUDIO_Init_Driver(void (*Mixer)(Uint8 *, Uint32))
Expand All @@ -147,11 +149,6 @@ void AUDIO_Play(void)
{
AUDIO_ResetTimer();
AUDIO_Play_Flag = TRUE;

if (jaudio_client == NULL)
return;

jack_activate(jaudio_client);
}

// ------------------------------------------------------
Expand Down Expand Up @@ -193,11 +190,6 @@ int AUDIO_GetSamples(void)
void AUDIO_Stop(void)
{
AUDIO_Play_Flag = FALSE;

if (jaudio_client == NULL)
return;

jack_deactivate(jaudio_client);
}

// ------------------------------------------------------
Expand Down

0 comments on commit 835f963

Please sign in to comment.