Recent

Author Topic: Read a CD TrackList  (Read 2237 times)

amedeo

  • New Member
  • *
  • Posts: 35
Read a CD TrackList
« on: April 17, 2021, 04:40:12 pm »
Pleas can somebody tell me how read the CD TrackList?
Sorry for the poor question
Amedeo

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1113
  • Professional amateur ;-P
Re: Read a CD TrackList
« Reply #1 on: April 17, 2021, 08:42:42 pm »
Hey Amedeo,

From a quick Google search I was able to find that UOS - United OpenLib of Sound, from our good friend Fre;D 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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Read a CD TrackList
« Reply #2 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

amedeo

  • New Member
  • *
  • Posts: 35
Re: Read a CD TrackList
« Reply #3 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