Problem autofree flag

Started by Sheep, 23 Jun '03 - 06:15

Sheep

If I lay this url: http://160.79.1.141:8600 (a shoutcast stream), than if I open it with the BASS_STREAM_AUTOFREE flag, it won't output any sound, but gives no errors.

If I remove the flag it plays perfect.

Anyone idea's?

channel := BASS_StreamCreateURL(PChar(filename+ #0), 0, and BASS_STREAM_AUTOFREE, nil);

Regards Sheep

Sheep

I mean "Play" not "lay" :)

Further, maybe Ian knows this, if I try to play many live streams very fast after eachother. Than more streams are playing together (mixed) sometimes. Though at every start of a new play I call:

BASS_ChannelStop(Channel);
BASS_StreamFree(Channel);

How can I be sure to always Stop any playing music before I play another file. Is this a bug in bass? Or am I the idiot who's overloading the system?  :-*

Sheep

I might found the problem.

What's the way to get all the active channel handles?
Than I can call BASS_ChannelStop to stop them.

The Bass_Stop does too much. Isns't there a BASS_StopAllChannels ?

(: JOBnik! :)

#3
Hi ;D

Are you using that: BASS_STREAM_AUTOFREE flags with other
flags? I see there and, but it must be or between each flag :)

* And if you're using only 1 flag then no or is needed especially NO and :)

Have fun!

8) JOBnik! 8)

Ian @ un4seen

QuoteWhat's the way to get all the active channel handles?
Than I can call BASS_ChannelStop to stop them.

The Bass_Stop does too much. Isns't there a BASS_StopAllChannels ?
There isn't a "get all the active channel handles" function, so you need to keep record of the handles you create yourself :)

BASS_Stop is equivalent to calling BASS_ChannelStop for all sample/stream/music channels.

Sheep

Ian okay thanks.

And yes the "and" was wrong, in my code it's correct, I putted it wrong here.