Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d368aefd
Commit
d368aefd
authored
Mar 31, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Clean up MMDRV_Init.
parent
3a96c85c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
+12
-19
lolvldrv.c
dlls/winmm/lolvldrv.c
+12
-15
winemm.h
dlls/winmm/winemm.h
+0
-4
No files found.
dlls/winmm/lolvldrv.c
View file @
d368aefd
...
...
@@ -36,6 +36,9 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winmm
);
/* Default set of drivers to be loaded */
#define WINE_DEFAULT_WINMM_DRIVER "alsa,oss,coreaudio,esd"
/* each known type of driver has an instance of this structure */
typedef
struct
tagWINE_LLTYPE
{
/* those attributes depend on the specification of the type */
...
...
@@ -535,38 +538,32 @@ static void MMDRV_Init(void)
{
HKEY
hKey
;
char
driver_buffer
[
256
];
char
mapper_buffer
[
256
];
char
midi_buffer
[
256
];
char
*
p
;
DWORD
type
,
size
;
BOOL
ret
=
FALSE
;
char
*
p
,
*
next
;
TRACE
(
"()
\n
"
);
strcpy
(
driver_buffer
,
WINE_DEFAULT_WINMM_DRIVER
);
strcpy
(
mapper_buffer
,
WINE_DEFAULT_WINMM_MAPPER
);
strcpy
(
midi_buffer
,
WINE_DEFAULT_WINMM_MIDI
);
/* @@ Wine registry key: HKCU\Software\Wine\Drivers */
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
Drivers"
,
&
hKey
))
{
size
=
sizeof
(
driver_buffer
);
if
(
RegQueryValueExA
(
hKey
,
"Audio"
,
0
,
&
type
,
(
LPVOID
)
driver_buffer
,
&
size
))
DWORD
size
=
sizeof
(
driver_buffer
);
if
(
RegQueryValueExA
(
hKey
,
"Audio"
,
0
,
NULL
,
(
BYTE
*
)
driver_buffer
,
&
size
))
strcpy
(
driver_buffer
,
WINE_DEFAULT_WINMM_DRIVER
);
}
p
=
driver_buffer
;
while
(
p
)
for
(
p
=
driver_buffer
;
p
;
p
=
next
)
{
char
filename
[
sizeof
(
driver_buffer
)
+
10
];
char
*
next
=
strchr
(
p
,
','
);
next
=
strchr
(
p
,
','
);
if
(
next
)
*
next
++
=
0
;
sprintf
(
filename
,
"wine%s.drv"
,
p
);
if
((
ret
=
MMDRV_Install
(
filename
,
filename
,
FALSE
)))
break
;
if
(
MMDRV_Install
(
filename
,
filename
,
FALSE
))
break
;
p
=
next
;
}
ret
|=
MMDRV_Install
(
"wavemapper"
,
WINE_DEFAULT_WINMM_MAPPER
,
TRUE
);
ret
|=
MMDRV_Install
(
"midimapper"
,
WINE_DEFAULT_WINMM_MIDI
,
TRUE
);
MMDRV_Install
(
"wavemapper"
,
"msacm32.drv"
,
TRUE
);
MMDRV_Install
(
"midimapper"
,
"midimap.dll"
,
TRUE
);
}
/******************************************************************
...
...
dlls/winmm/winemm.h
View file @
d368aefd
...
...
@@ -25,10 +25,6 @@
#include "winbase.h"
#include "mmddk.h"
#define WINE_DEFAULT_WINMM_DRIVER "alsa,oss,coreaudio,esd"
#define WINE_DEFAULT_WINMM_MAPPER "msacm32.drv"
#define WINE_DEFAULT_WINMM_MIDI "midimap.dll"
/* Who said goofy boy ? */
#define WINE_DI_MAGIC 0x900F1B01
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment