OK, i know its more powerful to play a CD as a stream however for what i am currently playing with the CD functions seem so simple..
The problem i have is when i use the same button on a 4 button keypad for play and pause. So i need to see if its paused then if thats false is it playing… I was going to use GetTrackTime for this however if its paused that returns zero?? I am confused as to why.. (Once Track has been playing, the button handle take at least 30ms to fire)
So rewritten GetTracktime always returns 0 when track is paused. Regardless of how far into the track you are.
Can i use the isplaying like with a stream but i dont know what channel the CD is on, or do i??
Any help on those functions would be great, but i do understand that as it can be done as a stream and you guys are working on newer things, but any help would be cool.
- Anonymous asked 11 years ago
Thanks for the reply….
Its probably the way i have written it but you have missed the point of what i was trying to accomplish. I know i can use the getpaused CD function and with that can tell if its paused then using SetPaused with either true or false 1 and 0 respectively, pause or unpause.
However that isnt the problem. I need to know a track is playing before that becomes useful. If no CD is in the drive then getpaused will return false. No track is paused but no disc is available. Also if the CD is there but stopped again this will return false. There fine as i will just try and play it it’ll return false thats fine.
What i wanted to know or see if theres another way round it was that if the Gettracktime is greater than 0 its fairly safe to assume a track is playing. Then i can say ok its playing is it paused. No… Great Pause it… But now we’re screwed as now gettracktime returns 0!!!! Crap so no track is playing then?? Ok i can hold a boolean. What if i eject the disc the boolean is still there… Now i have to check a whole load else….
So much overkill. I was just hoping that maybe i was missing something in the pause function or an oversight in the gettracktime for a CD in paused mode..
Thanks for the reply though.
Thats what i figured. If you get a minute just to check that funtion that’d be great!!!
But i will look at doing it the otherway, will look at redoing things in EX too.
Just a shame really as it was so much simpler as there is no need to do anything to handle if the disc is removed whilst playing and so on.
Please login first to submit.