Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
8f15b34b
Commit
8f15b34b
authored
May 01, 2016
by
Jonathan Wilkes
Browse files
show both ALSA and OSS midi apis if available
parent
e61542d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_midi.c
View file @
8f15b34b
...
...
@@ -525,13 +525,13 @@ void sys_get_midi_apis(char *buf)
void
sys_get_midi_apis2
(
t_binbuf
*
buf
)
{
int
n
=
0
;
#ifndef USEAPI_ALSA
binbuf_addv
(
buf
,
"si"
,
gensym
(
"OSS"
),
API_DEFAULT
);
n
++
;
#else
#ifdef USEAPI_OSS
binbuf_addv
(
buf
,
"si"
,
gensym
(
"OSS"
),
API_DEFAULT
);
n
++
;
#endif
#ifdef USEAPI_ALSA
binbuf_addv
(
buf
,
"si"
,
gensym
(
"ALSA"
),
API_ALSA
);
n
++
;
binbuf_addv
(
buf
,
"si"
,
gensym
(
"ALSA"
),
API_ALSA
);
n
++
;
#endif
/* then again, if only one API (or none) we don't offer any choice. */
// if (n < 2)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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