You are here

Add new comment

It was a bit annoying to lose the AuxSend configuration when moving or copying it. Especially when moving it within the bus itself.

It also creates a lack of coherence, because it is not applied to the tracks (and I think that applying it to the tracks where it is not necessary would be a step backwards).

I have tried a solution. Assign, reset and assign again.
I know it is a bit of a hacky approach, but it seems to work.
Tested with this test file and the gif routine:
https://www.rncbc.org/drupal/comment/10888#comment-10888

qtractorPlugin.cpp | line 2180
		// Special case for audio Aux-sends copied into output buses...
		if ((flags() & qtractorPluginList::AudioOutBus) &&
			(pType->typeHint() == qtractorPluginType::AuxSend) &&
			(pType->index() > 0)) { // index == channels > 0 => Audio aux-send.
			qtractorAudioAuxSendPlugin *pAudioAuxSendPlugin
				= static_cast (pNewPlugin);
			if (pAudioAuxSendPlugin) {
			//g Reset
				pAudioAuxSendPlugin->setAudioBusName(QString());
				pAudioAuxSendPlugin->freezeConfigs();
			//g Restaura
				pNewPlugin->setConfigs(pPlugin->configs());
				pNewPlugin->setConfigTypes(pPlugin->configTypes());
			}

qtractorPluginCommand.cpp | line 353
	// Special case for aux-sends moved into output buses...
	//gDEL m_pAuxSendPlugin = nullptr;

	qtractorPluginType *pType = pPlugin->type();
	if (pType && (pType->typeHint() == qtractorPluginType::AuxSend)) {
		if ((pPluginList->flags() & qtractorPluginList::AudioOutBus) && (pType->index() > 0)) { // index == channels > 0 => Audio aux-send.
			qtractorAudioAuxSendPlugin *pAudioAuxSendPlugin
				= static_cast (pPlugin);
			//gDEL if (pAudioAuxSendPlugin) {
			//g Asing
				m_pAuxSendPlugin  = pAudioAuxSendPlugin;
			//g Reset	
			m_pAuxSendPlugin = nullptr;
			//g Asing
				m_pAuxSendPlugin  = pAudioAuxSendPlugin;
				m_sAuxSendBusName = pAudioAuxSendPlugin->audioBusName();
			//gDEL }
		}

I attach the code. I will test it in the next few days and I will tell you if it really works or if it was a mirage.

PS:
Sorry, "Move" doesn't work, I didn't understand the reset correctly.
I'm still trying and I'll let you know.

File attachments: