Formatting Fix

This commit is contained in:
gingerBill
2025-05-08 13:23:22 +01:00
parent d7fc3d1770
commit 0ce8373528
7 changed files with 56 additions and 56 deletions
+2
View File
@@ -3,8 +3,10 @@ package all
import wgpu "vendor:wgpu" import wgpu "vendor:wgpu"
import b2 "vendor:box2d" import b2 "vendor:box2d"
import game_input "vendor:windows/GameInput" import game_input "vendor:windows/GameInput"
import XAudio2 "vendor:windows/XAudio2"
_ :: wgpu _ :: wgpu
_ :: b2 _ :: b2
_ :: game_input _ :: game_input
_ :: XAudio2
+3 -3
View File
@@ -100,7 +100,7 @@ CALCULATE_FLAG :: enum u32 {
//--------------<D-A-T-A---T-Y-P-E-S>---------------------------------------// //--------------<D-A-T-A---T-Y-P-E-S>---------------------------------------//
VECTOR :: [3]f32 // float 3D vector VECTOR :: [3]f32 // float 3D vector
// instance handle of precalculated constants // instance handle of precalculated constants
HANDLE :: distinct [HANDLE_BYTESIZE]byte HANDLE :: distinct [HANDLE_BYTESIZE]byte
@@ -123,7 +123,7 @@ DISTANCE_CURVE_POINT :: struct #packed {
// For all points in the distance curve where 1 <= k < PointCount. // For all points in the distance curve where 1 <= k < PointCount.
DISTANCE_CURVE :: struct #packed { DISTANCE_CURVE :: struct #packed {
pPoints: [^]DISTANCE_CURVE_POINT `fmt:"v,PointCount"`, // distance curve point array, must have at least PointCount elements with no duplicates and be sorted in ascending order with respect to Distance pPoints: [^]DISTANCE_CURVE_POINT `fmt:"v,PointCount"`, // distance curve point array, must have at least PointCount elements with no duplicates and be sorted in ascending order with respect to Distance
PointCount: u32, // number of distance curve points, must be >= 2 as all distance curves must have at least two endpoints, defining DSP settings at 0.0f and 1.0f normalized distance PointCount: u32, // number of distance curve points, must be >= 2 as all distance curves must have at least two endpoints, defining DSP settings at 0.0f and 1.0f normalized distance
} }
Default_LinearCurvePoints := [2]DISTANCE_CURVE_POINT{{0.0, 1.0}, {1.0, 0.0}} Default_LinearCurvePoints := [2]DISTANCE_CURVE_POINT{{0.0, 1.0}, {1.0, 0.0}}
Default_LinearCurve := DISTANCE_CURVE{&Default_LinearCurvePoints[0], 2} Default_LinearCurve := DISTANCE_CURVE{&Default_LinearCurvePoints[0], 2}
@@ -189,7 +189,7 @@ EMITTER :: struct #packed {
ChannelCount: u32, // number of sound channels, must be > 0 ChannelCount: u32, // number of sound channels, must be > 0
ChannelRadius: f32, // channel radius, used only with multi-channel emitters for matrix calculations, must be >= 0.0f when used ChannelRadius: f32, // channel radius, used only with multi-channel emitters for matrix calculations, must be >= 0.0f when used
pChannelAzimuths: [^]f32 `fmt:"v,ChannelCount"`, // channel azimuth array, used only with multi-channel emitters for matrix calculations, contains positions of each channel expressed in radians along the channel radius with respect to the front orientation vector in the plane orthogonal to the top orientation vector, or TAU to specify an LFE channel, must have at least ChannelCount elements, all within [0.0f, TAU] when used pChannelAzimuths: [^]f32 `fmt:"v,ChannelCount"`, // channel azimuth array, used only with multi-channel emitters for matrix calculations, contains positions of each channel expressed in radians along the channel radius with respect to the front orientation vector in the plane orthogonal to the top orientation vector, or TAU to specify an LFE channel, must have at least ChannelCount elements, all within [0.0f, TAU] when used
pVolumeCurve: ^DISTANCE_CURVE, // volume level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation pVolumeCurve: ^DISTANCE_CURVE, // volume level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation
pLFECurve: ^DISTANCE_CURVE, // LFE level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation pLFECurve: ^DISTANCE_CURVE, // LFE level distance curve, used only for matrix calculations, NULL specifies a default curve that conforms to the inverse square law, calculated in user-defined world units with distances <= CurveDistanceScaler clamped to no attenuation
pLPFDirectCurve: ^DISTANCE_CURVE, // LPF direct-path coefficient distance curve, used only for LPF direct-path calculations, NULL specifies the default curve: [0.0f,1.0f], [1.0f,0.75f] pLPFDirectCurve: ^DISTANCE_CURVE, // LPF direct-path coefficient distance curve, used only for LPF direct-path calculations, NULL specifies the default curve: [0.0f,1.0f], [1.0f,0.75f]
+1 -1
View File
@@ -110,7 +110,7 @@ FXMASTERINGLIMITER_PARAMETERS :: struct #packed {
Diffusion: f32, // diffusion Diffusion: f32, // diffusion
RoomSize: f32, // room size RoomSize: f32, // room size
} }
// Echo initialization data, used with CreateFX: // Echo initialization data, used with CreateFX:
// Use of this structure is optional, the default MaxDelay is FXECHO_DEFAULT_DELAY. // Use of this structure is optional, the default MaxDelay is FXECHO_DEFAULT_DELAY.
-2
View File
@@ -11,8 +11,6 @@ package windows_xaudio2
import win "core:sys/windows" import win "core:sys/windows"
import "core:math" import "core:math"
foreign import xa2 "system:xaudio2.lib"
HRESULT :: win.HRESULT HRESULT :: win.HRESULT
IUnknown :: win.IUnknown IUnknown :: win.IUnknown
IUnknown_VTable :: win.IUnknown_VTable IUnknown_VTable :: win.IUnknown_VTable
+2 -2
View File
@@ -32,8 +32,8 @@ foreign xa2 {
// The volume meter does not support SetEffectParameters(). // The volume meter does not support SetEffectParameters().
VOLUMEMETER_LEVELS :: struct #packed { VOLUMEMETER_LEVELS :: struct #packed {
pPeakLevels: [^]f32 `fmt:"v,ChannelCount"`, // Peak levels table: receives maximum absolute level for each channel over a processing pass, may be NULL if pRMSLevls != NULL, otherwise must have at least ChannelCount elements. pPeakLevels: [^]f32 `fmt:"v,ChannelCount"`, // Peak levels table: receives maximum absolute level for each channel over a processing pass, may be NULL if pRMSLevls != NULL, otherwise must have at least ChannelCount elements.
pRMSLevels: [^]f32, // Root mean square levels table: receives RMS level for each channel over a processing pass, may be NULL if pPeakLevels != NULL, otherwise must have at least ChannelCount elements. pRMSLevels: [^]f32 `fmt:"v,ChannelCount"`, // Root mean square levels table: receives RMS level for each channel over a processing pass, may be NULL if pPeakLevels != NULL, otherwise must have at least ChannelCount elements.
ChannelCount: u32, // Number of channels being processed by the volume meter APO ChannelCount: u32, // Number of channels being processed by the volume meter APO
} }
/************************************************************************** /**************************************************************************