Skip to content

Commit

Permalink
Stop constant dereference... again.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmK530 committed May 3, 2023
1 parent f88f4df commit b3abd84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Playback/MainPlayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void StartPlayback(){
trackFinished[i] = FALSE;
}
}
int (*SendDirectData)(DWORD) = SendDirectDataPtr;
while(TRUE){
long long tempT = timeInMilliseconds();
if((long)(tempT-startTime)>=16){
Expand Down Expand Up @@ -92,7 +93,7 @@ void StartPlayback(){
int temp_eC = *eC;
struct SynthEvent *curr = SynthEvents[i] + temp_tIDX;
while(curr->pos <= clock){
(*SendDirectDataPtr)(curr->event);
SendDirectData(curr->event);
temp_tIDX++;
if(temp_tIDX>=temp_eC){
//printf("\nKilled track %lu",i+1);
Expand All @@ -114,4 +115,4 @@ void StartPlayback(){
exit(0);
}
}
}
}

0 comments on commit b3abd84

Please sign in to comment.