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
90b71b51
Commit
90b71b51
authored
Apr 22, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed multi-thread access to local variables (mainly fd for
/dev/dsp). God rid of obsolete macro. Fixed some slight init issues.
parent
ef1f0156
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
audio.c
dlls/winmm/wineoss/audio.c
+0
-0
midi.c
dlls/winmm/wineoss/midi.c
+16
-10
oss.h
dlls/winmm/wineoss/oss.h
+0
-6
No files found.
dlls/winmm/wineoss/audio.c
View file @
90b71b51
This diff is collapsed.
Click to expand it.
dlls/winmm/wineoss/midi.c
View file @
90b71b51
...
...
@@ -217,7 +217,8 @@ BOOL OSS_MidiInit(void)
* it's probably equal or more than wVoices
*/
tmplpCaps
->
wNotes
=
sinfo
.
nr_voices
;
tmplpCaps
->
wChannelMask
=
0xFFFF
;
/* FIXME Do we have this information?
* Assuming the soundcards can handle
* MIDICAPS_VOLUME and MIDICAPS_LRVOLUME but
...
...
@@ -231,10 +232,10 @@ BOOL OSS_MidiInit(void)
FIXME
(
"Synthesizer support MIDI in. Not supported yet (please report)
\n
"
);
}
TRACE
(
"
name='%s', techn=%d voices=%d notes=%d support=%ld
\n
"
,
tmplpCaps
->
szPname
,
tmplpCaps
->
wTechnology
,
tmplpCaps
->
wVoices
,
tmplpCaps
->
wNotes
,
tmplpCaps
->
dwSupport
);
TRACE
(
"OSS info: synth subtype=%d capa=%lx
\n
"
,
TRACE
(
"
SynthOut[%d]
\t
name='%s' techn=%d voices=%d notes=%d chnMsk=%04x support=%ld
\n
"
"
\t
OSS info: synth subtype=%d capa=%lx
\n
"
,
i
,
tmplpCaps
->
szPname
,
tmplpCaps
->
wTechnology
,
tmplpCaps
->
wVoices
,
tmplpCaps
->
wNotes
,
tmplpCaps
->
wChannelMask
,
tmplpCaps
->
dwSupport
,
sinfo
.
synth_subtype
,
(
long
)
sinfo
.
capabilities
);
}
...
...
@@ -292,12 +293,14 @@ BOOL OSS_MidiInit(void)
tmplpOutCaps
->
wVoices
=
16
;
/* Does it make any difference? */
tmplpOutCaps
->
wNotes
=
16
;
tmplpOutCaps
->
wChannelMask
=
0xFFFF
;
/* FIXME Does it make any difference? */
tmplpOutCaps
->
dwSupport
=
MIDICAPS_VOLUME
|
MIDICAPS_LRVOLUME
;
midiOutDevices
[
numsynthdevs
+
i
]
=
tmplpOutCaps
;
tmplpInCaps
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
MIDI
OUT
CAPSA
));
tmplpInCaps
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
MIDI
IN
CAPSA
));
if
(
!
tmplpInCaps
)
break
;
/* This whole part is somewhat obscure to me. I'll keep trying to dig
...
...
@@ -318,10 +321,13 @@ BOOL OSS_MidiInit(void)
midiInDevices
[
i
]
=
tmplpInCaps
;
TRACE
(
"name='%s' techn=%d voices=%d notes=%d support=%ld
\n
"
,
tmplpOutCaps
->
szPname
,
tmplpOutCaps
->
wTechnology
,
tmplpOutCaps
->
wVoices
,
tmplpOutCaps
->
wNotes
,
tmplpOutCaps
->
dwSupport
);
TRACE
(
"OSS info: midi dev-type=%d, capa=%lx
\n
"
,
TRACE
(
"MidiOut[%d]
\t
name='%s' techn=%d voices=%d notes=%d chnMsk=%04x support=%ld
\n
"
"MidiIn [%d]
\t
name='%s' support=%ld
\n
"
"
\t
OSS info: midi dev-type=%d, capa=%lx
\n
"
,
i
,
tmplpOutCaps
->
szPname
,
tmplpOutCaps
->
wTechnology
,
tmplpOutCaps
->
wVoices
,
tmplpOutCaps
->
wNotes
,
tmplpOutCaps
->
wChannelMask
,
tmplpOutCaps
->
dwSupport
,
i
,
tmplpInCaps
->
szPname
,
tmplpInCaps
->
dwSupport
,
minfo
.
dev_type
,
(
long
)
minfo
.
capabilities
);
}
...
...
dlls/winmm/wineoss/oss.h
View file @
90b71b51
...
...
@@ -33,12 +33,6 @@
#include <sys/errno.h>
#endif
#ifdef SOUND_VERSION
#define IOCTL(a,b,c) ioctl(a,b,&c)
#else
#define IOCTL(a,b,c) (c = ioctl(a,b,c))
#endif
extern
LONG
OSS_WaveInit
(
void
);
extern
BOOL
OSS_MidiInit
(
void
);
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