| Index: Source/modules/webmidi/MIDIAccess.cpp
|
| diff --git a/Source/modules/webmidi/MIDIAccess.cpp b/Source/modules/webmidi/MIDIAccess.cpp
|
| index 1e1b01e7c3f2577462abf18472d90337ebd7f2e8..31c20bcef9dfbf38390664b258620434c131efcc 100644
|
| --- a/Source/modules/webmidi/MIDIAccess.cpp
|
| +++ b/Source/modules/webmidi/MIDIAccess.cpp
|
| @@ -54,6 +54,18 @@ MIDIAccess::~MIDIAccess()
|
| MIDIAccess::MIDIAccess(ScriptExecutionContext* context)
|
| : ActiveDOMObject(context)
|
| {
|
| + // !!!!!!! Just for testing
|
| + RefPtr<MIDIInput> input = MIDIInput::create(context, "id", "manufacturer", "name", "version");
|
| + m_inputs.append(input);
|
| +
|
| + m_midiAccessor = MIDIAccessor::create(this);
|
| +}
|
| +
|
| +void MIDIAccess::receiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp)
|
| +{
|
| + // printf("MIDIAccess::receiveMIDIData() : isMainThread() = %d\n", (int)isMainThread() );
|
| + if (portIndex < m_inputs.size())
|
| + m_inputs[portIndex]->receiveMIDIData(portIndex, data, length, timeStamp);
|
| }
|
|
|
| } // namespace WebCore
|
|
|