Author Topic: Problem autofree flag  (Read 4567 times)

Sheep

  • Posts: 243
Problem autofree flag
« on: 23 Jun '03 - 06:15 »
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

  • Posts: 243
Re: Problem autofree flag
« Reply #1 on: 23 Jun '03 - 06:22 »
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

  • Posts: 243
Re: Problem autofree flag
« Reply #2 on: 23 Jun '03 - 06:45 »
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! :)

  • Posts: 1080
Re: Problem autofree flag
« Reply #3 on: 23 Jun '03 - 12:03 »
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)
« Last Edit: 23 Jun '03 - 12:05 by JOBnik »

Ian @ un4seen

  • Administrator
  • Posts: 26155
Re: Problem autofree flag
« Reply #4 on: 23 Jun '03 - 14:59 »
Quote
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 ?

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

  • Posts: 243
Re: Problem autofree flag
« Reply #5 on: 23 Jun '03 - 16:12 »
Ian okay thanks.

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