jarikomppa / soloud

Free, easy, portable audio engine for games
http://soloud-audio.com
Other
1.69k stars 270 forks source link

AudioSourceInstance::seek now sets stream position to input seconds. #319

Closed dwbullock closed 2 years ago

dwbullock commented 3 years ago

Fix: AudioSourceInstance::seek now sets stream position to input seconds.

Previously, AudioSourceInstance::seek would set the current position of the stream (mStreamPosition) to the offset calculated for the seek. This would work for streams that haven't started (offset will equal aSeconds) but not for streams that need to seek during playback.

jarikomppa commented 2 years ago

Ouch, good catch. Merged manually since github's ui couldn't figure the conflicts out.