Skip to content

CVoiceContainerGranulator

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

Kind: classSize: 344 bytes (0x158)Alignment: 8 bytesModule: soundsystem_voicecontainersBinary: !GlobalTypes

Metadata: MPropertyFriendlyName Granulator Container

Relationships

Inherits from: CVoiceContainerAsyncGenerator

Inheritance tree
Relationship diagram (4 edges)
classDiagram
    CVoiceContainerBase <|-- CVoiceContainerGenerator
    CVoiceContainerGenerator <|-- CVoiceContainerAsyncGenerator
    CVoiceContainerAsyncGenerator <|-- CVoiceContainerGranulator
    CVoiceContainerGranulator *-- InfoForResourceTypeCVoiceContainerBase
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

8 fields, 6 declared here and 2 inherited. Offsets are absolute from the object base on windows-x86_64.

CVoiceContainerBaseCVoiceContainerGranulator

OffsetFieldTypeFromAnnotations
0x28m_vSoundCVSoundCVoiceContainerBaseMPropertySuppressField
0x68m_pEnvelopeAnalyzerCVoiceContainerAnalysisBase*CVoiceContainerBaseMPropertySuppressExpr true
0x80m_flGrainLengthfloat32
0x84m_flGrainCrossfadeAmountfloat32
0x88m_flStartJitterfloat32
0x8cm_flPlaybackJitterfloat32
0x90m_bShouldWraparoundbool
0x98m_sourceAudioCStrongHandle< InfoForResourceTypeCVoiceContainerBase >
KV3 class defaults
{
	"_class": "CVoiceContainerGranulator",
	"m_vSound":
	{
		"m_Sentences":
		[
		],
		"m_nRate": 0,
		"m_nFormat": "PCM16",
		"m_nChannels": 0,
		"m_nLoopStart": 0,
		"m_nSampleCount": 0,
		"m_flDuration": 0.000000,
		"m_nStreamingSize": 0,
		"m_nLoopEnd": 0
	},
	"m_pEnvelopeAnalyzer": null,
	"m_flGrainLength": 0.100000,
	"m_flGrainCrossfadeAmount": 0.100000,
	"m_flStartJitter": 0.000000,
	"m_flPlaybackJitter": 0.000000,
	"m_bShouldWraparound": false,
	"m_sourceAudio": ""
}