Free hstream at end of playing....

Started by fredvs,

fredvs

Is it possile, with other way that get position to know that the file playing is at the end and stopped, without the use of a timer who get position, to free the stream...

Azoth

If all you need to do at the end of the stream is to free it, why not use the BASS_STREAM_AUTOFREE flag in the BASS_StreamCreateFile() routine? If you need to do a series of things when the song ends you could use the BASS_ChannelSetSync() function with the BASS_SYNC_END flag, which would call the routine defined by the proc paramter. In that routine you could do almost anything you wanted to.

HIH
.Azoth.

fredvs

BASS_STREAM_AUTOFREE ;) ;) ;)

Of course, it works, thanks :-* :-* :-*