fix the ability to select a specific technology (for debugging) by setting the hash tag: #webmidi, #webaudio, #audiotag, or #flash
This commit is contained in:
parent
ffdb8fc93a
commit
0cd6f41258
1 changed files with 3 additions and 6 deletions
|
@ -34,13 +34,10 @@ MIDI.loadPlugin = function(conf) {
|
||||||
MIDI.audioDetect(function(types) {
|
MIDI.audioDetect(function(types) {
|
||||||
var type = "";
|
var type = "";
|
||||||
// use the most appropriate plugin if not specified
|
// use the most appropriate plugin if not specified
|
||||||
if (typeof(type) === 'undefined') {
|
if (plugins[window.location.hash]) {
|
||||||
if (plugins[window.location.hash]) {
|
type = window.location.hash.substr(1);
|
||||||
type = window.location.hash.substr(1);
|
|
||||||
} else { //
|
|
||||||
type = "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
///
|
||||||
if (type === "") {
|
if (type === "") {
|
||||||
if (navigator.requestMIDIAccess) {
|
if (navigator.requestMIDIAccess) {
|
||||||
type = "webmidi";
|
type = "webmidi";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue