Get CD audio track frame?

Everything else that doesn't fall into one of the other PB categories.
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks alot for your help traumatic.
I'll download that package and install the aspi from that one and I'll have a look at the documentation :)

Right now, I'm backing up both my harddrives as I am going to reorganize my machine, create partitions for Win98, WinXP and Linux :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

GeoTrail wrote:Right now, I'm backing up both my harddrives as I am going to reorganize my machine, create partitions for Win98, WinXP and Linux :)
Ever thought of using virtual machines for that? With VM's, you can have them all in parallel... Great for testing portability!
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Yeah I know, I am a beta tester for vmware but I have thought about doing this for a long time now and since my XP is acting up I think this is a good time to finally get it done.

After it's done, I'm gonna use Linux for my everyday usage, and the Windows installations for testing only. Only thing now is to decide which distro to install. Now I'm gonna test the latest Xandros 3.01 and after that I'm testing ubuntu 5.04. And offcourse, the most important thing about the distro is that it must work well with PB installed 'cause I really wanna try the new IDE ;)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Yes, I'm also a big fan of VMware! :)

Back to topic... Because I found this quite interesting I took some time to
do some further investigation (aka coding).

Could you please run this example on your pc and tell me if it works?
http://files.connection-refused.org/aspicheck.zip

This is what it looks like for me (obviously, ASPI is correctly installed here ;)) :

Image
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Hmmm that's strange. Here's what I get with your app
Image

and here's the result from the adaptec checker
Image
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

I don't think you can rely on the information the "adaptec installation verification"
gives you because it only checks for the presence of wnaspi32.dll and aspi32.sys.
If any file is missing it just says "ASPI component(s) missing" and that's it.

Anyway, I tried some DLLs just to check the differences.

Nero-ASPI, version 2.0.1 (59) - works.
Adaptec 4.6 (1021) - works.
Adaptec 4.71 - works.

I also tried an older 4.57 (1008) - that one didn't work.

Can anyone else say something to this?
Rings? I know you tried it as well... 8)
Good programmers don't comment their code. It was hard to write, should be hard to read.
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Ok, so what do you think is causing my problems? Driver version or incorrect registered driver?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

If I would only know...

Maybe it only works on my system, who knows? :?

...let's hope some others will respond...
Good programmers don't comment their code. It was hard to write, should be hard to read.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Works fine here with Nero-ASPI, version 2.0.1 (59)
Image
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

It's probably because my XP machine is all messed up. I've hade lot of problems with other things to the past week.

I'll try that app again after I have re-installed Windows.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

@GeoTrail - I've put together some code that reads track into from the .cda file. Will that help you at all :?:

Image

I'm also working on getting track offsets but that's progressing rather slowly right now. :(
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Well, I actually do need the frame for the cd in order to calculate the id for the CD. But being able to read the tracks would also be usefull in this project. Is it alot of coding?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

First let me say I don't know much about audio files and ripping (yet) ;)

There is CD serial number also located within the .cda file. Is that what you need? This is the same serial number you see when doing a dir on the cd.
Image

The code I put together is < 100 lines and is quite straight forward. Let me clean it up a little and I'll post it here later today.
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
GeoTrail
Addict
Addict
Posts: 2799
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

No it's not the serial I need. But as on a movie there are frames, so there is on an audio cd. So by getting the number of frames and the offset of frames from the beginning, you can also get the lead-out info from a CD and thereby calculate the cd id which should be unique when you do the calculation together with the total ammount of audio tracks. You can get more info about that on the freedb.org website.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Ok, I thnk I understand now. :)

If I incorporate my code into your original code posted on page 1, then you should have the info you need. Yes ... No :?:

Code: Select all

Procedure read_cdtoc_from_drive(void) 
  ; ********* Insert my code here **********
  ; Do whatever is appropriate To Read the toc of the CD 
  ; into the cdtoc[] Structure array. 
  ; ***********************************
  ProcedureReturn tot_trks 
EndProcedure
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
Post Reply