Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
da879b45
Commit
da879b45
authored
May 01, 2016
by
Jonathan Wilkes
Browse files
report ALSA port connections in the dialog
parent
37d266bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/dialog_prefs.html
View file @
da879b45
...
...
@@ -642,6 +642,14 @@ function midi_prefs_callback(attrs) {
.
style
.
setProperty
(
"
display
"
,
"
none
"
);
document
.
getElementsByClassName
(
"
alsa_midi
"
)[
0
]
.
style
.
setProperty
(
"
display
"
,
"
inherit
"
);
// For ALSA, we just set the number of ports we want
// for input and output. The tcl/tk interface just reused
// the first of the "indevs" for this value, so (for now)
// we repeat that mistake here...
document
.
getElementById
(
"
alsa_in_ports
"
).
value
=
+
get_attr
(
"
pd-indevs
"
,
attrs
)[
0
];
document
.
getElementById
(
"
alsa_out_ports
"
).
value
=
+
get_attr
(
"
pd-outdevs
"
,
attrs
)[
0
];
}
else
{
document
.
getElementsByClassName
(
"
midi_devices
"
)[
0
]
.
style
.
setProperty
(
"
display
"
,
"
inherit
"
);
...
...
Write
Preview
Supports
Markdown
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