| 126 | | |
|---|
| 127 | | /** @private */ |
|---|
| 128 | | override public function set effectSend1(v:Number) : void { |
|---|
| 129 | | super.effectSend1 = v; |
|---|
| 130 | | v = _volumes[1] * 0.0078125; |
|---|
| 131 | | if (_tracks) { |
|---|
| 132 | | var i:int, f:uint, imax:int = _tracks.length; |
|---|
| 133 | | for (i=0, f=_trackOperationMask; i<imax; i++, f>>=1) { |
|---|
| 134 | | if ((f&1)==0) _tracks[i].channel.setStreamSend(1, v); |
|---|
| 135 | | } |
|---|
| 136 | | } |
|---|
| 137 | | } |
|---|
| 138 | | |
|---|
| 139 | | /** @private */ |
|---|
| 140 | | override public function set effectSend2(v:Number) : void { |
|---|
| 141 | | super.effectSend2 = v; |
|---|
| 142 | | v = _volumes[2] * 0.0078125; |
|---|
| 143 | | if (_tracks) { |
|---|
| 144 | | var i:int, f:uint, imax:int = _tracks.length; |
|---|
| 145 | | for (i=0, f=_trackOperationMask; i<imax; i++, f>>=1) { |
|---|
| 146 | | if ((f&1)==0) _tracks[i].channel.setStreamSend(2, v); |
|---|
| 147 | | } |
|---|
| 148 | | } |
|---|
| 149 | | } |
|---|
| 150 | | |
|---|
| 151 | | /** @private */ |
|---|
| 152 | | override public function set effectSend3(v:Number) : void { |
|---|
| 153 | | super.effectSend3 = v; |
|---|
| 154 | | v = _volumes[3] * 0.0078125; |
|---|
| 155 | | if (_tracks) { |
|---|
| 156 | | var i:int, f:uint, imax:int = _tracks.length; |
|---|
| 157 | | for (i=0, f=_trackOperationMask; i<imax; i++, f>>=1) { |
|---|
| 158 | | if ((f&1)==0) _tracks[i].channel.setStreamSend(3, v); |
|---|
| 159 | | } |
|---|
| 160 | | } |
|---|
| 161 | | } |
|---|
| 162 | | |
|---|
| 163 | | /** @private */ |
|---|
| 164 | | override public function set effectSend4(v:Number) : void { |
|---|
| 165 | | super.effectSend4 = v; |
|---|
| 166 | | v = _volumes[4] * 0.0078125; |
|---|
| 167 | | if (_tracks) { |
|---|
| 168 | | var i:int, f:uint, imax:int = _tracks.length; |
|---|
| 169 | | for (i=0, f=_trackOperationMask; i<imax; i++, f>>=1) { |
|---|
| 170 | | if ((f&1)==0) _tracks[i].channel.setStreamSend(4, v); |
|---|
| 171 | | } |
|---|
| 172 | | } |
|---|
| 173 | | } |
|---|
| | 174 | |
|---|
| | 175 | |
|---|
| | 176 | /** @private [protected] update stream send level */ |
|---|
| | 177 | override protected function _updateStreamSend(streamNum:int, level:Number) : void { |
|---|
| | 178 | if (_tracks) { |
|---|
| | 179 | if (_effectChain) _effectChain.setStreamSend(streamNum, level); |
|---|
| | 180 | else { |
|---|
| | 181 | var i:int, f:uint, imax:int = _tracks.length; |
|---|
| | 182 | for (i=0, f=_trackOperationMask; i<imax; i++, f>>=1) { |
|---|
| | 183 | if ((f&1)==0) _tracks[i].channel.setStreamSend(streamNum, level); |
|---|
| | 184 | } |
|---|
| | 185 | } |
|---|
| | 186 | } |
|---|
| | 187 | } |
|---|