[Bug 3422] New: WAVE_mciOpen fails to open wav file without write
access (from CD)
Wine Bugs
wine-bugs at winehq.org
Thu Sep 29 18:11:09 CDT 2005
http://bugs.winehq.org/show_bug.cgi?id=3422
Summary: WAVE_mciOpen fails to open wav file without write access
(from CD)
Product: Wine
Version: 20050725
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-multimedia
AssignedTo: wine-bugs at winehq.org
ReportedBy: kwl7 at cornell.edu
When running Zapitalism Deluxe, the wav sounds fail to play from the CD. With
WINEDEBUG=warn+all, the relevant messages (repeated for each attempt to play a
file) appear to be:
warn:file:CreateFileW Unable to create file
L"D:\\lavamind\\zap\\sound\\lavamind.wav" (status c00000a2)
warn:file:OpenFile (D:\lavamind\zap\sound\lavamind.wav): return = HFILE_ERROR
error= 19
warn:mciwave:WAVE_mciOpen can't find file=L"D:\\lavamind\\zap\\sound\\lavamind.wav"!
warn:mci:mciGetDriverData Bad uDeviceID
I believe the problem is related to mciOpen attempting to open the file with
write access because of the error 19 (defined in winerror.h as
ERROR_WRITE_PROTECT). To test this, I mounted a tmpfs over the directory
containing the audio files on the CD and copied all audio to that tmpfs and
added write permissions. The files were then correctly played in wine without
the above errors.
This bug may be an error in the Zapitalism Deluxe program (asking for write
permissions when they are not needed), but it appears that (on line 392 of
mciwave.c) WAVE_mciOpen calls mmioOpenW with MMIO_READWRITE in all cases.
Please take that as just a quick suggestion, you are the experts and have a lot
more experience than I. Just trying to be helpful. ;)
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list