Skip to content

Commit

Permalink
Update src/audio_input/audio.c
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua 'Pip' Minter <[email protected]>
  • Loading branch information
pseregiet and Joshua 'Pip' Minter authored Aug 8, 2020
1 parent 6db69d4 commit 6617759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio_input/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void rsAudioGetSamples(RSAudio *audio, uint8_t *newbuff, int rewindFrames) {
}

void rsAudioHandleEvents(RSAudio *audio) {
if (audio->deviceAddTime && (SDL_GetTicks() > audio->deviceAddTime)) {
if (audio->deviceAddTime != 0 && (SDL_GetTicks() > audio->deviceAddTime)) {
rsLog("New audio devices detected. Attempting reconnect");
rsAudioReconnect(audio, audio->deviceName);
audio->deviceAddTime = 0;
Expand Down

0 comments on commit 6617759

Please sign in to comment.