optical drive

Questions about Wine on Linux
Locked
audioman
Newbie
Newbie
Posts: 2
Joined: Fri May 01, 2020 7:28 am

optical drive

Post by audioman »

I have been looking a lot to find a solution but no luck. I run POP Linux and have Wine installed. Under Wine I installed Foobar2000 but I cannot connect to my optical drive.
Wine version is 5.0.

Did I miss a topic on this site?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: optical drive

Post by jkfloris »

Is the drive visible in winecfgDrives and set to (Show Advanced) Type: CD-ROM?
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: optical drive

Post by spoon0042 »

I have some vague recollection of there being some workaround but I guess that doesn't really help.

I did look through a +relay log and it seems GetDriveTypeW is returning 3 (DRIVE_FIXED) with an audio CD in the drive though which could be a problem.

edit: +volume is probably sufficient, ex.:
with fb2k:
0035:trace:volume:GetDriveTypeW L"\\\\.\\D:\\" -> 3
but with winecfg:
0009:trace:volume:GetVolumeInformationW L"\\??\\D:\\": found audio CD
so????? :)
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: optical drive

Post by spoon0042 »

I hacked it to return 5 and I'm playing a CD right now. I guess that's a bug? :)

e: reported here: https://bugs.winehq.org/show_bug.cgi?id=49075
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: optical drive

Post by jkfloris »

@spoon
Without any hack, foobar2000 does detect the CD just fine:

Code: Select all

0034:trace:volume:GetDriveTypeW L"\\\\.\\C:\\" -> 3
0034:trace:volume:GetDriveTypeW L"\\\\.\\D:\\" -> 5
0034:trace:volume:GetDriveTypeW L"\\\\.\\D:\\" -> 5
0034:trace:volume:GetDriveTypeW L"\\\\.\\Z:\\" -> 3
Debian Sid, Wine 5.7, Foobar2000 standalone install
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: optical drive

Post by spoon0042 »

Weird. No matter what I try it still returns 3 here. And winecfg keeps seeming like it's seeing two drives or something, also with 5.4 there's an "autodetect" button but that's missing with 5.7? (Debian stable here.)
winecfg.png
winecfg.png (3.21 KiB) Viewed 1089 times
audioman
Newbie
Newbie
Posts: 2
Joined: Fri May 01, 2020 7:28 am

Re: optical drive

Post by audioman »

I will try again and let you know if it works. My optical drive just died on me so ordered a new one.
Locked