24 May '13 - 04:16 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BUG: Unable to restart playback after fadeout  (Read 1290 times)
Peter_Hebels
Posts: 119


« on: 29 Jan '04 - 17:51 »
Reply with quoteQuote

When I stop a music file while using BASS it's BASS_ChannelSlideAttributes function, I cannot restart the playback again after I stopped it. I never had this problem before and also can't exactly tell from which version it started to happen. I think it started after upgrading to version 2.0.0.17.

I also tried upgrading to version 2.0.0.18, this did not solve the problem.

My code looks like the following:
BASS_ChannelSetAttributes chan, -1, 0, -1
BASS_ChannelSlideAttributes chan, -1, Round(VolValue, 0), -1, 1000

BTW: This behaviour is the same as when you are unable to start after starting to play a song in Winamp, this problem was posted earlier on the forum.
Logged
MrTDelphi
Posts: 111


« Reply #1 on: 30 Jan '04 - 10:39 »
Reply with quoteQuote

Hi Peter..

I only use like this to fadout
BASS_ChannelSlideAttributes(chan,-1,0,-101,1000); or
BASS_ChannelSlideAttributes(chan,-1,-2,-101,1000); if you want stop in the End

when start again its ok..

if Fadein Plus before BASS_ChannelSlideAttributes(...)
BASS_ChannelSetAttributes(chan, -1, 0, -101);  starting from 0


regards..

Luq
Logged
Peter_Hebels
Posts: 119


« Reply #2 on: 30 Jan '04 - 11:42 »
Reply with quoteQuote

Hmm, I have found the problem. It was not the slide function what was causing the it, instead it was the BASS_Stop function which caused the problem. Just replaced the BASS_Stop line with BASS_ChannelStop and it works ok now.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines