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
5ef8b175
Commit
5ef8b175
authored
Feb 14, 1999
by
Brian Joseph Czapiga
Committed by
Alexandre Julliard
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few #ifdefs.
parent
1da6dbab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
38 deletions
+43
-38
memory.c
debugger/memory.c
+1
-1
init.c
multimedia/init.c
+2
-2
midi.c
multimedia/midi.c
+40
-35
No files found.
debugger/memory.c
View file @
5ef8b175
...
...
@@ -19,7 +19,7 @@
* write (rwflag == 0)
************************************************************/
#if defined(linux) || defined(__FreeBSD__)
#if defined(linux) || defined(__FreeBSD__)
|| defined(__OpenBSD__)
BOOL32
DEBUG_checkmap_bad
(
const
char
*
addr
,
size_t
size
,
int
rwflag
)
{
FILE
*
fp
;
...
...
multimedia/init.c
View file @
5ef8b175
...
...
@@ -36,7 +36,7 @@ extern LPMIDIINCAPS16 midiInDevices [MAX_MIDIINDRV];
#ifdef HAVE_OSS
int
unixToWindowsDeviceType
(
int
type
)
{
#if
ndef __NetBSD__
#if
!defined(__NetBSD__) && !defined(__OpenBSD__)
/* MOD_MIDIPORT output port
* MOD_SYNTH generic internal synth
* MOD_SQSYNTH square wave internal synth
...
...
@@ -70,7 +70,7 @@ int unixToWindowsDeviceType(int type)
*/
BOOL32
MULTIMEDIA_MidiInit
(
void
)
{
#if defined(HAVE_OSS) && !defined(__NetBSD__)
#if defined(HAVE_OSS) && !defined(__NetBSD__)
&& !defined(__OpenBSD__)
int
i
,
status
,
numsynthdevs
=
255
,
nummididevs
=
255
;
struct
synth_info
sinfo
;
struct
midi_info
minfo
;
...
...
multimedia/midi.c
View file @
5ef8b175
...
...
@@ -20,6 +20,9 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/errno.h>
#endif
#include <sys/ioctl.h>
#include "wine/winuser16.h"
#include "ldt.h"
...
...
@@ -657,41 +660,6 @@ static DWORD midStop(WORD wDevID)
#endif
/* HAVE_OSS */
}
/**************************************************************************
* midMessage [sample driver]
*/
DWORD
WINAPI
midMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
TRACE
(
midi
,
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
case
MIDM_OPEN
:
return
midOpen
(
wDevID
,(
LPMIDIOPENDESC
)
dwParam1
,
dwParam2
);
case
MIDM_CLOSE
:
return
midClose
(
wDevID
);
case
MIDM_ADDBUFFER
:
return
midAddBuffer
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_PREPARE
:
return
midPrepare
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_UNPREPARE
:
return
midUnprepare
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_GETDEVCAPS
:
return
midGetDevCaps
(
wDevID
,(
LPMIDIINCAPS16
)
dwParam1
,
dwParam2
);
case
MIDM_GETNUMDEVS
:
return
MIDM_NUMDEVS
;
case
MIDM_RESET
:
return
midReset
(
wDevID
);
case
MIDM_START
:
return
midStart
(
wDevID
);
case
MIDM_STOP
:
return
midStop
(
wDevID
);
default:
TRACE
(
midi
,
"Unsupported message
\n
"
);
}
return
MMSYSERR_NOTSUPPORTED
;
}
/*-----------------------------------------------------------------------*/
#ifdef HAVE_OSS
...
...
@@ -1488,6 +1456,43 @@ static DWORD modReset(WORD wDevID)
*======================================================================*/
/**************************************************************************
* midMessage [sample driver]
*/
DWORD
WINAPI
midMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
TRACE
(
midi
,
"(%04X, %04X, %08lX, %08lX, %08lX);
\n
"
,
wDevID
,
wMsg
,
dwUser
,
dwParam1
,
dwParam2
);
switch
(
wMsg
)
{
#ifdef SNDCTL_MIDI_INFO
case
MIDM_OPEN
:
return
midOpen
(
wDevID
,(
LPMIDIOPENDESC
)
dwParam1
,
dwParam2
);
case
MIDM_CLOSE
:
return
midClose
(
wDevID
);
case
MIDM_ADDBUFFER
:
return
midAddBuffer
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_PREPARE
:
return
midPrepare
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_UNPREPARE
:
return
midUnprepare
(
wDevID
,(
LPMIDIHDR
)
dwParam1
,
dwParam2
);
case
MIDM_GETDEVCAPS
:
return
midGetDevCaps
(
wDevID
,(
LPMIDIINCAPS16
)
dwParam1
,
dwParam2
);
case
MIDM_GETNUMDEVS
:
return
MIDM_NUMDEVS
;
case
MIDM_RESET
:
return
midReset
(
wDevID
);
case
MIDM_START
:
return
midStart
(
wDevID
);
case
MIDM_STOP
:
return
midStop
(
wDevID
);
#endif
default:
TRACE
(
midi
,
"Unsupported message
\n
"
);
}
return
MMSYSERR_NOTSUPPORTED
;
}
/**************************************************************************
* modMessage [sample driver]
*/
DWORD
WINAPI
modMessage
(
WORD
wDevID
,
WORD
wMsg
,
DWORD
dwUser
,
...
...
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