Skip to content

CSndSeqInstMidiSampler

CS2 build 25218825 · Steam date 2026-09-09 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 224 bytes (0xe0)Alignment: 8 bytesModule: soundsystemBinary: !GlobalTypes

Metadata: MPropertyFriendlyName Midi Sampler

Relationships

Inherits from: CSndSeqInstBaseSchema

Inheritance tree
Relationship diagram (1 edges)
classDiagram
    CSndSeqInstBaseSchema <|-- CSndSeqInstMidiSampler
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

16 fields, 11 declared here and 5 inherited. Offsets are absolute from the object base on windows-x86_64.

CSndSeqInstBaseSchemaCSndSeqInstMidiSampler

OffsetFieldTypeFromAnnotations
0x8m_nTypeSndSeqInstrumentType_tCSndSeqInstBaseSchema
0xem_bStopCurrentEventsboolCSndSeqInstBaseSchema
0x10m_flBPMfloat32CSndSeqInstBaseSchema
0x14m_flBPMFactorfloat32CSndSeqInstBaseSchema
0x18m_flBPMInvFactorfloat32CSndSeqInstBaseSchema
0x20m_bIsSoundEventbool
0x21m_bStopPreviousbool
0x22m_nMinNoteuint8
0x23m_nMaxNoteuint8
0x24m_flMinVelocityAttenfloat32
0x28m_flMaxVelocityAttenfloat32
0x2cm_flAttackfloat32
0x30m_flReleasefloat32
0x34m_bBeatEnvelopesbool
0xd4m_nNextVoiceSlotuint8
0xd8m_hSoundEventHashuint32
KV3 class defaults
{
	"_class": "CSndSeqInstMidiSampler",
	"m_nType": "eSndSeqInstMidiSampler",
	"m_bStopCurrentEvents": false,
	"m_flBPM": 120.000000,
	"m_flBPMFactor": 2.000000,
	"m_flBPMInvFactor": 0.500000,
	"m_bIsSoundEvent": false,
	"m_bStopPrevious": true,
	"m_nMinNote": 0,
	"m_nMaxNote": 0,
	"m_flMinVelocityAtten": 0.000000,
	"m_flMaxVelocityAtten": 0.000000,
	"m_flAttack": 0.000000,
	"m_flRelease": 0.000000,
	"m_bBeatEnvelopes": true,
	"m_nNextVoiceSlot": 0,
	"m_hSoundEventHash": 0
}