how much does fromChannel send its output to the input of toChannel?
| 520 | |
| 521 | // how much does fromChannel send its output to the input of toChannel? |
| 522 | FloatModel * 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 |
no test coverage detected