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
The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.
CAPTCHA
Enter the characters shown in the image.