Lazarus

Programming => Graphics and Multimedia => Audio and Video => Topic started by: amedeo on April 17, 2021, 04:40:12 pm

Title: Read a CD TrackList
Post by: amedeo on April 17, 2021, 04:40:12 pm
Pleas can somebody tell me how read the CD TrackList?
Sorry for the poor question
Amedeo
Title: Re: Read a CD TrackList
Post by: Gustavo 'Gus' Carreno on April 17, 2021, 08:42:42 pm
Hey Amedeo,

From a quick Google search I was able to find that UOS (https://github.com/fredvs/uos) - United OpenLib of Sound, from our good friend Fre;D (https://forum.lazarus.freepascal.org/index.php?action=profile;u=40972) has a unit that contains code to read the tracks:
https://github.com/fredvs/uos/blob/master/src/uos_cdrom.pas

Hope this helps.

Cheers,
Gus
Title: Re: Read a CD TrackList
Post by: winni on April 17, 2021, 09:06:13 pm
Hi!

Not all CDs support the extension "CD Text" of the red book.
If not then you get an info like "Track01 ... Track02 .... Track03...
Not very helpfull

With Linux living is always easier:

Code: Bash  [Select][+][-]
  1. cdda2wav -J -v titles -D /dev/sr0


Winni
Title: Re: Read a CD TrackList
Post by: amedeo on April 18, 2021, 10:14:15 am
Thanks for the answers, now I'll try to use its to implement my DBMusic program.
Amedeo
TinyPortal © 2005-2018