CSPspEmu.Core.Audio.StereoShortSoundSample.ApplyVolumes C# (CSharp) Method

ApplyVolumes() private method

private ApplyVolumes ( int LeftVolume, int RightVolume ) : StereoShortSoundSample
LeftVolume int
RightVolume int
return StereoShortSoundSample
        public StereoShortSoundSample ApplyVolumes(int LeftVolume, int RightVolume)
        {
            return new StereoShortSoundSample(
                Clamp(this.Left * LeftVolume / 0x1000),
                Clamp(this.Right * RightVolume / 0x1000)
            );
        }