Results 1 to 2 of 2

Thread: Read audio CD tracks as files

  1. #1
    Join Date
    Jan 2010
    Thanked 1 Time in 1 Post
    Qt products

    Default Read audio CD tracks as files

    I am trying to build an integrated CD ripper to put into a jukebox project I am working on. I don't have much experience in talking to hardware in Qt, so forgive the ignorance. I can use a KCompactDisc object to locate the cd drive and get information about the disc, such as length, number of tracks, disc id, etc. And I can successfully pass the disc signature to a kcddb client object and get the freedb information for the disc. What I am looking for is a way to create a QDir object from the CD, or at least to get a list of path/file names for the tracks, so I can pass the file names to an encoder process like lame. Essentially, I would like to traverse the CD as if it were just another directory. Is there any way to accomplish this fairly painlessly?

  2. #2
    Join Date
    Aug 2006
    Thanked 29 Times in 19 Posts

    Default Re: Read audio CD tracks as files

    You cannot do that. Audio cds do not contain a filesystem, i.e. no pathes of filenames present on such a disk. There are programs, which show the content of an audio cd as if it contains files and folders using virtual filesystem magic. This might even be natively integrated in some operating systems, but generally this is nothing Qt supports.

Similar Threads

  1. Multiple sound files in Phonon Audio
    By brent99 in forum Qt Programming
    Replies: 0
    Last Post: 8th March 2010, 22:26
  2. Reading audio AND video metadata from files (Phonon?)
    By garfunkel in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2010, 08:32
  3. Which dll is needed to play the audio files
    By addu in forum Qt Programming
    Replies: 1
    Last Post: 27th June 2009, 00:20
  4. Replies: 12
    Last Post: 17th June 2009, 06:34
  5. Read files PDF
    By henriquez0 in forum Qt Programming
    Replies: 3
    Last Post: 31st December 2006, 01:20


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.