Results 1 to 8 of 8

Thread: How to read a CD

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to read a CD

    Quote Originally Posted by skepticalgeek View Post
    Thanks. I should have included more information about the system and the drive. This is a netbook running Ubuntu Netbook Remix. It has one CD drive, an external dvd-rw from Gear Head. The information provided by the KCompactDisc calls is this:

    Device Name: [DVDRW - Slimtype - DVD A DS8A4S]
    Device Model: DVD A DS8A4S
    Device Vendor: Slimtype
    Device Revision:
    What about the UDI/URI?

    Also, where is the refreshListOfCdromDevices() call located. It doesn't seem to be in KCompactDisc.
    Hmm... I can't find it now. Maybe it was a private function/method...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to read a CD

    Device UDI: /org/freedesktop/Hal/devices/storage_serial_Slimtype_DVD_A_DS8A4S_FFFFFFFE0D912 150372883_0_0
    Device URL: file:///dev/sr0

    Thanks for the feedback. Basically, I want to read the artist information, trqack offsets, and other information I need to get the CD information from freedb. This project is a jukebox program with an integrated CD ripper, or at least it will be once I figure out how to read the CD.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to read a CD

    The data seems fine. Solid seems to be working and returning proper data. If I had to guess, I would say the problem is the data arrives asynchronously and you have to wait for the discInformation() or discChanged() signal. If you get them (you might have to reinsert the disc into the drive) then you know you get proper information and can try to read them.

    You can also try calling metadataLookup() after setting the device. Just bouncing off ideas... I'm running out of them anyway, the class is quite simple, there is hardly anything that could fail here. Could you try preparing a minimal compilable example reproducing the problem? Just please keep it minimal and compilable

    By the way, I found the refreshListOfCdromDevices() function. It's a static function in libkcompactdisc.cpp.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jan 2010
    Posts
    40
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to read a CD

    Solved it. Turns out I trued when I should have falsed. In the line:
    x = Disc->setDevice(Disc->defaultCdromDeviceName(),50,true,Disc->audioSystems().at(0));

    the parameter true should be false. Once I changeThanks for all the help.

Similar Threads

  1. QTreeWidget read only?
    By td in forum Newbie
    Replies: 4
    Last Post: 21st July 2009, 12:28
  2. Read-only QCheckBox
    By alu23 in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2008, 16:25
  3. Best way to read xml
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 17:38
  4. How to read CD with read?
    By vishal.chauhan in forum Qt Programming
    Replies: 6
    Last Post: 29th June 2007, 08:20
  5. How to I get read of the message
    By jcr in forum General Discussion
    Replies: 1
    Last Post: 16th April 2007, 15:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.