protected void doChannelVolumeSlideEffekt ( ChannelMemory aktMemo ) { int x = aktMemo . channelVolumSlideValue >> 4 ; int y = aktMemo . channelVolumSlideValue & 0xF ; if ( x != 0 ) { if ( x == 0xF && y != 0 ) aktMemo . channelVolume -= y ; else aktMemo . channelVolume += x ; } else if ( y != 0 ) { if ( x != 0 && y == 0xF ) aktMemo . channelVolume += x ; else aktMemo . channelVolume -= y ; } if ( aktMemo . channelVolume > 64 ) aktMemo . channelVolume = 64 ; else if ( aktMemo . channelVolume < 0 ) aktMemo . channelVolume = 0 ; }
Same as the volumeSlide but affects the channel volume