TBASS_ChannelSeconds2Bytes not working?
Hello everybody,
I want to start playing a mp3 file from 10 seconds, but TBASS_ChannelSeconds2Bytes doesn't seem to work. What am I doing wrong?
Code:
Uses "TBASS", "CONSOLE"
function TBMain()
Dim Channel As DWord
Dim SamChannel As DWord
If TBASS_Init(-1, 44100, 0, 0, 0) = 0 Then Stop
Channel = TBASS_StreamCreateFile(%TBASS_FALSE,"song.mp3", 0, 0, %TBASS_STREAM_PRESCAN )
TBASS_ChannelSetPosition(Channel, TBASS_ChannelSeconds2Bytes ( Channel, 10) )
TBASS_ChannelPlay(Channel, %TBASS_TRUE)
WaitKey
TBASS_Free
end function
Also I am missing TBASS_ChannelSetSync in the documentation, is that function not available in ThinBasic?