Rewrote project in Rust

This commit is contained in:
a2x
2023-09-26 00:46:10 +10:00
parent a8d3318d94
commit 369ebcf238
136 changed files with 47374 additions and 47187 deletions

View File

@@ -3,7 +3,7 @@
pub mod CDSPMixgroupModifier {
pub const m_mixgroup: usize = 0x0;
pub const m_flModifier: usize = 0x8;
pub const m_flModifierMin: usize = 0xc;
pub const m_flModifierMin: usize = 0xC;
pub const m_flSourceModifier: usize = 0x10;
pub const m_flSourceModifierMin: usize = 0x14;
pub const m_flListenerReverbModifierWhenSourceReverbIsActive: usize = 0x18;
@@ -20,7 +20,7 @@ pub mod CDspPresetModifierList {
pub mod CSosGroupActionLimitSchema {
pub const m_nMaxCount: usize = 0x18;
pub const m_nStopType: usize = 0x1c;
pub const m_nStopType: usize = 0x1C;
pub const m_nSortType: usize = 0x20;
}
@@ -32,7 +32,7 @@ pub mod CSosGroupActionSchema {
pub mod CSosGroupActionSetSoundeventParameterSchema {
pub const m_nMaxCount: usize = 0x18;
pub const m_flMinValue: usize = 0x1c;
pub const m_flMinValue: usize = 0x1C;
pub const m_flMaxValue: usize = 0x20;
pub const m_opvarName: usize = 0x28;
pub const m_nSortType: usize = 0x30;
@@ -45,8 +45,8 @@ pub mod CSosGroupActionTimeLimitSchema {
pub mod CSosGroupBranchPattern {
pub const m_bMatchEventName: usize = 0x8;
pub const m_bMatchEventSubString: usize = 0x9;
pub const m_bMatchEntIndex: usize = 0xa;
pub const m_bMatchOpvar: usize = 0xb;
pub const m_bMatchEntIndex: usize = 0xA;
pub const m_bMatchOpvar: usize = 0xB;
}
pub mod CSosGroupMatchPattern {
@@ -63,12 +63,12 @@ pub mod CSosSoundEventGroupListSchema {
pub mod CSosSoundEventGroupSchema {
pub const m_name: usize = 0x0;
pub const m_nType: usize = 0x8;
pub const m_bIsBlocking: usize = 0xc;
pub const m_bIsBlocking: usize = 0xC;
pub const m_nBlockMaxCount: usize = 0x10;
pub const m_bInvertMatch: usize = 0x14;
pub const m_matchPattern: usize = 0x18;
pub const m_branchPattern: usize = 0x40;
pub const m_vActions: usize = 0xb0;
pub const m_vActions: usize = 0xB0;
}
pub mod CSoundEventMetaData {
@@ -91,8 +91,8 @@ pub mod VMixAutoFilterDesc_t {
pub const m_flEnvelopeAmount: usize = 0x0;
pub const m_flAttackTimeMS: usize = 0x4;
pub const m_flReleaseTimeMS: usize = 0x8;
pub const m_filter: usize = 0xc;
pub const m_flLFOAmount: usize = 0x1c;
pub const m_filter: usize = 0xC;
pub const m_flLFOAmount: usize = 0x1C;
pub const m_flLFORate: usize = 0x20;
pub const m_flPhase: usize = 0x24;
pub const m_nLFOShape: usize = 0x28;
@@ -102,31 +102,31 @@ pub mod VMixBoxverbDesc_t {
pub const m_flSizeMax: usize = 0x0;
pub const m_flSizeMin: usize = 0x4;
pub const m_flComplexity: usize = 0x8;
pub const m_flDiffusion: usize = 0xc;
pub const m_flDiffusion: usize = 0xC;
pub const m_flModDepth: usize = 0x10;
pub const m_flModRate: usize = 0x14;
pub const m_bParallel: usize = 0x18;
pub const m_filterType: usize = 0x1c;
pub const m_flWidth: usize = 0x2c;
pub const m_filterType: usize = 0x1C;
pub const m_flWidth: usize = 0x2C;
pub const m_flHeight: usize = 0x30;
pub const m_flDepth: usize = 0x34;
pub const m_flFeedbackScale: usize = 0x38;
pub const m_flFeedbackWidth: usize = 0x3c;
pub const m_flFeedbackWidth: usize = 0x3C;
pub const m_flFeedbackHeight: usize = 0x40;
pub const m_flFeedbackDepth: usize = 0x44;
pub const m_flOutputGain: usize = 0x48;
pub const m_flTaps: usize = 0x4c;
pub const m_flTaps: usize = 0x4C;
}
pub mod VMixConvolutionDesc_t {
pub const m_fldbGain: usize = 0x0;
pub const m_flPreDelayMS: usize = 0x4;
pub const m_flWetMix: usize = 0x8;
pub const m_fldbLow: usize = 0xc;
pub const m_fldbLow: usize = 0xC;
pub const m_fldbMid: usize = 0x10;
pub const m_fldbHigh: usize = 0x14;
pub const m_flLowCutoffFreq: usize = 0x18;
pub const m_flHighCutoffFreq: usize = 0x1c;
pub const m_flHighCutoffFreq: usize = 0x1C;
}
pub mod VMixDelayDesc_t {
@@ -134,7 +134,7 @@ pub mod VMixDelayDesc_t {
pub const m_bEnableFilter: usize = 0x10;
pub const m_flDelay: usize = 0x14;
pub const m_flDirectGain: usize = 0x18;
pub const m_flDelayGain: usize = 0x1c;
pub const m_flDelayGain: usize = 0x1C;
pub const m_flFeedbackGain: usize = 0x20;
pub const m_flWidth: usize = 0x24;
}
@@ -143,18 +143,18 @@ pub mod VMixDiffusorDesc_t {
pub const m_flSize: usize = 0x0;
pub const m_flComplexity: usize = 0x4;
pub const m_flFeedback: usize = 0x8;
pub const m_flOutputGain: usize = 0xc;
pub const m_flOutputGain: usize = 0xC;
}
pub mod VMixDynamics3BandDesc_t {
pub const m_fldbGainOutput: usize = 0x0;
pub const m_flRMSTimeMS: usize = 0x4;
pub const m_fldbKneeWidth: usize = 0x8;
pub const m_flDepth: usize = 0xc;
pub const m_flDepth: usize = 0xC;
pub const m_flWetMix: usize = 0x10;
pub const m_flTimeScale: usize = 0x14;
pub const m_flLowCutoffFreq: usize = 0x18;
pub const m_flHighCutoffFreq: usize = 0x1c;
pub const m_flHighCutoffFreq: usize = 0x1C;
pub const m_bPeakMode: usize = 0x20;
pub const m_bandDesc: usize = 0x24;
}
@@ -163,11 +163,11 @@ pub mod VMixDynamicsBand_t {
pub const m_fldbGainInput: usize = 0x0;
pub const m_fldbGainOutput: usize = 0x4;
pub const m_fldbThresholdBelow: usize = 0x8;
pub const m_fldbThresholdAbove: usize = 0xc;
pub const m_fldbThresholdAbove: usize = 0xC;
pub const m_flRatioBelow: usize = 0x10;
pub const m_flRatioAbove: usize = 0x14;
pub const m_flAttackTimeMS: usize = 0x18;
pub const m_flReleaseTimeMS: usize = 0x1c;
pub const m_flReleaseTimeMS: usize = 0x1C;
pub const m_bEnable: usize = 0x20;
pub const m_bSolo: usize = 0x21;
}
@@ -176,11 +176,11 @@ pub mod VMixDynamicsCompressorDesc_t {
pub const m_fldbOutputGain: usize = 0x0;
pub const m_fldbCompressionThreshold: usize = 0x4;
pub const m_fldbKneeWidth: usize = 0x8;
pub const m_flCompressionRatio: usize = 0xc;
pub const m_flCompressionRatio: usize = 0xC;
pub const m_flAttackTimeMS: usize = 0x10;
pub const m_flReleaseTimeMS: usize = 0x14;
pub const m_flRMSTimeMS: usize = 0x18;
pub const m_flWetMix: usize = 0x1c;
pub const m_flWetMix: usize = 0x1C;
pub const m_bPeakMode: usize = 0x20;
}
@@ -188,15 +188,15 @@ pub mod VMixDynamicsDesc_t {
pub const m_fldbGain: usize = 0x0;
pub const m_fldbNoiseGateThreshold: usize = 0x4;
pub const m_fldbCompressionThreshold: usize = 0x8;
pub const m_fldbLimiterThreshold: usize = 0xc;
pub const m_fldbLimiterThreshold: usize = 0xC;
pub const m_fldbKneeWidth: usize = 0x10;
pub const m_flRatio: usize = 0x14;
pub const m_flLimiterRatio: usize = 0x18;
pub const m_flAttackTimeMS: usize = 0x1c;
pub const m_flAttackTimeMS: usize = 0x1C;
pub const m_flReleaseTimeMS: usize = 0x20;
pub const m_flRMSTimeMS: usize = 0x24;
pub const m_flWetMix: usize = 0x28;
pub const m_bPeakMode: usize = 0x2c;
pub const m_bPeakMode: usize = 0x2C;
}
pub mod VMixEQ8Desc_t {
@@ -219,14 +219,14 @@ pub mod VMixFilterDesc_t {
pub const m_bEnabled: usize = 0x3;
pub const m_fldbGain: usize = 0x4;
pub const m_flCutoffFreq: usize = 0x8;
pub const m_flQ: usize = 0xc;
pub const m_flQ: usize = 0xC;
}
pub mod VMixFreeverbDesc_t {
pub const m_flRoomSize: usize = 0x0;
pub const m_flDamp: usize = 0x4;
pub const m_flWidth: usize = 0x8;
pub const m_flLateReflections: usize = 0xc;
pub const m_flLateReflections: usize = 0xC;
}
pub mod VMixModDelayDesc_t {
@@ -234,11 +234,11 @@ pub mod VMixModDelayDesc_t {
pub const m_bPhaseInvert: usize = 0x10;
pub const m_flGlideTime: usize = 0x14;
pub const m_flDelay: usize = 0x18;
pub const m_flOutputGain: usize = 0x1c;
pub const m_flOutputGain: usize = 0x1C;
pub const m_flFeedbackGain: usize = 0x20;
pub const m_flModRate: usize = 0x24;
pub const m_flModDepth: usize = 0x28;
pub const m_bApplyAntialiasing: usize = 0x2c;
pub const m_bApplyAntialiasing: usize = 0x2C;
}
pub mod VMixOscDesc_t {
@@ -256,14 +256,14 @@ pub mod VMixPitchShiftDesc_t {
pub const m_nGrainSampleCount: usize = 0x0;
pub const m_flPitchShift: usize = 0x4;
pub const m_nQuality: usize = 0x8;
pub const m_nProcType: usize = 0xc;
pub const m_nProcType: usize = 0xC;
}
pub mod VMixPlateverbDesc_t {
pub const m_flPrefilter: usize = 0x0;
pub const m_flInputDiffusion1: usize = 0x4;
pub const m_flInputDiffusion2: usize = 0x8;
pub const m_flDecay: usize = 0xc;
pub const m_flDecay: usize = 0xC;
pub const m_flDamp: usize = 0x10;
pub const m_flFeedbackDiffusion1: usize = 0x14;
pub const m_flFeedbackDiffusion2: usize = 0x18;
@@ -273,7 +273,7 @@ pub mod VMixShaperDesc_t {
pub const m_nShape: usize = 0x0;
pub const m_fldbDrive: usize = 0x4;
pub const m_fldbOutputGain: usize = 0x8;
pub const m_flWetMix: usize = 0xc;
pub const m_flWetMix: usize = 0xC;
pub const m_nOversampleFactor: usize = 0x10;
}
@@ -287,7 +287,7 @@ pub mod VMixUtilityDesc_t {
pub const m_nOp: usize = 0x0;
pub const m_flInputPan: usize = 0x4;
pub const m_flOutputBalance: usize = 0x8;
pub const m_fldbOutputGain: usize = 0xc;
pub const m_fldbOutputGain: usize = 0xC;
pub const m_bBassMono: usize = 0x10;
pub const m_flBassFreq: usize = 0x14;
}
@@ -296,11 +296,11 @@ pub mod VMixVocoderDesc_t {
pub const m_nBandCount: usize = 0x0;
pub const m_flBandwidth: usize = 0x4;
pub const m_fldBModGain: usize = 0x8;
pub const m_flFreqRangeStart: usize = 0xc;
pub const m_flFreqRangeStart: usize = 0xC;
pub const m_flFreqRangeEnd: usize = 0x10;
pub const m_fldBUnvoicedGain: usize = 0x14;
pub const m_flAttackTimeMS: usize = 0x18;
pub const m_flReleaseTimeMS: usize = 0x1c;
pub const m_flReleaseTimeMS: usize = 0x1C;
pub const m_nDebugBand: usize = 0x20;
pub const m_bPeakMode: usize = 0x24;
}