Patch from Pete Goodeve: add MidiPortGlue to have old midikit endpoints registered in new midikit (#5625).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a4f52ae465
commit
beb0419df1
@ -29,6 +29,8 @@ BMidiPort::BMidiPort(const char* name)
|
||||
|
||||
fLocalSource = new BMidiLocalProducer("MidiPortGlue(out)");
|
||||
fLocalSink = new BMidiPortGlue(this, "MidiPortGlue(in)");
|
||||
fLocalSource->Register();
|
||||
fLocalSink->Register();
|
||||
|
||||
fRemoteSource = NULL;
|
||||
fRemoteSink = NULL;
|
||||
@ -47,6 +49,8 @@ BMidiPort::~BMidiPort()
|
||||
EmptyDeviceList();
|
||||
delete fDevices;
|
||||
|
||||
fLocalSource->Unregister();
|
||||
fLocalSink->Unregister();
|
||||
fLocalSource->Release();
|
||||
fLocalSink->Release();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user