Skip to content

Commit

Permalink
CSFML/CustomSoundStream: Remove callback null check, as it's always n…
Browse files Browse the repository at this point in the history
…on-null
  • Loading branch information
crumblingstatue committed Oct 17, 2024
1 parent 0cdd8f0 commit 436205b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CSFML/src/Audio/CustomSoundStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ class sfCustomSoundStream : public sf::SoundStream {
}

virtual void onSeek(sf::Time timeOffset) {
if (mySeekCallback) {
int64_t time = {timeOffset.asMicroseconds()};
mySeekCallback(time, myUserData);
}
mySeekCallback(timeOffset.asMicroseconds(), myUserData);
}

sfCustomSoundStreamGetDataCallback myGetDataCallback;
Expand Down

0 comments on commit 436205b

Please sign in to comment.