MCPcopy Create free account
hub / github.com/LMMS/lmms / channelSendModel

Method channelSendModel

src/core/FxMixer.cpp:522–540  ·  view source on GitHub ↗

how much does fromChannel send its output to the input of toChannel?

Source from the content-addressed store, hash-verified

520
521// how much does fromChannel send its output to the input of toChannel?
522FloatModel * FxMixer::channelSendModel( fx_ch_t fromChannel, fx_ch_t toChannel )
523{
524 if( fromChannel == toChannel )
525 {
526 return NULL;
527 }
528 const FxChannel * from = m_fxChannels[fromChannel];
529 const FxChannel * to = m_fxChannels[toChannel];
530
531 for( FxRoute * route : from->m_sends )
532 {
533 if( route->receiver() == to )
534 {
535 return route->amount();
536 }
537 }
538
539 return NULL;
540}
541
542
543

Callers 4

updateFxLineMethod · 0.80
mousePressEventMethod · 0.80
getSendModelMethod · 0.80
paintEventMethod · 0.80

Calls 2

receiverMethod · 0.80
amountMethod · 0.80

Tested by

no test coverage detected