patch RtMidi for ARM

This commit is contained in:
tildearrow 2024-05-01 14:46:58 -05:00
parent e8bbd0e85d
commit 57158d9ebd

View file

@ -1805,7 +1805,7 @@ static void *alsaMidiHandler( void *ptr )
struct timespec y;
y.tv_nsec = apiData->lastTime.tv_nsec;
y.tv_sec = apiData->lastTime.tv_sec;
if ( x.tv_nsec < y.tv_nsec ) {
if ( (long int) x.tv_nsec < y.tv_nsec ) {
int nsec = (y.tv_nsec - (int)x.tv_nsec) / 1000000000 + 1;
y.tv_nsec -= 1000000000 * nsec;
y.tv_sec += nsec;