NScumm.Core.MidiParser.Property C# (CSharp) Method

Property() public method

public Property ( MidiParserProperty prop, int value ) : void
prop MidiParserProperty
value int
return void
        public void Property(MidiParserProperty prop, int value)
        {
            switch (prop)
            {
                case MidiParserProperty.AutoLoop:
                    _autoLoop = (value != 0);
                    break;
                case MidiParserProperty.SmartJump:
                    _smartJump = (value != 0);
                    break;
                case MidiParserProperty.CenterPitchWheelOnUnload:
                    CenterPitchWheelOnUnload = (value != 0);
                    break;
                case MidiParserProperty.SendSustainOffOnNotesOff:
                    SendSustainOffOnNotesOff = (value != 0);
                    break;
            }
        }