Browse Source

Fix jackXrun handle pointer

Thanks github user @bontric, closes #113.
tags/5.1.0
Stephen Sinclair 7 years ago
parent
commit
ce13dfbf30
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      RtAudio.cpp

+ 2
- 2
RtAudio.cpp View File

@@ -2130,7 +2130,7 @@ static void jackShutdown( void *infoPointer )

static int jackXrun( void *infoPointer )
{
JackHandle *handle = (JackHandle *) infoPointer;
JackHandle *handle = *((JackHandle **) infoPointer);

if ( handle->ports[0] ) handle->xrun[0] = true;
if ( handle->ports[1] ) handle->xrun[1] = true;
@@ -2334,7 +2334,7 @@ bool RtApiJack :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
else {
stream_.mode = mode;
jack_set_process_callback( handle->client, jackCallbackHandler, (void *) &stream_.callbackInfo );
jack_set_xrun_callback( handle->client, jackXrun, (void *) &handle );
jack_set_xrun_callback( handle->client, jackXrun, (void *) &stream_.apiHandle );
jack_on_shutdown( handle->client, jackShutdown, (void *) &stream_.callbackInfo );
}



Loading…
Cancel
Save