X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=RtAudio.cpp;h=2ac217965462a166d6b9516ec06726f90c394446;hb=ce13dfbf30fd1ab4e7f7eff8886a80f144c75e5d;hp=111039404af9339ab508a4efcfda6458788c6d33;hpb=cd561b79e61a438bff04c3ae3720b371c496693d;p=rtaudio-cdist.git diff --git a/RtAudio.cpp b/RtAudio.cpp index 1110394..2ac2179 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -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 ); }