Skip to content

Commit

Permalink
audio: No need to check if this variable is negative, the loop test d…
Browse files Browse the repository at this point in the history
…oes that.
  • Loading branch information
icculus committed Jan 31, 2025
1 parent be424f7 commit d2cf6b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sdl2_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -5687,9 +5687,6 @@ static void SDLCALL SDL2AudioDeviceCallbackBridge(void *userdata, SDL_AudioStrea
stream2->callback2(stream2->callback2_userdata, (Uint8 *) stream2->callback2_buffer, stream2->bytes_per_callbacks);
SDL_AudioStreamPut(stream2, stream2->callback2_buffer, stream2->bytes_per_callbacks);
approx_amount -= stream2->bytes_per_callbacks;
if (approx_amount < 0) {
approx_amount = 0;
}
}
}
}
Expand Down

0 comments on commit d2cf6b3

Please sign in to comment.