| Index: Source/modules/webmidi/MIDIOutput.h
|
| diff --git a/Source/modules/webmidi/MIDIOutput.h b/Source/modules/webmidi/MIDIOutput.h
|
| index cecb98a724b7c4178bb95d9fe16ac1655c08f2f7..03c3c514fa8c79025927fbc17da0ca68edf44bb9 100644
|
| --- a/Source/modules/webmidi/MIDIOutput.h
|
| +++ b/Source/modules/webmidi/MIDIOutput.h
|
| @@ -40,14 +40,17 @@ class ScriptExecutionContext;
|
|
|
| class MIDIOutput : public MIDIPort {
|
| public:
|
| - static PassRefPtr<MIDIOutput> create(ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version);
|
| + static PassRefPtr<MIDIOutput> create(MIDIAccess*, unsigned portIndex, ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version);
|
| virtual ~MIDIOutput() { }
|
|
|
| void send(Uint8Array*, double timestamp = 0);
|
| void send(Vector<unsigned>, double timestamp = 0);
|
|
|
| private:
|
| - MIDIOutput(ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version);
|
| + MIDIOutput(MIDIAccess*, unsigned portIndex, ScriptExecutionContext*, const String& id, const String& manufacturer, const String& name, const String& version);
|
| +
|
| + RefPtr<MIDIAccess> m_access;
|
| + unsigned m_portIndex;
|
| };
|
|
|
| typedef Vector<RefPtr<MIDIOutput> > MIDIOutputVector;
|
|
|