Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4312  / 2 Years ago, fri, october 14, 2022, 9:07:10

I have installed Foobar2000 in Wine and it has no access to the CD.



enter image description here



enter image description here



In Wine configuration I added the cd drive.



enter image description here



enter image description here



But it doesn't work.






Excepting in one situation: if inserting a dvd and then replacing the dvd with the audio cd without unmounting first, the audio cd will be then seen foobar2000, while in Thunar file manager and on the desktop the audio is displayed twice.



enter image description here



enter image description here



enter image description here



This stands as a workaround for now.






I am curious:




  • why cdda://sr0/ is not a good mounting point to be set in Wine configs?


  • while media/cdrom can be set and works for dvds - why doesn't it work for audio cds?




But to those I have an answer here:



Audio CDs are a bit different - there's no actual filesystem there and as such they can't be mounted.






I remember I already did this in the past trying to confirm that Foobar2000 works in Wine: I was able to rip cds then! without the dvd mounting trick.






An answer below says that the workaround (described above and also posted by me as an answer) is a Thunar bug that makes the cd accessible by (giving the impression of) mounting it first.



But if a bug can do it, there should be a 'proper' way to do it. (Not trying to mount the cd if that is impossible, but making it accessible otherwise.)






Even if audio cds cannot be mounted, they are still accessible in Ubuntu players without being mounted: how to achive this in Foobar2000?






EDIT: Considering the bug that made me happy, it has nothing to do with Thunar: it was already posted on launchpad: Disks are not unmounted when physical eject button is used. Also, related here. Found about it in this discussion here.


More From » 14.04

 Answers
3

Why is cdda://sr0/ not a good mounting point to be set in Wine configs?




CDDA is not a filesystem. It's a specific protocol for reading and writing data to/from CD drives. Think of CDDA like an http:// for CD drives. You can't use HTTP for Wine because it's not a local part of a file system. CDDA, likewise, isn't part of your local filesystem. Both are protocols for getting data from remote sources.


WINE is a compatibility layer. It can not and will not be able to directly interface with everything that Linux offers. It can interface with some things, but drives are problematic. You need to add the drive to the Wine config so it knows where to look. This is why Wine can't see /dev/sdc unless you tell it to. And, you cannot mount CD drives, so.... You might be able to request Wine's developers to add Audio CD support. Maybe you'll get it. That will make everyone happy.


See below for more information about this.





while media/cdrom can be set and works for dvds - why doesn't it work for audio cds?




Audio CDs do not have a real filesystem. Audio CDs are only storage containers for WAV-type media files and metadata files. The CD reader can read the audio from the CD and then expose it to the computer in CDDA format.


DVDs, on the other hand, do contain a filesystem called UDF. This requires that they be mounted in something like /media/cdrom.


When you do the CD/DVD swap trick, you force Linux to see it as a data disc containing CDDA files. In reality, these CDDA files are not really files. They are instead tracks containing raw music. The system "contains" them in CDDA files so it can use them for programs like Rhythmbox, VLC, and any other media player / CD ripper. You usually do not see this because there is no reason for you to do so. You cannot rename the files to WAV format and have them play.


The links you gave in your answer explain most of the above. GVFS does all the ugly "filesystem" work. This answer explains everything I didn't here.



GVFS doesn't mount the CD. It only reads the CD. Nobody and nothing can mount CDs. Not even Jon Skeet can mount CDs. Give up and go home. If you successfully mount a CD drive, you will undermine the fabric of space-time and cause T̞̱͙̣͔̥̘o̝̞̣n̷̲͔̖̠̤ỵ͚̺͔̟͖ ̠͎̘̲̩͎ͅt͝h̡̯͙̺̣̣̝e ͞P҉̼̳̥̬o̪̣ṇ͈̯̣̫͎ͅy to eat StackExchange and destroy the knowledge of the world that man has. NEVeR Even T`ry!



Read above paragraph as a large no.





Updated Answer:




If you were able to see it in the past without having to do "DVD tricks", I would recommend reporting a bug against Wine and possibly GVFS.


In answer to your comments:



  1. Read first section: Wine is a compatibility layer. It cannot interface with everything the system has.

  2. If it did it in the past, chances are that support was (accidentally) removed in Wine or GVFS. Report a bug for this.

  3. There is no proper workaround because Wine does not interface with CDDA directly. When GVFS exposes the CDDA protocol to the system, it's up to Wine to decide how to expose it to the the windows programs. It seems as though Wine cannot expose it properly. Report a bug to Wine. You might (no guarantee) be able to mount it directly by using this: mount /dev/sr0 /mnt. Then, point /mnt to Wine. It's doubtful that it will work, but it might.


You cannot directly have Foobar2000 integrate with your CD directly, at least not now.


Also, you should read this and this. They say that the below is a possible workaround:


Basically, create a folder in / called cdrom. Assign permissions:


chmod go+rx /cdrom
chown root:cdrom /cdrom

Add yourself to the group cdrom:


usermod -a -G cdrom cip

Add to /etc/fstab:


/dev/sr0 /cdrom

You may or may not need to add this as a CD mountpoint in WINE. Try both ways.





My less than answer opinion




Do not take this as part of the answer. This is just a long comment that is better placed in my answer.



  • It's not a workaround for a bug in Thunar. It is a bug in Thunar GVFS. See Sergey's answer for why this is. It's caused by Thunar not knowing the difference between the two GVFS drives.



  • Why do you even need Foobar2000? IIUC, it's just a media player. What's wrong with Banshee, Rhythmbox, or VLC?



  • You should read stuff on GVFS and CDDA. It'll help you in truly mastering this topic. This answer is pretty basic.




Formatting inspired by this


[#22651] Sunday, October 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mocipe

Total Points: 161
Total Questions: 106
Total Answers: 118

Location: Cambodia
Member since Thu, Oct 7, 2021
3 Years ago
;