Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
02b1ef89
Commit
02b1ef89
authored
Sep 27, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Add support for $MIDIDEV to match $AUDIODEV and $MIXERDEV.
parent
344e8acb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
midi.c
dlls/wineoss.drv/midi.c
+6
-4
No files found.
dlls/wineoss.drv/midi.c
View file @
02b1ef89
...
...
@@ -42,6 +42,7 @@
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -78,8 +79,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(midi);
#ifdef HAVE_OSS_MIDI
#define MIDI_SEQ "/dev/sequencer"
typedef
struct
{
int
state
;
/* -1 disabled, 0 is no recording started, 1 in recording, bit 2 set if in sys exclusive recording */
DWORD
bufsize
;
...
...
@@ -455,13 +454,16 @@ static int midi_warn = 1;
static
int
midiOpenSeq
(
void
)
{
if
(
numOpenMidiSeq
==
0
)
{
midiSeqFD
=
open
(
MIDI_SEQ
,
O_RDWR
,
0
);
const
char
*
device
;
device
=
getenv
(
"MIDIDEV"
);
if
(
!
device
)
device
=
"/dev/sequencer"
;
midiSeqFD
=
open
(
device
,
O_RDWR
,
0
);
if
(
midiSeqFD
==
-
1
)
{
if
(
midi_warn
)
{
WARN
(
"Can't open MIDI device '%s' ! (%s). If your "
"program needs this (probably not): %s
\n
"
,
MIDI_SEQ
,
strerror
(
errno
),
device
,
strerror
(
errno
),
errno
==
ENOENT
?
"create it ! (
\"
man MAKEDEV
\"
?)"
:
errno
==
ENODEV
?
...
...
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