NScumm.Core.Audio.PCSpeaker.GenerateSaw C# (CSharp) Method

GenerateSaw() static private method

static private GenerateSaw ( int x, int oscLength ) : int
x int
oscLength int
return int
        static int GenerateSaw(int x, int oscLength)
        {
            if (oscLength == 0)
                return 0;

            return ((x * (65536 / oscLength)) >> 8) - 128;
        }