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
901fff3c
Commit
901fff3c
authored
Nov 30, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Use BOOL type where appropriate.
parent
fd65b0a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
midi.c
dlls/winealsa.drv/midi.c
+7
-7
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+2
-2
No files found.
dlls/winealsa.drv/midi.c
View file @
901fff3c
...
...
@@ -216,11 +216,11 @@ static void MIDI_NotifyClient(UINT wDevID, WORD wMsg,
DriverCallback
(
dwCallBack
,
uFlags
,
hDev
,
wMsg
,
dwInstance
,
dwParam1
,
dwParam2
);
}
static
int
midi_warn
=
1
;
static
BOOL
midi_warn
=
TRUE
;
/**************************************************************************
* midiOpenSeq [internal]
*/
static
int
midiOpenSeq
(
int
create_client
)
static
int
midiOpenSeq
(
BOOL
create_client
)
{
if
(
numOpenMidiSeq
==
0
)
{
if
(
snd_seq_open
(
&
midiSeq
,
"default"
,
SND_SEQ_OPEN_DUPLEX
,
0
)
<
0
)
...
...
@@ -229,7 +229,7 @@ static int midiOpenSeq(int create_client)
{
WARN
(
"Error opening ALSA sequencer.
\n
"
);
}
midi_warn
=
0
;
midi_warn
=
FALSE
;
return
-
1
;
}
...
...
@@ -474,7 +474,7 @@ static DWORD midOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
return
MMSYSERR_INVALFLAG
;
}
if
(
midiOpenSeq
(
1
)
<
0
)
{
if
(
midiOpenSeq
(
TRUE
)
<
0
)
{
return
MMSYSERR_ERROR
;
}
...
...
@@ -732,7 +732,7 @@ static DWORD modOpen(WORD wDevID, LPMIDIOPENDESC lpDesc, DWORD dwFlags)
case
MOD_FMSYNTH
:
case
MOD_MIDIPORT
:
case
MOD_SYNTH
:
if
(
midiOpenSeq
(
1
)
<
0
)
{
if
(
midiOpenSeq
(
TRUE
)
<
0
)
{
return
MMSYSERR_ALLOCATED
;
}
break
;
...
...
@@ -1221,7 +1221,7 @@ static void ALSA_AddMidiPort(snd_seq_client_info_t* cinfo, snd_seq_port_info_t*
*
* Initializes the MIDI devices information variables
*/
static
LONG
ALSA_MidiInit
(
void
)
static
BOOL
ALSA_MidiInit
(
void
)
{
static
BOOL
bInitDone
=
FALSE
;
snd_seq_client_info_t
*
cinfo
;
...
...
@@ -1234,7 +1234,7 @@ static LONG ALSA_MidiInit(void)
bInitDone
=
TRUE
;
/* try to open device */
if
(
midiOpenSeq
(
0
)
==
-
1
)
{
if
(
midiOpenSeq
(
FALSE
)
==
-
1
)
{
return
TRUE
;
}
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
901fff3c
...
...
@@ -770,7 +770,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
int
err
;
snd_pcm_stream_t
stream
;
snd_config_t
*
lconf
;
static
int
handle_underrun
=
1
;
static
BOOL
handle_underrun
=
TRUE
;
char
alsa_name
[
256
];
EDataFlow
dataflow
;
HRESULT
hr
;
...
...
@@ -816,7 +816,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
if
(
err
==
-
EINVAL
){
ERR_
(
winediag
)(
"PulseAudio
\"
%s
\"
%d without handle_underrun. Audio may hang."
" Please upgrade to alsa_plugins >= 1.0.24
\n
"
,
alsa_name
,
err
);
handle_underrun
=
0
;
handle_underrun
=
FALSE
;
}
}
else
err
=
-
EINVAL
;
...
...
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