BASS_ChannelPause(CDCHANNEL) realy pause ?

Started by Fiens,

Fiens

Hello
I use bass.pas and the procedure :
 BASS_ChannelPause(CDCHANNEL).
I want to pause the cd while playing but when i play again,
it play at the begining, not where i have paused.
Whow can i pause the cd channel (not stop) ?
What procedure must i use after pause, BASS_CDPlay ?
Thanks.

Chris

#1
Hi try
 BASS_ChannelResume to resume a paused channel
Play = start the channel from the begin
Stop = stop the channel
Pause = paused the channel
Resume start the channel up the point where the channel was paused

Chris

Irrational86

This same thing happens to me (i forgot to post it here ;D)..Anyways, I used BASS_ChannelPause and BASS_ChannelResume, but no luck, it still restarted the playback position.

System Specs:
OS: Win2k (Latest Service Pack)
CD Drive: PHILIPS PCRW804

Chris

procedure TForm1.Play_ButtonClick(Sender: TObject);
begin
  // Play CD track (looped)
  if not RT_BASS_CDPlay(StrToInt(Edit2.Text), TRUE, FALSE) then
    Error('Can''t play CD')
  else
    cdplaying := TRUE;
end;

//////////////////////////////////////////////////////

procedure TForm1.Resume_ButtonClick(Sender: TObject);
begin
  // Resume CD
  if RT_BASS_ChannelResume(CDCHANNEL) then
    cdplaying := TRUE;
end;


look at the demo

Dynamic_Basstest
Greets
Chris

Ian @ un4seen

BASS_ChannelResume should continue playback from where BASS_ChannelPause stopped it.

Xminion, if you press "Stop" in the BASSTEST example, and then press "Resume", does it not continue from where it left off? Also, when you press "Stop", does anything happen to the CD time display?

Chris

Here it works fine  (Tested with 2 Teacs CDROMs)

I remember that some older CDROMs doesn`s support Resuming.....

Chris

Irrational86

QuoteXminion, if you press "Stop" in the BASSTEST example, and then press "Resume", does it not continue from where it left off?
Nope, it starts the track from the beginning

QuoteAlso, when you press "Stop", does anything happen to the CD time display?
The time display gets reset to 0:00

Ian @ un4seen

QuoteThe time display gets reset to 0:00
Thought it might :)

Pause/resume should work even with CD drives that don't actually support pause/resume themselves, but I guess it doesn't with yours... I'll send an update to try.

Irrational86

QuoteI'll send an update to try.
Yes Ian, It worked. I replied the email, just in case you didnt know who it was from...