Commit f6c2f38b authored by sletz's avatar sletz
Browse files

Fix Midi port initialization in JackNetDriver.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3061 0c269be4-1314-0410-8aa9-9f06e86f4224
parent f4065881
......@@ -23,6 +23,10 @@ Michael Voigt
Jackdmp changes log
---------------------------
2008-10-30 Stephane Letz <letz@grame.fr>
* Fix Midi port initialization in JackNetDriver.
2008-10-15 Stephane Letz <letz@grame.fr>
* Fix a crash in JackEngine::Close when backend cannot be loaded.
......
......@@ -132,8 +132,14 @@ namespace Jack
if ( !JackNetSlaveInterface::Init() )
return false;
//set global paramaters
//set global parameters
SetParams();
//allocate midi ports lists
fMidiCapturePortList = new jack_port_id_t [fParams.fSendMidiChannels];
fMidiPlaybackPortList = new jack_port_id_t [fParams.fReturnMidiChannels];
assert ( fMidiCapturePortList );
assert ( fMidiPlaybackPortList );
//register jack ports
if ( AllocPorts() != 0 )
......@@ -191,13 +197,6 @@ namespace Jack
//transport engine parametering
fEngineControl->fTransport.SetNetworkSync ( true );
//allocate midi ports lists
fMidiCapturePortList = new jack_port_id_t [fParams.fSendMidiChannels];
fMidiPlaybackPortList = new jack_port_id_t [fParams.fReturnMidiChannels];
assert ( fMidiCapturePortList );
assert ( fMidiPlaybackPortList );
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment