hiho,
Am Thu, 18 Sep 2008 11:19:13 +0200
schrieb "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
> after adding this line into instrumenteditor.cpp line 529.
> engine->renameJackPorts();
i move the line into mainform.cpp void
MainForm::action_instruments_addInstrument() line 871.
imo, this is the better way. a new instrument have now new track outs.
> see how the function work.
> ====================8< renameJackPorts() >8==========================
> #ifdef JACK_SUPPORT
> void Hydrogen::renameJackPorts()
> {
> if( Preferences::getInstance()->m_bJackTrackOuts == true ){
> audioEngine_renameJackPorts();
> }
> }
> #endif
> ====================8< audioEngine_renameJackPorts() >8==============
> void audioEngine_renameJackPorts()
> {
> #ifdef JACK_SUPPORT
> // renames jack ports
> if ( m_pSong == NULL ) {
> return;
> }
> if ( m_pAudioDriver->get_class_name() == "JackOutput" ) {
> static_cast< JackOutput*
> >( m_pAudioDriver )->makeTrackOutputs( m_pSong ); }
>
> AudioEngine::get_instance()->get_sampler()->makeTrackOutputQueues();
>
> #endif
> }
> ======================================================================
> https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel