22 May '13 - 22:47 *
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: Need your thoughts  (Read 1144 times)
JM-DG
Posts: 112


« on: 17 Jun '09 - 22:50 »
Reply with quoteQuote

Hi!
I'm making an application which have the possibility to play 2 streams at the same time.
I have a problem though. If I have a cd in my driver, I can't play 2 different tracks which are on the same cd.
This is normal since the head or the cd-reader can't be at 2 places at the same time.

Any solution to permit the user to play 2 songs at the same time on the same cd?? Grin
Logged
Chris
Posts: 1507


« Reply #1 on: 17 Jun '09 - 23:05 »
Reply with quoteQuote

HI
 Orginal BASSCD Doku
"Remarks"
Only one stream can exist at a time per CD drive. If a stream using the drive already exists, this function will fail, unless the BASS_CONFIG_CD_FREEOLD config option is enabled.

BASS_SetConfig(
    BASS_CONFIG_CD_FREEOLD,
    BOOL freeold
);
Remarks
Only one stream can exist at a time per CD drive. So if a stream using the same drive already exists, stream creation function calls will fail, unless this config option is enabled to automatically free the existing stream. This is enabled by default.

Chris


Logged
JM-DG
Posts: 112


« Reply #2 on: 18 Jun '09 - 00:54 »
Reply with quoteQuote

yeah I know  Undecided
But do you know any work-around or solution so that the user may play 2 songs at the same time on the same cd??
Logged
Xire
Posts: 234


« Reply #3 on: 18 Jun '09 - 01:21 »
Reply with quoteQuote

Here's the thing for you to try Wink
Insert CD. Start to play track1 with some application which can play CD, then start another app and try to play track 2 at the same time. At least on my PC sound was skipping like crazy on both applications so I guess it's quite impossible to play 2 tracks at the same time from one CD. The only solution would be to grab the tracks and then play them.
Logged
JM-DG
Posts: 112


« Reply #4 on: 18 Jun '09 - 01:32 »
Reply with quoteQuote

Would it be possible to buffer the data of song1 in stream1 and buffer the data of song2 in stream2 going back and forth? Huh
That's my only guess...
Logged
Archaos90
Posts: 10


« Reply #5 on: 18 Jun '09 - 11:13 »
Reply with quoteQuote

Would it be possible to buffer the data of song1 in stream1 and buffer the data of song2 in stream2 going back and forth? Huh
That's my only guess...

That is good thinking, too bad you will still experience lagging in the playback due to waiting for the buffer to fill up. If the buffer is big it might take some time to fill up which will delay from the moment you request to play it to to when you really will play it.

It's impossible, I am afraid, to play two songs from the same CD at the same time due to technical (also mechanical) restrictions. Sad
Logged
Chris
Posts: 1507


« Reply #6 on: 18 Jun '09 - 11:16 »
Reply with quoteQuote

Hi
 I thing there is no way to play 2 Songs at the same time.
 The Only way is....you can check if a BASCD Stream still exists
 and then with the  BASS_CD_StreamSetTrack the User can switch
 to the next one.....The Only Problem that I see is so
 Fading out from the Current and fading in to the New
 AT THE SAME TIME is not possible.
 Mybe Ian has an Idea.......
 Chris

Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #7 on: 18 Jun '09 - 16:07 »
Reply with quoteQuote

The only way I can think of to do it would be to read one of the CD tracks to memory, ie. using a decoding channel and BASS_ChannelGetData. You could then play that track from there (eg. via BASS_StreamCreate) while playing the other CD track in the usual way. There will of course be some delay while you wait for the 1st track to be read to memory though, which I guess could be a problem Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines