SetSoundPosition() limitations?
Posted: Sat Jan 18, 2014 6:31 pm
Hello,
I'm using PureBasic 5.21 LTS. I'm trying to set the play position of a song and I can't set it past 25 seconds or so.
When I use higher values, the position retrieved with GetSoundPosition() loops and start from 0 again.
I tried with various .wav and .ogg files but there's no difference.
Am I doing something wrong or is there something wrong with SetSoundPosition() ?
Thanks
I'm using PureBasic 5.21 LTS. I'm trying to set the play position of a song and I can't set it past 25 seconds or so.
When I use higher values, the position retrieved with GetSoundPosition() loops and start from 0 again.
I tried with various .wav and .ogg files but there's no difference.
Am I doing something wrong or is there something wrong with SetSoundPosition() ?
Code: Select all
SetSoundPosition(#song, 24000, #PB_Sound_Millisecond)
Debug GetSoundPosition(#song, #PB_Sound_Millisecond) ; -> 24000
SetSoundPosition(#song, 25000, #PB_Sound_Millisecond)
Debug GetSoundPosition(#song, #PB_Sound_Millisecond) ; -> 652
SetSoundPosition(#song, 26000, #PB_Sound_Millisecond)
Debug GetSoundPosition(#song, #PB_Sound_Millisecond) ; -> 1652