这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 4bc44eb

Browse files
committed
Add a "software" option to enable requests of software synths.
Fixes #150.
1 parent cbc0fbe commit 4bc44eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,15 @@ <h2 id="MIDIOptions"><a>MIDIOptions</a> dictionary</h2>
238238
<dl class="idl"
239239
title="dictionary MIDIOptions">
240240
<dt>boolean sysex</dt>
241-
242241
<dd>
243242
<p>This member informs the system whether the ability to send and receive system exclusive messages is requested or allowed on a given <a>MIDIAccess</a> object. On the option passed to <code><a>requestMIDIAccess</a></code>, if this member is set to true, but system exclusive support is denied (either by policy or by user action), the access request will fail with a <code>"SecurityError"</code> error. If this support is not requested (and allowed), the system will throw exceptions if the user tries to send system exclusive messages, and will silently mask out any system exclusive messages received on the port.</p>
244243
</dd>
244+
245+
<dt>boolean software</dt>
246+
<dd>
247+
<p>This member informs the system whether the ability to utilize any software synthesizers installed in the host system is requested or allowed on a given <a>MIDIAccess</a> object. On the option passed to <code><a>requestMIDIAccess</a></code>, if this member is set to true, but software synthesizer support is denied (either by policy or by user action), the access request will fail with a <code>"SecurityError"</code> error. If this support is not requested, the system should not include any software synthesizers in the <a>MIDIAccess</a> exposure of available ports.</p>
248+
<p>Note that may result in a two-step request procedure if software synthesizer support is desired but not required - software synthesizers may be disabled when MIDI hardware device access is allowed.
249+
</dd>
245250
</dl>
246251
</section>
247252

0 commit comments

Comments
 (0)