mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
MidiDevices: Reinstate unique idenfiers for virtual bytestream ports
This commit is contained in:
parent
f4ba4c1ad9
commit
457cf9ecef
1 changed files with 4 additions and 2 deletions
|
|
@ -282,7 +282,8 @@ std::unique_ptr<MidiInput> MidiInput::createNewDevice (const String& name, MidiI
|
|||
if (! connection)
|
||||
return {};
|
||||
|
||||
return Impl::make (session, std::move (connection), 0, { name, {} }, callback, std::move (port));
|
||||
const auto portId = port.getId().dst;
|
||||
return Impl::make (session, std::move (connection), 0, { name, portId }, callback, std::move (port));
|
||||
}
|
||||
|
||||
void MidiInput::start()
|
||||
|
|
@ -391,7 +392,8 @@ std::unique_ptr<MidiOutput> MidiOutput::createNewDevice (const String& name)
|
|||
if (! connection)
|
||||
return {};
|
||||
|
||||
return rawToUniquePtr (new MidiOutput (session, std::move (connection), 0, { name, {} }, std::move (port)));
|
||||
const auto portId = port.getId().src;
|
||||
return rawToUniquePtr (new MidiOutput (session, std::move (connection), 0, { name, portId }, std::move (port)));
|
||||
}
|
||||
|
||||
MidiDeviceInfo MidiOutput::getDeviceInfo() const noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue