diff --git a/demo/.gitignore b/demo/.gitignore new file mode 100644 index 0000000..eedd5db --- /dev/null +++ b/demo/.gitignore @@ -0,0 +1,37 @@ +# Compiled Object files +*.o +*.obj + +# Compiled Static libraries +*.a +*.lib + +# Executables +*.exe + +# Dub files +.dub +dub.selections.json + +# Dub test files +__test__library__ +tests/ + +# Documentation +docs/ +docs.json +__dummy.html + +# Coverage files +*.lst + +# Debug info +*.pdb + +# Backup files +*~ + +# Shared libraries +*.dll +*.so +*.dylib diff --git a/data/LICENSE.md b/demo/data/LICENSE.md similarity index 100% rename from data/LICENSE.md rename to demo/data/LICENSE.md diff --git a/data/music.flac b/demo/data/music.flac similarity index 100% rename from data/music.flac rename to demo/data/music.flac diff --git a/demo/dub.json b/demo/dub.json new file mode 100644 index 0000000..b0f0c0b --- /dev/null +++ b/demo/dub.json @@ -0,0 +1,17 @@ +{ + "name": "demo", + "description": "SoLoud demo", + "homepage": "https://github.com/gecko0307/bindbc-soloud", + "license": "BSL-1.0", + "authors": [ + "Timur Gafarov" + ], + "dependencies": { + "bindbc-soloud": { "path": ".." } + }, + "buildRequirements": [ + "allowWarnings" + ], + "mainSourceFile": "src/main.d", + "targetType": "executable" +} diff --git a/demo/main.d b/demo/src/main.d similarity index 100% rename from demo/main.d rename to demo/src/main.d diff --git a/lib/x64/soloud.dll b/lib/x64/soloud.dll index 81891a9..99a171f 100644 Binary files a/lib/x64/soloud.dll and b/lib/x64/soloud.dll differ diff --git a/lib/x86/soloud.dll b/lib/x86/soloud.dll index 3a9232d..3697df0 100644 Binary files a/lib/x86/soloud.dll and b/lib/x86/soloud.dll differ diff --git a/src/bindbc/soloud/binddynamic.d b/src/bindbc/soloud/binddynamic.d index 2404113..644563f 100644 --- a/src/bindbc/soloud/binddynamic.d +++ b/src/bindbc/soloud/binddynamic.d @@ -29,468 +29,467 @@ module bindbc.soloud.binddynamic; import bindbc.loader; import bindbc.soloud.types; -extern(C) +extern(C) @nogc nothrow { - alias @nogc nothrow int* function() da_Soloud_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Soloud_destroy; - alias @nogc nothrow int function(int* aObjHandle, uint aFlags, uint aBackend, uint aSamplerate, uint aBufferSize, uint aChannels) da_Soloud_initEx; - alias @nogc nothrow int function(int* aObjHandle) da_Soloud_pause; - alias @nogc nothrow int function(int* aObjHandle) da_Soloud_resume; - alias @nogc nothrow void function(int* aObjHandle) da_Soloud_deinit; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getVersion; - alias @nogc nothrow const(char)* function(int* aObjHandle, int aErrorCode) da_Soloud_getErrorString; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getBackendId; - alias @nogc nothrow const(char)* function(int* aObjHandle) da_Soloud_getBackendString; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getBackendChannels; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getBackendSamplerate; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getBackendBufferSize; - alias @nogc nothrow int function(int* aObjHandle, uint aChannel, float aX, float aY, float aZ) da_Soloud_setSpeakerPosition; - alias @nogc nothrow int function(int* aObjHandle, uint aChannel, float[] aX, float[] aY, float[] aZ) da_Soloud_getSpeakerPosition; - alias @nogc nothrow uint function(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused, uint aBus) da_Soloud_playEx; - alias @nogc nothrow uint function(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan, uint aBus) da_Soloud_playClockedEx; - alias @nogc nothrow uint function(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused, uint aBus) da_Soloud_play3dEx; - alias @nogc nothrow uint function(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, uint aBus) da_Soloud_play3dClockedEx; - alias @nogc nothrow uint function(int* aObjHandle, int* aSound, float aVolume, int aPaused, uint aBus) da_Soloud_playBackgroundEx; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle, double aSeconds) da_Soloud_seek; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle) da_Soloud_stop; - alias @nogc nothrow void function(int* aObjHandle) da_Soloud_stopAll; - alias @nogc nothrow void function(int* aObjHandle, int* aSound) da_Soloud_stopAudioSource; - alias @nogc nothrow int function(int* aObjHandle, int* aSound) da_Soloud_countAudioSource; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aValue) da_Soloud_setFilterParameter; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId) da_Soloud_getFilterParameter; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aTo, double aTime) da_Soloud_fadeFilterParameter; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aFrom, float aTo, double aTime) da_Soloud_oscillateFilterParameter; - alias @nogc nothrow double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getStreamTime; - alias @nogc nothrow double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getStreamPosition; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getPause; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getVolume; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getOverallVolume; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getPan; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getSamplerate; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getProtectVoice; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getActiveVoiceCount; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getVoiceCount; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_isValidVoiceHandle; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getRelativePlaySpeed; - alias @nogc nothrow float function(int* aObjHandle) da_Soloud_getPostClipScaler; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getMainResampler; - alias @nogc nothrow float function(int* aObjHandle) da_Soloud_getGlobalVolume; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_getMaxActiveVoiceCount; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLooping; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getAutoStop; - alias @nogc nothrow double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, double aLoopPoint) da_Soloud_setLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, int aLooping) da_Soloud_setLooping; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, int aAutoStop) da_Soloud_setAutoStop; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceCount) da_Soloud_setMaxActiveVoiceCount; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, int aMustTick, int aKill) da_Soloud_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Soloud_setGlobalVolume; - alias @nogc nothrow void function(int* aObjHandle, float aScaler) da_Soloud_setPostClipScaler; - alias @nogc nothrow void function(int* aObjHandle, uint aResampler) da_Soloud_setMainResampler; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, int aPause) da_Soloud_setPause; - alias @nogc nothrow void function(int* aObjHandle, int aPause) da_Soloud_setPauseAll; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceHandle, float aSpeed) da_Soloud_setRelativePlaySpeed; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, int aProtect) da_Soloud_setProtectVoice; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aSamplerate) da_Soloud_setSamplerate; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aPan) da_Soloud_setPan; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aLVolume, float aRVolume) da_Soloud_setPanAbsolute; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aChannel, float aVolume) da_Soloud_setChannelVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aVolume) da_Soloud_setVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aSamples) da_Soloud_setDelaySamples; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadeVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadePan; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadeRelativePlaySpeed; - alias @nogc nothrow void function(int* aObjHandle, float aTo, double aTime) da_Soloud_fadeGlobalVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, double aTime) da_Soloud_schedulePause; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, double aTime) da_Soloud_scheduleStop; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillatePan; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateRelativePlaySpeed; - alias @nogc nothrow void function(int* aObjHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateGlobalVolume; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Soloud_setGlobalFilter; - alias @nogc nothrow void function(int* aObjHandle, int aEnable) da_Soloud_setVisualizationEnable; - alias @nogc nothrow float[] function(int* aObjHandle) da_Soloud_calcFFT; - alias @nogc nothrow float[] function(int* aObjHandle) da_Soloud_getWave; - alias @nogc nothrow float function(int* aObjHandle, uint aChannel) da_Soloud_getApproximateVolume; - alias @nogc nothrow uint function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLoopCount; - alias @nogc nothrow float function(int* aObjHandle, uint aVoiceHandle, uint aInfoKey) da_Soloud_getInfo; - alias @nogc nothrow uint function(int* aObjHandle) da_Soloud_createVoiceGroup; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_destroyVoiceGroup; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceGroupHandle, uint aVoiceHandle) da_Soloud_addVoiceToGroup; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_isVoiceGroup; - alias @nogc nothrow int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_isVoiceGroupEmpty; - alias @nogc nothrow void function(int* aObjHandle) da_Soloud_update3dAudio; - alias @nogc nothrow int function(int* aObjHandle, float aSpeed) da_Soloud_set3dSoundSpeed; - alias @nogc nothrow float function(int* aObjHandle) da_Soloud_get3dSoundSpeed; - alias @nogc nothrow void function(int* aObjHandle, float aPosX, float aPosY, float aPosZ, float aAtX, float aAtY, float aAtZ, float aUpX, float aUpY, float aUpZ, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dListenerParametersEx; - alias @nogc nothrow void function(int* aObjHandle, float aPosX, float aPosY, float aPosZ) da_Soloud_set3dListenerPosition; - alias @nogc nothrow void function(int* aObjHandle, float aAtX, float aAtY, float aAtZ) da_Soloud_set3dListenerAt; - alias @nogc nothrow void function(int* aObjHandle, float aUpX, float aUpY, float aUpZ) da_Soloud_set3dListenerUp; - alias @nogc nothrow void function(int* aObjHandle, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dListenerVelocity; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dSourceParametersEx; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ) da_Soloud_set3dSourcePosition; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dSourceVelocity; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aMinDistance, float aMaxDistance) da_Soloud_set3dSourceMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Soloud_set3dSourceAttenuation; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle, float aDopplerFactor) da_Soloud_set3dSourceDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, float[] aBuffer, uint aSamples) da_Soloud_mix; - alias @nogc nothrow void function(int* aObjHandle, short[] aBuffer, uint aSamples) da_Soloud_mixSigned16; - alias @nogc nothrow int* function() da_Ay_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Ay_destroy; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Ay_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Ay_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Ay_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Ay_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Ay_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Ay_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Ay_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Ay_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Ay_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Ay_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Ay_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Ay_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Ay_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Ay_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Ay_stop; - alias @nogc nothrow int* function() da_BassboostFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_BassboostFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_BassboostFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, float aBoost) da_BassboostFilter_setParams; - alias @nogc nothrow int* function() da_BiquadResonantFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_BiquadResonantFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_BiquadResonantFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, int aType, float aFrequency, float aResonance) da_BiquadResonantFilter_setParams; - alias @nogc nothrow int* function() da_Bus_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Bus_destroy; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Bus_setFilter; - alias @nogc nothrow uint function(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused) da_Bus_playEx; - alias @nogc nothrow uint function(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan) da_Bus_playClockedEx; - alias @nogc nothrow uint function(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused) da_Bus_play3dEx; - alias @nogc nothrow uint function(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume) da_Bus_play3dClockedEx; - alias @nogc nothrow int function(int* aObjHandle, uint aChannels) da_Bus_setChannels; - alias @nogc nothrow void function(int* aObjHandle, int aEnable) da_Bus_setVisualizationEnable; - alias @nogc nothrow void function(int* aObjHandle, uint aVoiceHandle) da_Bus_annexSound; - alias @nogc nothrow float[] function(int* aObjHandle) da_Bus_calcFFT; - alias @nogc nothrow float[] function(int* aObjHandle) da_Bus_getWave; - alias @nogc nothrow float function(int* aObjHandle, uint aChannel) da_Bus_getApproximateVolume; - alias @nogc nothrow uint function(int* aObjHandle) da_Bus_getActiveVoiceCount; - alias @nogc nothrow uint function(int* aObjHandle) da_Bus_getResampler; - alias @nogc nothrow void function(int* aObjHandle, uint aResampler) da_Bus_setResampler; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Bus_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Bus_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Bus_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Bus_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Bus_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Bus_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Bus_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Bus_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Bus_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Bus_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Bus_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Bus_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Bus_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle) da_Bus_stop; - alias @nogc nothrow int* function() da_DCRemovalFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_DCRemovalFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle, float aLength) da_DCRemovalFilter_setParamsEx; - alias @nogc nothrow int function(int* aObjHandle) da_DCRemovalFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamMin; - alias @nogc nothrow int* function() da_EchoFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_EchoFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_EchoFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, float aDelay, float aDecay, float aFilter) da_EchoFilter_setParamsEx; - alias @nogc nothrow int* function() da_FFTFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_FFTFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_FFTFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamMin; - alias @nogc nothrow int* function() da_FlangerFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_FlangerFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_FlangerFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, float aDelay, float aFreq) da_FlangerFilter_setParams; - alias @nogc nothrow int* function() da_FreeverbFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_FreeverbFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_FreeverbFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, float aMode, float aRoomSize, float aDamp, float aWidth) da_FreeverbFilter_setParams; - alias @nogc nothrow int* function() da_LofiFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_LofiFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_LofiFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamMin; - alias @nogc nothrow int function(int* aObjHandle, float aSampleRate, float aBitdepth) da_LofiFilter_setParams; - alias @nogc nothrow int* function() da_Monotone_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Monotone_destroy; - alias @nogc nothrow int function(int* aObjHandle, int aHardwareChannels, int aWaveform) da_Monotone_setParamsEx; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_Monotone_load; - alias @nogc nothrow int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Monotone_loadMemEx; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_Monotone_loadFile; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Monotone_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Monotone_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Monotone_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Monotone_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Monotone_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Monotone_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Monotone_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Monotone_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Monotone_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Monotone_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Monotone_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Monotone_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Monotone_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Monotone_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Monotone_stop; - alias @nogc nothrow int* function() da_Noise_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Noise_destroy; - alias @nogc nothrow void function(int* aObjHandle, float aOct0, float aOct1, float aOct2, float aOct3, float aOct4, float aOct5, float aOct6, float aOct7, float aOct8, float aOct9) da_Noise_setOctaveScale; - alias @nogc nothrow void function(int* aObjHandle, int aType) da_Noise_setType; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Noise_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Noise_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Noise_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Noise_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Noise_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Noise_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Noise_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Noise_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Noise_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Noise_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Noise_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Noise_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Noise_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Noise_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Noise_stop; - alias @nogc nothrow int* function() da_Openmpt_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Openmpt_destroy; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_Openmpt_load; - alias @nogc nothrow int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Openmpt_loadMemEx; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_Openmpt_loadFile; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Openmpt_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Openmpt_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Openmpt_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Openmpt_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Openmpt_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Openmpt_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Openmpt_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Openmpt_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Openmpt_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Openmpt_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Openmpt_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Openmpt_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Openmpt_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Openmpt_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Openmpt_stop; - alias @nogc nothrow int* function() da_Queue_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Queue_destroy; - alias @nogc nothrow int function(int* aObjHandle, int* aSound) da_Queue_play; - alias @nogc nothrow uint function(int* aObjHandle) da_Queue_getQueueCount; - alias @nogc nothrow int function(int* aObjHandle, int* aSound) da_Queue_isCurrentlyPlaying; - alias @nogc nothrow int function(int* aObjHandle, int* aSound) da_Queue_setParamsFromAudioSource; - alias @nogc nothrow int function(int* aObjHandle, float aSamplerate, uint aChannels) da_Queue_setParamsEx; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Queue_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Queue_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Queue_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Queue_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Queue_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Queue_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Queue_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Queue_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Queue_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Queue_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Queue_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Queue_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Queue_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Queue_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Queue_stop; - alias @nogc nothrow int* function() da_RobotizeFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_RobotizeFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle) da_RobotizeFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamMin; - alias @nogc nothrow void function(int* aObjHandle, float aFreq, int aWaveform) da_RobotizeFilter_setParams; - alias @nogc nothrow int* function() da_Sfxr_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Sfxr_destroy; - alias @nogc nothrow void function(int* aObjHandle) da_Sfxr_resetParams; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_Sfxr_loadParams; - alias @nogc nothrow int function(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Sfxr_loadParamsMemEx; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_Sfxr_loadParamsFile; - alias @nogc nothrow int function(int* aObjHandle, int aPresetNo, int aRandSeed) da_Sfxr_loadPreset; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Sfxr_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Sfxr_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Sfxr_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Sfxr_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Sfxr_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Sfxr_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Sfxr_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Sfxr_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Sfxr_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Sfxr_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Sfxr_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Sfxr_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Sfxr_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Sfxr_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Sfxr_stop; - alias @nogc nothrow int* function() da_Speech_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Speech_destroy; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aText) da_Speech_setText; - alias @nogc nothrow int function(int* aObjHandle, uint aBaseFrequency, float aBaseSpeed, float aBaseDeclination, int aBaseWaveform) da_Speech_setParamsEx; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Speech_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Speech_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Speech_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Speech_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Speech_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Speech_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Speech_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Speech_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Speech_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Speech_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Speech_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Speech_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Speech_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Speech_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Speech_stop; - alias @nogc nothrow int* function() da_TedSid_create; - alias @nogc nothrow int* function(int* aObjHandle) da_TedSid_destroy; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_TedSid_load; - alias @nogc nothrow int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_TedSid_loadMemEx; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_TedSid_loadFile; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_TedSid_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_TedSid_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_TedSid_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_TedSid_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_TedSid_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_TedSid_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_TedSid_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_TedSid_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_TedSid_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_TedSid_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_TedSid_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_TedSid_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_TedSid_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_TedSid_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_TedSid_stop; - alias @nogc nothrow int* function() da_Vic_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Vic_destroy; - alias @nogc nothrow void function(int* aObjHandle, int model) da_Vic_setModel; - alias @nogc nothrow int function(int* aObjHandle) da_Vic_getModel; - alias @nogc nothrow void function(int* aObjHandle, int reg, ubyte value) da_Vic_setRegister; - alias @nogc nothrow ubyte function(int* aObjHandle, int reg) da_Vic_getRegister; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Vic_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Vic_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Vic_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Vic_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Vic_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Vic_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Vic_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Vic_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Vic_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Vic_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Vic_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Vic_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Vic_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Vic_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Vic_stop; - alias @nogc nothrow int* function() da_Vizsn_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Vizsn_destroy; - alias @nogc nothrow void function(int* aObjHandle, char* aText) da_Vizsn_setText; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Vizsn_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Vizsn_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Vizsn_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Vizsn_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Vizsn_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Vizsn_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Vizsn_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Vizsn_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Vizsn_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Vizsn_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Vizsn_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Vizsn_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Vizsn_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Vizsn_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Vizsn_stop; - alias @nogc nothrow int* function() da_Wav_create; - alias @nogc nothrow int* function(int* aObjHandle) da_Wav_destroy; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_Wav_load; - alias @nogc nothrow int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Wav_loadMemEx; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_Wav_loadFile; - alias @nogc nothrow int function(int* aObjHandle, ubyte* aMem, uint aLength, float aSamplerate, uint aChannels) da_Wav_loadRawWave8Ex; - alias @nogc nothrow int function(int* aObjHandle, short[] aMem, uint aLength, float aSamplerate, uint aChannels) da_Wav_loadRawWave16Ex; - alias @nogc nothrow int function(int* aObjHandle, float[] aMem, uint aLength, float aSamplerate, uint aChannels, int aCopy, int aTakeOwnership) da_Wav_loadRawWaveEx; - alias @nogc nothrow double function(int* aObjHandle) da_Wav_getLength; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_Wav_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_Wav_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_Wav_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Wav_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Wav_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_Wav_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_Wav_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_Wav_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_Wav_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_Wav_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_Wav_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_Wav_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_Wav_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Wav_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_Wav_stop; - alias @nogc nothrow int* function() da_WaveShaperFilter_create; - alias @nogc nothrow int* function(int* aObjHandle) da_WaveShaperFilter_destroy; - alias @nogc nothrow int function(int* aObjHandle, float aAmount) da_WaveShaperFilter_setParams; - alias @nogc nothrow int function(int* aObjHandle) da_WaveShaperFilter_getParamCount; - alias @nogc nothrow const(char)* function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamName; - alias @nogc nothrow uint function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamType; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamMax; - alias @nogc nothrow float function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamMin; - alias @nogc nothrow int* function() da_WavStream_create; - alias @nogc nothrow int* function(int* aObjHandle) da_WavStream_destroy; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_WavStream_load; - alias @nogc nothrow int function(int* aObjHandle, const(ubyte)* aData, uint aDataLen, int aCopy, int aTakeOwnership) da_WavStream_loadMemEx; - alias @nogc nothrow int function(int* aObjHandle, const(char)* aFilename) da_WavStream_loadToMem; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_WavStream_loadFile; - alias @nogc nothrow int function(int* aObjHandle, int* aFile) da_WavStream_loadFileToMem; - alias @nogc nothrow double function(int* aObjHandle) da_WavStream_getLength; - alias @nogc nothrow void function(int* aObjHandle, float aVolume) da_WavStream_setVolume; - alias @nogc nothrow void function(int* aObjHandle, int aLoop) da_WavStream_setLooping; - alias @nogc nothrow void function(int* aObjHandle, int aAutoStop) da_WavStream_setAutoStop; - alias @nogc nothrow void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_WavStream_set3dMinMaxDistance; - alias @nogc nothrow void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_WavStream_set3dAttenuation; - alias @nogc nothrow void function(int* aObjHandle, float aDopplerFactor) da_WavStream_set3dDopplerFactor; - alias @nogc nothrow void function(int* aObjHandle, int aListenerRelative) da_WavStream_set3dListenerRelative; - alias @nogc nothrow void function(int* aObjHandle, int aDistanceDelay) da_WavStream_set3dDistanceDelay; - alias @nogc nothrow void function(int* aObjHandle, int* aCollider, int aUserData) da_WavStream_set3dColliderEx; - alias @nogc nothrow void function(int* aObjHandle, int* aAttenuator) da_WavStream_set3dAttenuator; - alias @nogc nothrow void function(int* aObjHandle, int aMustTick, int aKill) da_WavStream_setInaudibleBehavior; - alias @nogc nothrow void function(int* aObjHandle, double aLoopPoint) da_WavStream_setLoopPoint; - alias @nogc nothrow double function(int* aObjHandle) da_WavStream_getLoopPoint; - alias @nogc nothrow void function(int* aObjHandle, uint aFilterId, int* aFilter) da_WavStream_setFilter; - alias @nogc nothrow void function(int* aObjHandle) da_WavStream_stop; - + alias int* function() da_Soloud_create; + alias int* function(int* aObjHandle) da_Soloud_destroy; + alias int function(int* aObjHandle, uint aFlags, uint aBackend, uint aSamplerate, uint aBufferSize, uint aChannels) da_Soloud_initEx; + alias int function(int* aObjHandle) da_Soloud_pause; + alias int function(int* aObjHandle) da_Soloud_resume; + alias void function(int* aObjHandle) da_Soloud_deinit; + alias uint function(int* aObjHandle) da_Soloud_getVersion; + alias const(char)* function(int* aObjHandle, int aErrorCode) da_Soloud_getErrorString; + alias uint function(int* aObjHandle) da_Soloud_getBackendId; + alias const(char)* function(int* aObjHandle) da_Soloud_getBackendString; + alias uint function(int* aObjHandle) da_Soloud_getBackendChannels; + alias uint function(int* aObjHandle) da_Soloud_getBackendSamplerate; + alias uint function(int* aObjHandle) da_Soloud_getBackendBufferSize; + alias int function(int* aObjHandle, uint aChannel, float aX, float aY, float aZ) da_Soloud_setSpeakerPosition; + alias int function(int* aObjHandle, uint aChannel, float[] aX, float[] aY, float[] aZ) da_Soloud_getSpeakerPosition; + alias uint function(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused, uint aBus) da_Soloud_playEx; + alias uint function(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan, uint aBus) da_Soloud_playClockedEx; + alias uint function(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused, uint aBus) da_Soloud_play3dEx; + alias uint function(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, uint aBus) da_Soloud_play3dClockedEx; + alias uint function(int* aObjHandle, int* aSound, float aVolume, int aPaused, uint aBus) da_Soloud_playBackgroundEx; + alias int function(int* aObjHandle, uint aVoiceHandle, double aSeconds) da_Soloud_seek; + alias void function(int* aObjHandle, uint aVoiceHandle) da_Soloud_stop; + alias void function(int* aObjHandle) da_Soloud_stopAll; + alias void function(int* aObjHandle, int* aSound) da_Soloud_stopAudioSource; + alias int function(int* aObjHandle, int* aSound) da_Soloud_countAudioSource; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aValue) da_Soloud_setFilterParameter; + alias float function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId) da_Soloud_getFilterParameter; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aTo, double aTime) da_Soloud_fadeFilterParameter; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aFrom, float aTo, double aTime) da_Soloud_oscillateFilterParameter; + alias double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getStreamTime; + alias double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getStreamPosition; + alias int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getPause; + alias float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getVolume; + alias float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getOverallVolume; + alias float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getPan; + alias float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getSamplerate; + alias int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getProtectVoice; + alias uint function(int* aObjHandle) da_Soloud_getActiveVoiceCount; + alias uint function(int* aObjHandle) da_Soloud_getVoiceCount; + alias int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_isValidVoiceHandle; + alias float function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getRelativePlaySpeed; + alias float function(int* aObjHandle) da_Soloud_getPostClipScaler; + alias uint function(int* aObjHandle) da_Soloud_getMainResampler; + alias float function(int* aObjHandle) da_Soloud_getGlobalVolume; + alias uint function(int* aObjHandle) da_Soloud_getMaxActiveVoiceCount; + alias int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLooping; + alias int function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getAutoStop; + alias double function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLoopPoint; + alias void function(int* aObjHandle, uint aVoiceHandle, double aLoopPoint) da_Soloud_setLoopPoint; + alias void function(int* aObjHandle, uint aVoiceHandle, int aLooping) da_Soloud_setLooping; + alias void function(int* aObjHandle, uint aVoiceHandle, int aAutoStop) da_Soloud_setAutoStop; + alias int function(int* aObjHandle, uint aVoiceCount) da_Soloud_setMaxActiveVoiceCount; + alias void function(int* aObjHandle, uint aVoiceHandle, int aMustTick, int aKill) da_Soloud_setInaudibleBehavior; + alias void function(int* aObjHandle, float aVolume) da_Soloud_setGlobalVolume; + alias void function(int* aObjHandle, float aScaler) da_Soloud_setPostClipScaler; + alias void function(int* aObjHandle, uint aResampler) da_Soloud_setMainResampler; + alias void function(int* aObjHandle, uint aVoiceHandle, int aPause) da_Soloud_setPause; + alias void function(int* aObjHandle, int aPause) da_Soloud_setPauseAll; + alias int function(int* aObjHandle, uint aVoiceHandle, float aSpeed) da_Soloud_setRelativePlaySpeed; + alias void function(int* aObjHandle, uint aVoiceHandle, int aProtect) da_Soloud_setProtectVoice; + alias void function(int* aObjHandle, uint aVoiceHandle, float aSamplerate) da_Soloud_setSamplerate; + alias void function(int* aObjHandle, uint aVoiceHandle, float aPan) da_Soloud_setPan; + alias void function(int* aObjHandle, uint aVoiceHandle, float aLVolume, float aRVolume) da_Soloud_setPanAbsolute; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aChannel, float aVolume) da_Soloud_setChannelVolume; + alias void function(int* aObjHandle, uint aVoiceHandle, float aVolume) da_Soloud_setVolume; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aSamples) da_Soloud_setDelaySamples; + alias void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadeVolume; + alias void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadePan; + alias void function(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime) da_Soloud_fadeRelativePlaySpeed; + alias void function(int* aObjHandle, float aTo, double aTime) da_Soloud_fadeGlobalVolume; + alias void function(int* aObjHandle, uint aVoiceHandle, double aTime) da_Soloud_schedulePause; + alias void function(int* aObjHandle, uint aVoiceHandle, double aTime) da_Soloud_scheduleStop; + alias void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateVolume; + alias void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillatePan; + alias void function(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateRelativePlaySpeed; + alias void function(int* aObjHandle, float aFrom, float aTo, double aTime) da_Soloud_oscillateGlobalVolume; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Soloud_setGlobalFilter; + alias void function(int* aObjHandle, int aEnable) da_Soloud_setVisualizationEnable; + alias float[] function(int* aObjHandle) da_Soloud_calcFFT; + alias float[] function(int* aObjHandle) da_Soloud_getWave; + alias float function(int* aObjHandle, uint aChannel) da_Soloud_getApproximateVolume; + alias uint function(int* aObjHandle, uint aVoiceHandle) da_Soloud_getLoopCount; + alias float function(int* aObjHandle, uint aVoiceHandle, uint aInfoKey) da_Soloud_getInfo; + alias uint function(int* aObjHandle) da_Soloud_createVoiceGroup; + alias int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_destroyVoiceGroup; + alias int function(int* aObjHandle, uint aVoiceGroupHandle, uint aVoiceHandle) da_Soloud_addVoiceToGroup; + alias int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_isVoiceGroup; + alias int function(int* aObjHandle, uint aVoiceGroupHandle) da_Soloud_isVoiceGroupEmpty; + alias void function(int* aObjHandle) da_Soloud_update3dAudio; + alias int function(int* aObjHandle, float aSpeed) da_Soloud_set3dSoundSpeed; + alias float function(int* aObjHandle) da_Soloud_get3dSoundSpeed; + alias void function(int* aObjHandle, float aPosX, float aPosY, float aPosZ, float aAtX, float aAtY, float aAtZ, float aUpX, float aUpY, float aUpZ, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dListenerParametersEx; + alias void function(int* aObjHandle, float aPosX, float aPosY, float aPosZ) da_Soloud_set3dListenerPosition; + alias void function(int* aObjHandle, float aAtX, float aAtY, float aAtZ) da_Soloud_set3dListenerAt; + alias void function(int* aObjHandle, float aUpX, float aUpY, float aUpZ) da_Soloud_set3dListenerUp; + alias void function(int* aObjHandle, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dListenerVelocity; + alias void function(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dSourceParametersEx; + alias void function(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ) da_Soloud_set3dSourcePosition; + alias void function(int* aObjHandle, uint aVoiceHandle, float aVelocityX, float aVelocityY, float aVelocityZ) da_Soloud_set3dSourceVelocity; + alias void function(int* aObjHandle, uint aVoiceHandle, float aMinDistance, float aMaxDistance) da_Soloud_set3dSourceMinMaxDistance; + alias void function(int* aObjHandle, uint aVoiceHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Soloud_set3dSourceAttenuation; + alias void function(int* aObjHandle, uint aVoiceHandle, float aDopplerFactor) da_Soloud_set3dSourceDopplerFactor; + alias void function(int* aObjHandle, float[] aBuffer, uint aSamples) da_Soloud_mix; + alias void function(int* aObjHandle, short[] aBuffer, uint aSamples) da_Soloud_mixSigned16; + alias int* function() da_Ay_create; + alias int* function(int* aObjHandle) da_Ay_destroy; + alias void function(int* aObjHandle, float aVolume) da_Ay_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Ay_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Ay_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Ay_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Ay_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Ay_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Ay_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Ay_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Ay_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Ay_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Ay_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Ay_setLoopPoint; + alias double function(int* aObjHandle) da_Ay_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Ay_setFilter; + alias void function(int* aObjHandle) da_Ay_stop; + alias int* function() da_BassboostFilter_create; + alias int* function(int* aObjHandle) da_BassboostFilter_destroy; + alias int function(int* aObjHandle) da_BassboostFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_BassboostFilter_getParamMin; + alias int function(int* aObjHandle, float aBoost) da_BassboostFilter_setParams; + alias int* function() da_BiquadResonantFilter_create; + alias int* function(int* aObjHandle) da_BiquadResonantFilter_destroy; + alias int function(int* aObjHandle) da_BiquadResonantFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_BiquadResonantFilter_getParamMin; + alias int function(int* aObjHandle, int aType, float aFrequency, float aResonance) da_BiquadResonantFilter_setParams; + alias int* function() da_Bus_create; + alias int* function(int* aObjHandle) da_Bus_destroy; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Bus_setFilter; + alias uint function(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused) da_Bus_playEx; + alias uint function(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan) da_Bus_playClockedEx; + alias uint function(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused) da_Bus_play3dEx; + alias uint function(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume) da_Bus_play3dClockedEx; + alias int function(int* aObjHandle, uint aChannels) da_Bus_setChannels; + alias void function(int* aObjHandle, int aEnable) da_Bus_setVisualizationEnable; + alias void function(int* aObjHandle, uint aVoiceHandle) da_Bus_annexSound; + alias float[] function(int* aObjHandle) da_Bus_calcFFT; + alias float[] function(int* aObjHandle) da_Bus_getWave; + alias float function(int* aObjHandle, uint aChannel) da_Bus_getApproximateVolume; + alias uint function(int* aObjHandle) da_Bus_getActiveVoiceCount; + alias uint function(int* aObjHandle) da_Bus_getResampler; + alias void function(int* aObjHandle, uint aResampler) da_Bus_setResampler; + alias void function(int* aObjHandle, float aVolume) da_Bus_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Bus_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Bus_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Bus_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Bus_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Bus_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Bus_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Bus_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Bus_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Bus_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Bus_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Bus_setLoopPoint; + alias double function(int* aObjHandle) da_Bus_getLoopPoint; + alias void function(int* aObjHandle) da_Bus_stop; + alias int* function() da_DCRemovalFilter_create; + alias int* function(int* aObjHandle) da_DCRemovalFilter_destroy; + alias int function(int* aObjHandle, float aLength) da_DCRemovalFilter_setParamsEx; + alias int function(int* aObjHandle) da_DCRemovalFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_DCRemovalFilter_getParamMin; + alias int* function() da_EchoFilter_create; + alias int* function(int* aObjHandle) da_EchoFilter_destroy; + alias int function(int* aObjHandle) da_EchoFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_EchoFilter_getParamMin; + alias int function(int* aObjHandle, float aDelay, float aDecay, float aFilter) da_EchoFilter_setParamsEx; + alias int* function() da_FFTFilter_create; + alias int* function(int* aObjHandle) da_FFTFilter_destroy; + alias int function(int* aObjHandle) da_FFTFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_FFTFilter_getParamMin; + alias int* function() da_FlangerFilter_create; + alias int* function(int* aObjHandle) da_FlangerFilter_destroy; + alias int function(int* aObjHandle) da_FlangerFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_FlangerFilter_getParamMin; + alias int function(int* aObjHandle, float aDelay, float aFreq) da_FlangerFilter_setParams; + alias int* function() da_FreeverbFilter_create; + alias int* function(int* aObjHandle) da_FreeverbFilter_destroy; + alias int function(int* aObjHandle) da_FreeverbFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_FreeverbFilter_getParamMin; + alias int function(int* aObjHandle, float aMode, float aRoomSize, float aDamp, float aWidth) da_FreeverbFilter_setParams; + alias int* function() da_LofiFilter_create; + alias int* function(int* aObjHandle) da_LofiFilter_destroy; + alias int function(int* aObjHandle) da_LofiFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_LofiFilter_getParamMin; + alias int function(int* aObjHandle, float aSampleRate, float aBitdepth) da_LofiFilter_setParams; + alias int* function() da_Monotone_create; + alias int* function(int* aObjHandle) da_Monotone_destroy; + alias int function(int* aObjHandle, int aHardwareChannels, int aWaveform) da_Monotone_setParamsEx; + alias int function(int* aObjHandle, const(char)* aFilename) da_Monotone_load; + alias int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Monotone_loadMemEx; + alias int function(int* aObjHandle, int* aFile) da_Monotone_loadFile; + alias void function(int* aObjHandle, float aVolume) da_Monotone_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Monotone_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Monotone_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Monotone_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Monotone_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Monotone_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Monotone_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Monotone_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Monotone_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Monotone_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Monotone_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Monotone_setLoopPoint; + alias double function(int* aObjHandle) da_Monotone_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Monotone_setFilter; + alias void function(int* aObjHandle) da_Monotone_stop; + alias int* function() da_Noise_create; + alias int* function(int* aObjHandle) da_Noise_destroy; + alias void function(int* aObjHandle, float aOct0, float aOct1, float aOct2, float aOct3, float aOct4, float aOct5, float aOct6, float aOct7, float aOct8, float aOct9) da_Noise_setOctaveScale; + alias void function(int* aObjHandle, int aType) da_Noise_setType; + alias void function(int* aObjHandle, float aVolume) da_Noise_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Noise_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Noise_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Noise_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Noise_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Noise_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Noise_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Noise_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Noise_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Noise_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Noise_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Noise_setLoopPoint; + alias double function(int* aObjHandle) da_Noise_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Noise_setFilter; + alias void function(int* aObjHandle) da_Noise_stop; + alias int* function() da_Openmpt_create; + alias int* function(int* aObjHandle) da_Openmpt_destroy; + alias int function(int* aObjHandle, const(char)* aFilename) da_Openmpt_load; + alias int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Openmpt_loadMemEx; + alias int function(int* aObjHandle, int* aFile) da_Openmpt_loadFile; + alias void function(int* aObjHandle, float aVolume) da_Openmpt_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Openmpt_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Openmpt_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Openmpt_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Openmpt_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Openmpt_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Openmpt_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Openmpt_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Openmpt_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Openmpt_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Openmpt_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Openmpt_setLoopPoint; + alias double function(int* aObjHandle) da_Openmpt_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Openmpt_setFilter; + alias void function(int* aObjHandle) da_Openmpt_stop; + alias int* function() da_Queue_create; + alias int* function(int* aObjHandle) da_Queue_destroy; + alias int function(int* aObjHandle, int* aSound) da_Queue_play; + alias uint function(int* aObjHandle) da_Queue_getQueueCount; + alias int function(int* aObjHandle, int* aSound) da_Queue_isCurrentlyPlaying; + alias int function(int* aObjHandle, int* aSound) da_Queue_setParamsFromAudioSource; + alias int function(int* aObjHandle, float aSamplerate, uint aChannels) da_Queue_setParamsEx; + alias void function(int* aObjHandle, float aVolume) da_Queue_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Queue_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Queue_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Queue_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Queue_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Queue_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Queue_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Queue_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Queue_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Queue_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Queue_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Queue_setLoopPoint; + alias double function(int* aObjHandle) da_Queue_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Queue_setFilter; + alias void function(int* aObjHandle) da_Queue_stop; + alias int* function() da_RobotizeFilter_create; + alias int* function(int* aObjHandle) da_RobotizeFilter_destroy; + alias int function(int* aObjHandle) da_RobotizeFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_RobotizeFilter_getParamMin; + alias void function(int* aObjHandle, float aFreq, int aWaveform) da_RobotizeFilter_setParams; + alias int* function() da_Sfxr_create; + alias int* function(int* aObjHandle) da_Sfxr_destroy; + alias void function(int* aObjHandle) da_Sfxr_resetParams; + alias int function(int* aObjHandle, const(char)* aFilename) da_Sfxr_loadParams; + alias int function(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Sfxr_loadParamsMemEx; + alias int function(int* aObjHandle, int* aFile) da_Sfxr_loadParamsFile; + alias int function(int* aObjHandle, int aPresetNo, int aRandSeed) da_Sfxr_loadPreset; + alias void function(int* aObjHandle, float aVolume) da_Sfxr_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Sfxr_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Sfxr_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Sfxr_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Sfxr_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Sfxr_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Sfxr_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Sfxr_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Sfxr_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Sfxr_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Sfxr_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Sfxr_setLoopPoint; + alias double function(int* aObjHandle) da_Sfxr_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Sfxr_setFilter; + alias void function(int* aObjHandle) da_Sfxr_stop; + alias int* function() da_Speech_create; + alias int* function(int* aObjHandle) da_Speech_destroy; + alias int function(int* aObjHandle, const(char)* aText) da_Speech_setText; + alias int function(int* aObjHandle, uint aBaseFrequency, float aBaseSpeed, float aBaseDeclination, int aBaseWaveform) da_Speech_setParamsEx; + alias void function(int* aObjHandle, float aVolume) da_Speech_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Speech_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Speech_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Speech_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Speech_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Speech_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Speech_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Speech_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Speech_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Speech_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Speech_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Speech_setLoopPoint; + alias double function(int* aObjHandle) da_Speech_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Speech_setFilter; + alias void function(int* aObjHandle) da_Speech_stop; + alias int* function() da_TedSid_create; + alias int* function(int* aObjHandle) da_TedSid_destroy; + alias int function(int* aObjHandle, const(char)* aFilename) da_TedSid_load; + alias int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_TedSid_loadMemEx; + alias int function(int* aObjHandle, int* aFile) da_TedSid_loadFile; + alias void function(int* aObjHandle, float aVolume) da_TedSid_setVolume; + alias void function(int* aObjHandle, int aLoop) da_TedSid_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_TedSid_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_TedSid_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_TedSid_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_TedSid_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_TedSid_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_TedSid_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_TedSid_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_TedSid_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_TedSid_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_TedSid_setLoopPoint; + alias double function(int* aObjHandle) da_TedSid_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_TedSid_setFilter; + alias void function(int* aObjHandle) da_TedSid_stop; + alias int* function() da_Vic_create; + alias int* function(int* aObjHandle) da_Vic_destroy; + alias void function(int* aObjHandle, int model) da_Vic_setModel; + alias int function(int* aObjHandle) da_Vic_getModel; + alias void function(int* aObjHandle, int reg, ubyte value) da_Vic_setRegister; + alias ubyte function(int* aObjHandle, int reg) da_Vic_getRegister; + alias void function(int* aObjHandle, float aVolume) da_Vic_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Vic_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Vic_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Vic_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Vic_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Vic_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Vic_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Vic_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Vic_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Vic_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Vic_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Vic_setLoopPoint; + alias double function(int* aObjHandle) da_Vic_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Vic_setFilter; + alias void function(int* aObjHandle) da_Vic_stop; + alias int* function() da_Vizsn_create; + alias int* function(int* aObjHandle) da_Vizsn_destroy; + alias void function(int* aObjHandle, char* aText) da_Vizsn_setText; + alias void function(int* aObjHandle, float aVolume) da_Vizsn_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Vizsn_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Vizsn_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Vizsn_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Vizsn_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Vizsn_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Vizsn_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Vizsn_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Vizsn_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Vizsn_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Vizsn_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Vizsn_setLoopPoint; + alias double function(int* aObjHandle) da_Vizsn_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Vizsn_setFilter; + alias void function(int* aObjHandle) da_Vizsn_stop; + alias int* function() da_Wav_create; + alias int* function(int* aObjHandle) da_Wav_destroy; + alias int function(int* aObjHandle, const(char)* aFilename) da_Wav_load; + alias int function(int* aObjHandle, const(ubyte)* aMem, uint aLength, int aCopy, int aTakeOwnership) da_Wav_loadMemEx; + alias int function(int* aObjHandle, int* aFile) da_Wav_loadFile; + alias int function(int* aObjHandle, ubyte* aMem, uint aLength, float aSamplerate, uint aChannels) da_Wav_loadRawWave8Ex; + alias int function(int* aObjHandle, short[] aMem, uint aLength, float aSamplerate, uint aChannels) da_Wav_loadRawWave16Ex; + alias int function(int* aObjHandle, float[] aMem, uint aLength, float aSamplerate, uint aChannels, int aCopy, int aTakeOwnership) da_Wav_loadRawWaveEx; + alias double function(int* aObjHandle) da_Wav_getLength; + alias void function(int* aObjHandle, float aVolume) da_Wav_setVolume; + alias void function(int* aObjHandle, int aLoop) da_Wav_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_Wav_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_Wav_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_Wav_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_Wav_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_Wav_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_Wav_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_Wav_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_Wav_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_Wav_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_Wav_setLoopPoint; + alias double function(int* aObjHandle) da_Wav_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_Wav_setFilter; + alias void function(int* aObjHandle) da_Wav_stop; + alias int* function() da_WaveShaperFilter_create; + alias int* function(int* aObjHandle) da_WaveShaperFilter_destroy; + alias int function(int* aObjHandle, float aAmount) da_WaveShaperFilter_setParams; + alias int function(int* aObjHandle) da_WaveShaperFilter_getParamCount; + alias const(char)* function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamName; + alias uint function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamType; + alias float function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamMax; + alias float function(int* aObjHandle, uint aParamIndex) da_WaveShaperFilter_getParamMin; + alias int* function() da_WavStream_create; + alias int* function(int* aObjHandle) da_WavStream_destroy; + alias int function(int* aObjHandle, const(char)* aFilename) da_WavStream_load; + alias int function(int* aObjHandle, const(ubyte)* aData, uint aDataLen, int aCopy, int aTakeOwnership) da_WavStream_loadMemEx; + alias int function(int* aObjHandle, const(char)* aFilename) da_WavStream_loadToMem; + alias int function(int* aObjHandle, int* aFile) da_WavStream_loadFile; + alias int function(int* aObjHandle, int* aFile) da_WavStream_loadFileToMem; + alias double function(int* aObjHandle) da_WavStream_getLength; + alias void function(int* aObjHandle, float aVolume) da_WavStream_setVolume; + alias void function(int* aObjHandle, int aLoop) da_WavStream_setLooping; + alias void function(int* aObjHandle, int aAutoStop) da_WavStream_setAutoStop; + alias void function(int* aObjHandle, float aMinDistance, float aMaxDistance) da_WavStream_set3dMinMaxDistance; + alias void function(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) da_WavStream_set3dAttenuation; + alias void function(int* aObjHandle, float aDopplerFactor) da_WavStream_set3dDopplerFactor; + alias void function(int* aObjHandle, int aListenerRelative) da_WavStream_set3dListenerRelative; + alias void function(int* aObjHandle, int aDistanceDelay) da_WavStream_set3dDistanceDelay; + alias void function(int* aObjHandle, int* aCollider, int aUserData) da_WavStream_set3dColliderEx; + alias void function(int* aObjHandle, int* aAttenuator) da_WavStream_set3dAttenuator; + alias void function(int* aObjHandle, int aMustTick, int aKill) da_WavStream_setInaudibleBehavior; + alias void function(int* aObjHandle, double aLoopPoint) da_WavStream_setLoopPoint; + alias double function(int* aObjHandle) da_WavStream_getLoopPoint; + alias void function(int* aObjHandle, uint aFilterId, int* aFilter) da_WavStream_setFilter; + alias void function(int* aObjHandle) da_WavStream_stop; } __gshared @@ -1034,7 +1033,7 @@ SLSupport loadSoloud(const(char)* libName) auto errCount = errorCount(); loadedVersion = SLSupport.badLibrary; - lib.bindSymbol(cast(void**)&Soloud_create, "Soloud_create"); + lib.bindSymbol(cast(void**)&Soloud_create, "Soloud_create"); lib.bindSymbol(cast(void**)&Soloud_destroy, "Soloud_destroy"); lib.bindSymbol(cast(void**)&Soloud_initEx, "Soloud_initEx"); lib.bindSymbol(cast(void**)&Soloud_pause, "Soloud_pause"); diff --git a/src/soloud.d b/src/soloud.d index 4c7c087..539e95d 100644 --- a/src/soloud.d +++ b/src/soloud.d @@ -1,3074 +1,2608 @@ - -// SoLoud wrapper for D -// This file is autogenerated; any changes will be overwritten - module soloud; public import bindbc.soloud; -pure @safe nothrow @nogc: +nothrow @nogc: private struct SoloudObject { public int* objhandle; } - - public struct Soloud { -pure @safe nothrow @nogc: - public enum AUTO = 0; - public enum SDL1 = 1; - public enum SDL2 = 2; - public enum PORTAUDIO = 3; - public enum WINMM = 4; - public enum XAUDIO2 = 5; - public enum WASAPI = 6; - public enum ALSA = 7; - public enum JACK = 8; - public enum OSS = 9; - public enum OPENAL = 10; - public enum COREAUDIO = 11; - public enum OPENSLES = 12; - public enum VITA_HOMEBREW = 13; - public enum MINIAUDIO = 14; - public enum NOSOUND = 15; - public enum NULLDRIVER = 16; - public enum BACKEND_MAX = 17; - public enum CLIP_ROUNDOFF = 1; - public enum ENABLE_VISUALIZATION = 2; - public enum LEFT_HANDED_3D = 4; - public enum NO_FPU_REGISTER_CHANGE = 8; - public enum WAVE_SQUARE = 0; - public enum WAVE_SAW = 1; - public enum WAVE_SIN = 2; - public enum WAVE_TRIANGLE = 3; - public enum WAVE_BOUNCE = 4; - public enum WAVE_JAWS = 5; - public enum WAVE_HUMPS = 6; - public enum WAVE_FSQUARE = 7; - public enum WAVE_FSAW = 8; - public enum RESAMPLER_POINT = 0; - public enum RESAMPLER_LINEAR = 1; - public enum RESAMPLER_CATMULLROM = 2; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Soloud(SoloudObject(Soloud_create())); - } - - ~this() - { - Soloud_destroy(objhandle); - } - - public int init(uint aFlags = CLIP_ROUNDOFF, uint aBackend = AUTO, uint aSamplerate = AUTO, uint aBufferSize = AUTO, uint aChannels = 2) - { - return Soloud_initEx(objhandle, aFlags, aBackend, aSamplerate, aBufferSize, aChannels); - } - - public int pause() - { - return Soloud_pause(objhandle); - } - - public int resume() - { - return Soloud_resume(objhandle); - } - - public void deinit() - { - Soloud_deinit(objhandle); - } - - public uint getVersion() - { - return Soloud_getVersion(objhandle); - } - - public const(char)* getErrorString(int aErrorCode) - { - return Soloud_getErrorString(objhandle, aErrorCode); - } - - public uint getBackendId() - { - return Soloud_getBackendId(objhandle); - } - - public const(char)* getBackendString() - { - return Soloud_getBackendString(objhandle); - } - - public uint getBackendChannels() - { - return Soloud_getBackendChannels(objhandle); - } - - public uint getBackendSamplerate() - { - return Soloud_getBackendSamplerate(objhandle); - } - - public uint getBackendBufferSize() - { - return Soloud_getBackendBufferSize(objhandle); - } - - public int setSpeakerPosition(uint aChannel, float aX, float aY, float aZ) - { - return Soloud_setSpeakerPosition(objhandle, aChannel, aX, aY, aZ); - } - - public int getSpeakerPosition(uint aChannel, float[] aX, float[] aY, float[] aZ) - { - return Soloud_getSpeakerPosition(objhandle, aChannel, aX, aY, aZ); - } - - public uint play(SoloudObject aSound, float aVolume = -1.0f, float aPan = 0.0f, int aPaused = 0, uint aBus = 0) - { - return Soloud_playEx(objhandle, aSound.objhandle, aVolume, aPan, aPaused, aBus); - } - - public uint playClocked(double aSoundTime, SoloudObject aSound, float aVolume = -1.0f, float aPan = 0.0f, uint aBus = 0) - { - return Soloud_playClockedEx(objhandle, aSoundTime, aSound.objhandle, aVolume, aPan, aBus); - } - - public uint play3d(SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, int aPaused = 0, uint aBus = 0) - { - return Soloud_play3dEx(objhandle, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aPaused, aBus); - } - - public uint play3dClocked(double aSoundTime, SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, uint aBus = 0) - { - return Soloud_play3dClockedEx(objhandle, aSoundTime, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aBus); - } - - public uint playBackground(SoloudObject aSound, float aVolume = -1.0f, int aPaused = 0, uint aBus = 0) - { - return Soloud_playBackgroundEx(objhandle, aSound.objhandle, aVolume, aPaused, aBus); - } - - public int seek(uint aVoiceHandle, double aSeconds) - { - return Soloud_seek(objhandle, aVoiceHandle, aSeconds); - } - - public void stop(uint aVoiceHandle) - { - Soloud_stop(objhandle, aVoiceHandle); - } - - public void stopAll() - { - Soloud_stopAll(objhandle); - } - - public void stopAudioSource(SoloudObject aSound) - { - Soloud_stopAudioSource(objhandle, aSound.objhandle); - } - - public int countAudioSource(SoloudObject aSound) - { - return Soloud_countAudioSource(objhandle, aSound.objhandle); - } - - public void setFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aValue) - { - Soloud_setFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aValue); - } - - public float getFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId) - { - return Soloud_getFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId); - } - - public void fadeFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aTo, double aTime) - { - Soloud_fadeFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aTo, aTime); - } - - public void oscillateFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aFrom, float aTo, double aTime) - { - Soloud_oscillateFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aFrom, aTo, aTime); - } - - public double getStreamTime(uint aVoiceHandle) - { - return Soloud_getStreamTime(objhandle, aVoiceHandle); - } - - public double getStreamPosition(uint aVoiceHandle) - { - return Soloud_getStreamPosition(objhandle, aVoiceHandle); - } - - public int getPause(uint aVoiceHandle) - { - return Soloud_getPause(objhandle, aVoiceHandle); - } - - public float getVolume(uint aVoiceHandle) - { - return Soloud_getVolume(objhandle, aVoiceHandle); - } - - public float getOverallVolume(uint aVoiceHandle) - { - return Soloud_getOverallVolume(objhandle, aVoiceHandle); - } - - public float getPan(uint aVoiceHandle) - { - return Soloud_getPan(objhandle, aVoiceHandle); - } - - public float getSamplerate(uint aVoiceHandle) - { - return Soloud_getSamplerate(objhandle, aVoiceHandle); - } - - public int getProtectVoice(uint aVoiceHandle) - { - return Soloud_getProtectVoice(objhandle, aVoiceHandle); - } - - public uint getActiveVoiceCount() - { - return Soloud_getActiveVoiceCount(objhandle); - } - - public uint getVoiceCount() - { - return Soloud_getVoiceCount(objhandle); - } - - public int isValidVoiceHandle(uint aVoiceHandle) - { - return Soloud_isValidVoiceHandle(objhandle, aVoiceHandle); - } - - public float getRelativePlaySpeed(uint aVoiceHandle) - { - return Soloud_getRelativePlaySpeed(objhandle, aVoiceHandle); - } - - public float getPostClipScaler() - { - return Soloud_getPostClipScaler(objhandle); - } - - public uint getMainResampler() - { - return Soloud_getMainResampler(objhandle); - } - - public float getGlobalVolume() - { - return Soloud_getGlobalVolume(objhandle); - } - - public uint getMaxActiveVoiceCount() - { - return Soloud_getMaxActiveVoiceCount(objhandle); - } - - public int getLooping(uint aVoiceHandle) - { - return Soloud_getLooping(objhandle, aVoiceHandle); - } - - public int getAutoStop(uint aVoiceHandle) - { - return Soloud_getAutoStop(objhandle, aVoiceHandle); - } - - public double getLoopPoint(uint aVoiceHandle) - { - return Soloud_getLoopPoint(objhandle, aVoiceHandle); - } - - public void setLoopPoint(uint aVoiceHandle, double aLoopPoint) - { - Soloud_setLoopPoint(objhandle, aVoiceHandle, aLoopPoint); - } - - public void setLooping(uint aVoiceHandle, int aLooping) - { - Soloud_setLooping(objhandle, aVoiceHandle, aLooping); - } - - public void setAutoStop(uint aVoiceHandle, int aAutoStop) - { - Soloud_setAutoStop(objhandle, aVoiceHandle, aAutoStop); - } - - public int setMaxActiveVoiceCount(uint aVoiceCount) - { - return Soloud_setMaxActiveVoiceCount(objhandle, aVoiceCount); - } - - public void setInaudibleBehavior(uint aVoiceHandle, int aMustTick, int aKill) - { - Soloud_setInaudibleBehavior(objhandle, aVoiceHandle, aMustTick, aKill); - } - - public void setGlobalVolume(float aVolume) - { - Soloud_setGlobalVolume(objhandle, aVolume); - } - - public void setPostClipScaler(float aScaler) - { - Soloud_setPostClipScaler(objhandle, aScaler); - } - - public void setMainResampler(uint aResampler) - { - Soloud_setMainResampler(objhandle, aResampler); - } - - public void setPause(uint aVoiceHandle, int aPause) - { - Soloud_setPause(objhandle, aVoiceHandle, aPause); - } - - public void setPauseAll(int aPause) - { - Soloud_setPauseAll(objhandle, aPause); - } - - public int setRelativePlaySpeed(uint aVoiceHandle, float aSpeed) - { - return Soloud_setRelativePlaySpeed(objhandle, aVoiceHandle, aSpeed); - } - - public void setProtectVoice(uint aVoiceHandle, int aProtect) - { - Soloud_setProtectVoice(objhandle, aVoiceHandle, aProtect); - } - - public void setSamplerate(uint aVoiceHandle, float aSamplerate) - { - Soloud_setSamplerate(objhandle, aVoiceHandle, aSamplerate); - } - - public void setPan(uint aVoiceHandle, float aPan) - { - Soloud_setPan(objhandle, aVoiceHandle, aPan); - } - - public void setPanAbsolute(uint aVoiceHandle, float aLVolume, float aRVolume) - { - Soloud_setPanAbsolute(objhandle, aVoiceHandle, aLVolume, aRVolume); - } - - public void setChannelVolume(uint aVoiceHandle, uint aChannel, float aVolume) - { - Soloud_setChannelVolume(objhandle, aVoiceHandle, aChannel, aVolume); - } - - public void setVolume(uint aVoiceHandle, float aVolume) - { - Soloud_setVolume(objhandle, aVoiceHandle, aVolume); - } - - public void setDelaySamples(uint aVoiceHandle, uint aSamples) - { - Soloud_setDelaySamples(objhandle, aVoiceHandle, aSamples); - } - - public void fadeVolume(uint aVoiceHandle, float aTo, double aTime) - { - Soloud_fadeVolume(objhandle, aVoiceHandle, aTo, aTime); - } - - public void fadePan(uint aVoiceHandle, float aTo, double aTime) - { - Soloud_fadePan(objhandle, aVoiceHandle, aTo, aTime); - } - - public void fadeRelativePlaySpeed(uint aVoiceHandle, float aTo, double aTime) - { - Soloud_fadeRelativePlaySpeed(objhandle, aVoiceHandle, aTo, aTime); - } - - public void fadeGlobalVolume(float aTo, double aTime) - { - Soloud_fadeGlobalVolume(objhandle, aTo, aTime); - } - - public void schedulePause(uint aVoiceHandle, double aTime) - { - Soloud_schedulePause(objhandle, aVoiceHandle, aTime); - } - - public void scheduleStop(uint aVoiceHandle, double aTime) - { - Soloud_scheduleStop(objhandle, aVoiceHandle, aTime); - } - - public void oscillateVolume(uint aVoiceHandle, float aFrom, float aTo, double aTime) - { - Soloud_oscillateVolume(objhandle, aVoiceHandle, aFrom, aTo, aTime); - } - - public void oscillatePan(uint aVoiceHandle, float aFrom, float aTo, double aTime) - { - Soloud_oscillatePan(objhandle, aVoiceHandle, aFrom, aTo, aTime); - } - - public void oscillateRelativePlaySpeed(uint aVoiceHandle, float aFrom, float aTo, double aTime) - { - Soloud_oscillateRelativePlaySpeed(objhandle, aVoiceHandle, aFrom, aTo, aTime); - } - - public void oscillateGlobalVolume(float aFrom, float aTo, double aTime) - { - Soloud_oscillateGlobalVolume(objhandle, aFrom, aTo, aTime); - } - - public void setGlobalFilter(uint aFilterId, SoloudObject aFilter) - { - Soloud_setGlobalFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void setVisualizationEnable(int aEnable) - { - Soloud_setVisualizationEnable(objhandle, aEnable); - } - - public float[] calcFFT() - { - return Soloud_calcFFT(objhandle); - } - - public float[] getWave() - { - return Soloud_getWave(objhandle); - } - - public float getApproximateVolume(uint aChannel) - { - return Soloud_getApproximateVolume(objhandle, aChannel); - } - - public uint getLoopCount(uint aVoiceHandle) - { - return Soloud_getLoopCount(objhandle, aVoiceHandle); - } - - public float getInfo(uint aVoiceHandle, uint aInfoKey) - { - return Soloud_getInfo(objhandle, aVoiceHandle, aInfoKey); - } - - public uint createVoiceGroup() - { - return Soloud_createVoiceGroup(objhandle); - } - - public int destroyVoiceGroup(uint aVoiceGroupHandle) - { - return Soloud_destroyVoiceGroup(objhandle, aVoiceGroupHandle); - } - - public int addVoiceToGroup(uint aVoiceGroupHandle, uint aVoiceHandle) - { - return Soloud_addVoiceToGroup(objhandle, aVoiceGroupHandle, aVoiceHandle); - } - - public int isVoiceGroup(uint aVoiceGroupHandle) - { - return Soloud_isVoiceGroup(objhandle, aVoiceGroupHandle); - } - - public int isVoiceGroupEmpty(uint aVoiceGroupHandle) - { - return Soloud_isVoiceGroupEmpty(objhandle, aVoiceGroupHandle); - } - - public void update3dAudio() - { - Soloud_update3dAudio(objhandle); - } - - public int set3dSoundSpeed(float aSpeed) - { - return Soloud_set3dSoundSpeed(objhandle, aSpeed); - } - - public float get3dSoundSpeed() - { - return Soloud_get3dSoundSpeed(objhandle); - } - - public void set3dListenerParameters(float aPosX, float aPosY, float aPosZ, float aAtX, float aAtY, float aAtZ, float aUpX, float aUpY, float aUpZ, float aVelocityX = 0.0f, float aVelocityY = 0.0f, float aVelocityZ = 0.0f) - { - Soloud_set3dListenerParametersEx(objhandle, aPosX, aPosY, aPosZ, aAtX, aAtY, aAtZ, aUpX, aUpY, aUpZ, aVelocityX, aVelocityY, aVelocityZ); - } - - public void set3dListenerPosition(float aPosX, float aPosY, float aPosZ) - { - Soloud_set3dListenerPosition(objhandle, aPosX, aPosY, aPosZ); - } - - public void set3dListenerAt(float aAtX, float aAtY, float aAtZ) - { - Soloud_set3dListenerAt(objhandle, aAtX, aAtY, aAtZ); - } - - public void set3dListenerUp(float aUpX, float aUpY, float aUpZ) - { - Soloud_set3dListenerUp(objhandle, aUpX, aUpY, aUpZ); - } - - public void set3dListenerVelocity(float aVelocityX, float aVelocityY, float aVelocityZ) - { - Soloud_set3dListenerVelocity(objhandle, aVelocityX, aVelocityY, aVelocityZ); - } - - public void set3dSourceParameters(uint aVoiceHandle, float aPosX, float aPosY, float aPosZ, float aVelocityX = 0.0f, float aVelocityY = 0.0f, float aVelocityZ = 0.0f) - { - Soloud_set3dSourceParametersEx(objhandle, aVoiceHandle, aPosX, aPosY, aPosZ, aVelocityX, aVelocityY, aVelocityZ); - } - - public void set3dSourcePosition(uint aVoiceHandle, float aPosX, float aPosY, float aPosZ) - { - Soloud_set3dSourcePosition(objhandle, aVoiceHandle, aPosX, aPosY, aPosZ); - } - - public void set3dSourceVelocity(uint aVoiceHandle, float aVelocityX, float aVelocityY, float aVelocityZ) - { - Soloud_set3dSourceVelocity(objhandle, aVoiceHandle, aVelocityX, aVelocityY, aVelocityZ); - } - - public void set3dSourceMinMaxDistance(uint aVoiceHandle, float aMinDistance, float aMaxDistance) - { - Soloud_set3dSourceMinMaxDistance(objhandle, aVoiceHandle, aMinDistance, aMaxDistance); - } - - public void set3dSourceAttenuation(uint aVoiceHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Soloud_set3dSourceAttenuation(objhandle, aVoiceHandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dSourceDopplerFactor(uint aVoiceHandle, float aDopplerFactor) - { - Soloud_set3dSourceDopplerFactor(objhandle, aVoiceHandle, aDopplerFactor); - } - - public void mix(float[] aBuffer, uint aSamples) - { - Soloud_mix(objhandle, aBuffer, aSamples); - } - - public void mixSigned16(short[] aBuffer, uint aSamples) - { - Soloud_mixSigned16(objhandle, aBuffer, aSamples); - } + nothrow @nogc: + public enum AUTO = 0; + public enum SDL1 = 1; + public enum SDL2 = 2; + public enum PORTAUDIO = 3; + public enum WINMM = 4; + public enum XAUDIO2 = 5; + public enum WASAPI = 6; + public enum ALSA = 7; + public enum JACK = 8; + public enum OSS = 9; + public enum OPENAL = 10; + public enum COREAUDIO = 11; + public enum OPENSLES = 12; + public enum VITA_HOMEBREW = 13; + public enum MINIAUDIO = 14; + public enum NOSOUND = 15; + public enum NULLDRIVER = 16; + public enum BACKEND_MAX = 17; + public enum CLIP_ROUNDOFF = 1; + public enum ENABLE_VISUALIZATION = 2; + public enum LEFT_HANDED_3D = 4; + public enum NO_FPU_REGISTER_CHANGE = 8; + public enum WAVE_SQUARE = 0; + public enum WAVE_SAW = 1; + public enum WAVE_SIN = 2; + public enum WAVE_TRIANGLE = 3; + public enum WAVE_BOUNCE = 4; + public enum WAVE_JAWS = 5; + public enum WAVE_HUMPS = 6; + public enum WAVE_FSQUARE = 7; + public enum WAVE_FSAW = 8; + public enum RESAMPLER_POINT = 0; + public enum RESAMPLER_LINEAR = 1; + public enum RESAMPLER_CATMULLROM = 2; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Soloud(SoloudObject(Soloud_create())); + } + + void free() + { + Soloud_destroy(objhandle); + } + + public int init(uint aFlags = CLIP_ROUNDOFF, uint aBackend = AUTO, uint aSamplerate = AUTO, uint aBufferSize = AUTO, uint aChannels = 2) + { + return Soloud_initEx(objhandle, aFlags, aBackend, aSamplerate, aBufferSize, aChannels); + } + + public int pause() + { + return Soloud_pause(objhandle); + } + + public int resume() + { + return Soloud_resume(objhandle); + } + + public void deinit() + { + Soloud_deinit(objhandle); + } + + public uint getVersion() + { + return Soloud_getVersion(objhandle); + } + + public const(char)* getErrorString(int aErrorCode) + { + return Soloud_getErrorString(objhandle, aErrorCode); + } + + public uint getBackendId() + { + return Soloud_getBackendId(objhandle); + } + + public const(char)* getBackendString() + { + return Soloud_getBackendString(objhandle); + } + + public uint getBackendChannels() + { + return Soloud_getBackendChannels(objhandle); + } + + public uint getBackendSamplerate() + { + return Soloud_getBackendSamplerate(objhandle); + } + + public uint getBackendBufferSize() + { + return Soloud_getBackendBufferSize(objhandle); + } + + public int setSpeakerPosition(uint aChannel, float aX, float aY, float aZ) + { + return Soloud_setSpeakerPosition(objhandle, aChannel, aX, aY, aZ); + } + + public int getSpeakerPosition(uint aChannel, float[] aX, float[] aY, float[] aZ) + { + return Soloud_getSpeakerPosition(objhandle, aChannel, aX, aY, aZ); + } + + public uint play(SoloudObject aSound, float aVolume = -1.0f, float aPan = 0.0f, int aPaused = 0, uint aBus = 0) + { + return Soloud_playEx(objhandle, aSound.objhandle, aVolume, aPan, aPaused, aBus); + } + + public uint playClocked(double aSoundTime, SoloudObject aSound, float aVolume = -1.0f, float aPan = 0.0f, uint aBus = 0) + { + return Soloud_playClockedEx(objhandle, aSoundTime, aSound.objhandle, aVolume, aPan, aBus); + } + + public uint play3d(SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, int aPaused = 0, uint aBus = 0) + { + return Soloud_play3dEx(objhandle, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aPaused, aBus); + } + + public uint play3dClocked(double aSoundTime, SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, uint aBus = 0) + { + return Soloud_play3dClockedEx(objhandle, aSoundTime, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aBus); + } + + public uint playBackground(SoloudObject aSound, float aVolume = -1.0f, int aPaused = 0, uint aBus = 0) + { + return Soloud_playBackgroundEx(objhandle, aSound.objhandle, aVolume, aPaused, aBus); + } + + public int seek(uint aVoiceHandle, double aSeconds) + { + return Soloud_seek(objhandle, aVoiceHandle, aSeconds); + } + + public void stop(uint aVoiceHandle) + { + Soloud_stop(objhandle, aVoiceHandle); + } + + public void stopAll() + { + Soloud_stopAll(objhandle); + } + + public void stopAudioSource(SoloudObject aSound) + { + Soloud_stopAudioSource(objhandle, aSound.objhandle); + } + + public int countAudioSource(SoloudObject aSound) + { + return Soloud_countAudioSource(objhandle, aSound.objhandle); + } + + public void setFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aValue) + { + Soloud_setFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aValue); + } + + public float getFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId) + { + return Soloud_getFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId); + } + + public void fadeFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aTo, double aTime) + { + Soloud_fadeFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aTo, aTime); + } + + public void oscillateFilterParameter(uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aFrom, float aTo, double aTime) + { + Soloud_oscillateFilterParameter(objhandle, aVoiceHandle, aFilterId, aAttributeId, aFrom, aTo, aTime); + } + + public double getStreamTime(uint aVoiceHandle) + { + return Soloud_getStreamTime(objhandle, aVoiceHandle); + } + + public double getStreamPosition(uint aVoiceHandle) + { + return Soloud_getStreamPosition(objhandle, aVoiceHandle); + } + + public int getPause(uint aVoiceHandle) + { + return Soloud_getPause(objhandle, aVoiceHandle); + } + + public float getVolume(uint aVoiceHandle) + { + return Soloud_getVolume(objhandle, aVoiceHandle); + } + + public float getOverallVolume(uint aVoiceHandle) + { + return Soloud_getOverallVolume(objhandle, aVoiceHandle); + } + + public float getPan(uint aVoiceHandle) + { + return Soloud_getPan(objhandle, aVoiceHandle); + } + + public float getSamplerate(uint aVoiceHandle) + { + return Soloud_getSamplerate(objhandle, aVoiceHandle); + } + + public int getProtectVoice(uint aVoiceHandle) + { + return Soloud_getProtectVoice(objhandle, aVoiceHandle); + } + + public uint getActiveVoiceCount() + { + return Soloud_getActiveVoiceCount(objhandle); + } + + public uint getVoiceCount() + { + return Soloud_getVoiceCount(objhandle); + } + + public int isValidVoiceHandle(uint aVoiceHandle) + { + return Soloud_isValidVoiceHandle(objhandle, aVoiceHandle); + } + + public float getRelativePlaySpeed(uint aVoiceHandle) + { + return Soloud_getRelativePlaySpeed(objhandle, aVoiceHandle); + } + + public float getPostClipScaler() + { + return Soloud_getPostClipScaler(objhandle); + } + + public uint getMainResampler() + { + return Soloud_getMainResampler(objhandle); + } + + public float getGlobalVolume() + { + return Soloud_getGlobalVolume(objhandle); + } + + public uint getMaxActiveVoiceCount() + { + return Soloud_getMaxActiveVoiceCount(objhandle); + } + + public int getLooping(uint aVoiceHandle) + { + return Soloud_getLooping(objhandle, aVoiceHandle); + } + + public int getAutoStop(uint aVoiceHandle) + { + return Soloud_getAutoStop(objhandle, aVoiceHandle); + } + + public double getLoopPoint(uint aVoiceHandle) + { + return Soloud_getLoopPoint(objhandle, aVoiceHandle); + } + + public void setLoopPoint(uint aVoiceHandle, double aLoopPoint) + { + Soloud_setLoopPoint(objhandle, aVoiceHandle, aLoopPoint); + } + + public void setLooping(uint aVoiceHandle, int aLooping) + { + Soloud_setLooping(objhandle, aVoiceHandle, aLooping); + } + + public void setAutoStop(uint aVoiceHandle, int aAutoStop) + { + Soloud_setAutoStop(objhandle, aVoiceHandle, aAutoStop); + } + + public int setMaxActiveVoiceCount(uint aVoiceCount) + { + return Soloud_setMaxActiveVoiceCount(objhandle, aVoiceCount); + } + + public void setInaudibleBehavior(uint aVoiceHandle, int aMustTick, int aKill) + { + Soloud_setInaudibleBehavior(objhandle, aVoiceHandle, aMustTick, aKill); + } + + public void setGlobalVolume(float aVolume) + { + Soloud_setGlobalVolume(objhandle, aVolume); + } + + public void setPostClipScaler(float aScaler) + { + Soloud_setPostClipScaler(objhandle, aScaler); + } + + public void setMainResampler(uint aResampler) + { + Soloud_setMainResampler(objhandle, aResampler); + } + + public void setPause(uint aVoiceHandle, int aPause) + { + Soloud_setPause(objhandle, aVoiceHandle, aPause); + } + + public void setPauseAll(int aPause) + { + Soloud_setPauseAll(objhandle, aPause); + } + + public int setRelativePlaySpeed(uint aVoiceHandle, float aSpeed) + { + return Soloud_setRelativePlaySpeed(objhandle, aVoiceHandle, aSpeed); + } + + public void setProtectVoice(uint aVoiceHandle, int aProtect) + { + Soloud_setProtectVoice(objhandle, aVoiceHandle, aProtect); + } + + public void setSamplerate(uint aVoiceHandle, float aSamplerate) + { + Soloud_setSamplerate(objhandle, aVoiceHandle, aSamplerate); + } + + public void setPan(uint aVoiceHandle, float aPan) + { + Soloud_setPan(objhandle, aVoiceHandle, aPan); + } + + public void setPanAbsolute(uint aVoiceHandle, float aLVolume, float aRVolume) + { + Soloud_setPanAbsolute(objhandle, aVoiceHandle, aLVolume, aRVolume); + } + + public void setChannelVolume(uint aVoiceHandle, uint aChannel, float aVolume) + { + Soloud_setChannelVolume(objhandle, aVoiceHandle, aChannel, aVolume); + } + + public void setVolume(uint aVoiceHandle, float aVolume) + { + Soloud_setVolume(objhandle, aVoiceHandle, aVolume); + } + + public void setDelaySamples(uint aVoiceHandle, uint aSamples) + { + Soloud_setDelaySamples(objhandle, aVoiceHandle, aSamples); + } + + public void fadeVolume(uint aVoiceHandle, float aTo, double aTime) + { + Soloud_fadeVolume(objhandle, aVoiceHandle, aTo, aTime); + } + + public void fadePan(uint aVoiceHandle, float aTo, double aTime) + { + Soloud_fadePan(objhandle, aVoiceHandle, aTo, aTime); + } + + public void fadeRelativePlaySpeed(uint aVoiceHandle, float aTo, double aTime) + { + Soloud_fadeRelativePlaySpeed(objhandle, aVoiceHandle, aTo, aTime); + } + + public void fadeGlobalVolume(float aTo, double aTime) + { + Soloud_fadeGlobalVolume(objhandle, aTo, aTime); + } + + public void schedulePause(uint aVoiceHandle, double aTime) + { + Soloud_schedulePause(objhandle, aVoiceHandle, aTime); + } + + public void scheduleStop(uint aVoiceHandle, double aTime) + { + Soloud_scheduleStop(objhandle, aVoiceHandle, aTime); + } + + public void oscillateVolume(uint aVoiceHandle, float aFrom, float aTo, double aTime) + { + Soloud_oscillateVolume(objhandle, aVoiceHandle, aFrom, aTo, aTime); + } + + public void oscillatePan(uint aVoiceHandle, float aFrom, float aTo, double aTime) + { + Soloud_oscillatePan(objhandle, aVoiceHandle, aFrom, aTo, aTime); + } + + public void oscillateRelativePlaySpeed(uint aVoiceHandle, float aFrom, float aTo, double aTime) + { + Soloud_oscillateRelativePlaySpeed(objhandle, aVoiceHandle, aFrom, aTo, aTime); + } + + public void oscillateGlobalVolume(float aFrom, float aTo, double aTime) + { + Soloud_oscillateGlobalVolume(objhandle, aFrom, aTo, aTime); + } + + public void setGlobalFilter(uint aFilterId, SoloudObject aFilter) + { + Soloud_setGlobalFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void setVisualizationEnable(int aEnable) + { + Soloud_setVisualizationEnable(objhandle, aEnable); + } + + public float[] calcFFT() + { + return Soloud_calcFFT(objhandle); + } + + public float[] getWave() + { + return Soloud_getWave(objhandle); + } + + public float getApproximateVolume(uint aChannel) + { + return Soloud_getApproximateVolume(objhandle, aChannel); + } + + public uint getLoopCount(uint aVoiceHandle) + { + return Soloud_getLoopCount(objhandle, aVoiceHandle); + } + + public float getInfo(uint aVoiceHandle, uint aInfoKey) + { + return Soloud_getInfo(objhandle, aVoiceHandle, aInfoKey); + } + + public uint createVoiceGroup() + { + return Soloud_createVoiceGroup(objhandle); + } + + public int destroyVoiceGroup(uint aVoiceGroupHandle) + { + return Soloud_destroyVoiceGroup(objhandle, aVoiceGroupHandle); + } + + public int addVoiceToGroup(uint aVoiceGroupHandle, uint aVoiceHandle) + { + return Soloud_addVoiceToGroup(objhandle, aVoiceGroupHandle, aVoiceHandle); + } + + public int isVoiceGroup(uint aVoiceGroupHandle) + { + return Soloud_isVoiceGroup(objhandle, aVoiceGroupHandle); + } + + public int isVoiceGroupEmpty(uint aVoiceGroupHandle) + { + return Soloud_isVoiceGroupEmpty(objhandle, aVoiceGroupHandle); + } + + public void update3dAudio() + { + Soloud_update3dAudio(objhandle); + } + + public int set3dSoundSpeed(float aSpeed) + { + return Soloud_set3dSoundSpeed(objhandle, aSpeed); + } + + public float get3dSoundSpeed() + { + return Soloud_get3dSoundSpeed(objhandle); + } + + public void set3dListenerParameters(float aPosX, float aPosY, float aPosZ, float aAtX, float aAtY, float aAtZ, float aUpX, float aUpY, float aUpZ, float aVelocityX = 0.0f, float aVelocityY = 0.0f, float aVelocityZ = 0.0f) + { + Soloud_set3dListenerParametersEx(objhandle, aPosX, aPosY, aPosZ, aAtX, aAtY, aAtZ, aUpX, aUpY, aUpZ, aVelocityX, aVelocityY, aVelocityZ); + } + + public void set3dListenerPosition(float aPosX, float aPosY, float aPosZ) + { + Soloud_set3dListenerPosition(objhandle, aPosX, aPosY, aPosZ); + } + + public void set3dListenerAt(float aAtX, float aAtY, float aAtZ) + { + Soloud_set3dListenerAt(objhandle, aAtX, aAtY, aAtZ); + } + + public void set3dListenerUp(float aUpX, float aUpY, float aUpZ) + { + Soloud_set3dListenerUp(objhandle, aUpX, aUpY, aUpZ); + } + + public void set3dListenerVelocity(float aVelocityX, float aVelocityY, float aVelocityZ) + { + Soloud_set3dListenerVelocity(objhandle, aVelocityX, aVelocityY, aVelocityZ); + } + + public void set3dSourceParameters(uint aVoiceHandle, float aPosX, float aPosY, float aPosZ, float aVelocityX = 0.0f, float aVelocityY = 0.0f, float aVelocityZ = 0.0f) + { + Soloud_set3dSourceParametersEx(objhandle, aVoiceHandle, aPosX, aPosY, aPosZ, aVelocityX, aVelocityY, aVelocityZ); + } + + public void set3dSourcePosition(uint aVoiceHandle, float aPosX, float aPosY, float aPosZ) + { + Soloud_set3dSourcePosition(objhandle, aVoiceHandle, aPosX, aPosY, aPosZ); + } + + public void set3dSourceVelocity(uint aVoiceHandle, float aVelocityX, float aVelocityY, float aVelocityZ) + { + Soloud_set3dSourceVelocity(objhandle, aVoiceHandle, aVelocityX, aVelocityY, aVelocityZ); + } + + public void set3dSourceMinMaxDistance(uint aVoiceHandle, float aMinDistance, float aMaxDistance) + { + Soloud_set3dSourceMinMaxDistance(objhandle, aVoiceHandle, aMinDistance, aMaxDistance); + } + + public void set3dSourceAttenuation(uint aVoiceHandle, uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Soloud_set3dSourceAttenuation(objhandle, aVoiceHandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dSourceDopplerFactor(uint aVoiceHandle, float aDopplerFactor) + { + Soloud_set3dSourceDopplerFactor(objhandle, aVoiceHandle, aDopplerFactor); + } + + public void mix(float[] aBuffer, uint aSamples) + { + Soloud_mix(objhandle, aBuffer, aSamples); + } + + public void mixSigned16(short[] aBuffer, uint aSamples) + { + Soloud_mixSigned16(objhandle, aBuffer, aSamples); + } } public struct Ay { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Ay(SoloudObject(Ay_create())); - } - - ~this() - { - Ay_destroy(objhandle); - } - - public void setVolume(float aVolume) - { - Ay_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Ay_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Ay_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Ay_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Ay_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Ay_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Ay_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Ay_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Ay_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Ay_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Ay_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Ay_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Ay_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Ay_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Ay_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Ay(SoloudObject(Ay_create())); + } + + void free() + { + Ay_destroy(objhandle); + } + + public void setVolume(float aVolume) + { + Ay_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Ay_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Ay_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Ay_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Ay_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Ay_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Ay_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Ay_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Ay_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Ay_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Ay_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Ay_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Ay_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Ay_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Ay_stop(objhandle); + } } public struct BassboostFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum BOOST = 1; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return BassboostFilter(SoloudObject(BassboostFilter_create())); - } - - ~this() - { - BassboostFilter_destroy(objhandle); - } - - public int getParamCount() - { - return BassboostFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return BassboostFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return BassboostFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return BassboostFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return BassboostFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(float aBoost) - { - return BassboostFilter_setParams(objhandle, aBoost); - } + nothrow @nogc: + public enum WET = 0; + public enum BOOST = 1; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return BassboostFilter(SoloudObject(BassboostFilter_create())); + } + + void free() + { + BassboostFilter_destroy(objhandle); + } + + public int getParamCount() + { + return BassboostFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return BassboostFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return BassboostFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return BassboostFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return BassboostFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(float aBoost) + { + return BassboostFilter_setParams(objhandle, aBoost); + } } public struct BiquadResonantFilter { -pure @safe nothrow @nogc: - public enum LOWPASS = 0; - public enum HIGHPASS = 1; - public enum BANDPASS = 2; - public enum WET = 0; - public enum TYPE = 1; - public enum FREQUENCY = 2; - public enum RESONANCE = 3; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return BiquadResonantFilter(SoloudObject(BiquadResonantFilter_create())); - } - - ~this() - { - BiquadResonantFilter_destroy(objhandle); - } - - public int getParamCount() - { - return BiquadResonantFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return BiquadResonantFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return BiquadResonantFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return BiquadResonantFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return BiquadResonantFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(int aType, float aFrequency, float aResonance) - { - return BiquadResonantFilter_setParams(objhandle, aType, aFrequency, aResonance); - } + nothrow @nogc: + public enum LOWPASS = 0; + public enum HIGHPASS = 1; + public enum BANDPASS = 2; + public enum WET = 0; + public enum TYPE = 1; + public enum FREQUENCY = 2; + public enum RESONANCE = 3; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return BiquadResonantFilter(SoloudObject(BiquadResonantFilter_create())); + } + + void free() + { + BiquadResonantFilter_destroy(objhandle); + } + + public int getParamCount() + { + return BiquadResonantFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return BiquadResonantFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return BiquadResonantFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return BiquadResonantFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return BiquadResonantFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(int aType, float aFrequency, float aResonance) + { + return BiquadResonantFilter_setParams(objhandle, aType, aFrequency, aResonance); + } } public struct Bus { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Bus(SoloudObject(Bus_create())); - } - - ~this() - { - Bus_destroy(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Bus_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public uint play(SoloudObject aSound, float aVolume = 1.0f, float aPan = 0.0f, int aPaused = 0) - { - return Bus_playEx(objhandle, aSound.objhandle, aVolume, aPan, aPaused); - } - - public uint playClocked(double aSoundTime, SoloudObject aSound, float aVolume = 1.0f, float aPan = 0.0f) - { - return Bus_playClockedEx(objhandle, aSoundTime, aSound.objhandle, aVolume, aPan); - } - - public uint play3d(SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, int aPaused = 0) - { - return Bus_play3dEx(objhandle, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aPaused); - } - - public uint play3dClocked(double aSoundTime, SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f) - { - return Bus_play3dClockedEx(objhandle, aSoundTime, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume); - } - - public int setChannels(uint aChannels) - { - return Bus_setChannels(objhandle, aChannels); - } - - public void setVisualizationEnable(int aEnable) - { - Bus_setVisualizationEnable(objhandle, aEnable); - } - - public void annexSound(uint aVoiceHandle) - { - Bus_annexSound(objhandle, aVoiceHandle); - } - - public float[] calcFFT() - { - return Bus_calcFFT(objhandle); - } - - public float[] getWave() - { - return Bus_getWave(objhandle); - } - - public float getApproximateVolume(uint aChannel) - { - return Bus_getApproximateVolume(objhandle, aChannel); - } - - public uint getActiveVoiceCount() - { - return Bus_getActiveVoiceCount(objhandle); - } - - public uint getResampler() - { - return Bus_getResampler(objhandle); - } - - public void setResampler(uint aResampler) - { - Bus_setResampler(objhandle, aResampler); - } - - public void setVolume(float aVolume) - { - Bus_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Bus_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Bus_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Bus_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Bus_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Bus_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Bus_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Bus_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Bus_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Bus_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Bus_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Bus_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Bus_getLoopPoint(objhandle); - } - - public void stop() - { - Bus_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Bus(SoloudObject(Bus_create())); + } + + void free() + { + Bus_destroy(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Bus_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public uint play(SoloudObject aSound, float aVolume = 1.0f, float aPan = 0.0f, int aPaused = 0) + { + return Bus_playEx(objhandle, aSound.objhandle, aVolume, aPan, aPaused); + } + + public uint playClocked(double aSoundTime, SoloudObject aSound, float aVolume = 1.0f, float aPan = 0.0f) + { + return Bus_playClockedEx(objhandle, aSoundTime, aSound.objhandle, aVolume, aPan); + } + + public uint play3d(SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f, int aPaused = 0) + { + return Bus_play3dEx(objhandle, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume, aPaused); + } + + public uint play3dClocked(double aSoundTime, SoloudObject aSound, float aPosX, float aPosY, float aPosZ, float aVelX = 0.0f, float aVelY = 0.0f, float aVelZ = 0.0f, float aVolume = 1.0f) + { + return Bus_play3dClockedEx(objhandle, aSoundTime, aSound.objhandle, aPosX, aPosY, aPosZ, aVelX, aVelY, aVelZ, aVolume); + } + + public int setChannels(uint aChannels) + { + return Bus_setChannels(objhandle, aChannels); + } + + public void setVisualizationEnable(int aEnable) + { + Bus_setVisualizationEnable(objhandle, aEnable); + } + + public void annexSound(uint aVoiceHandle) + { + Bus_annexSound(objhandle, aVoiceHandle); + } + + public float[] calcFFT() + { + return Bus_calcFFT(objhandle); + } + + public float[] getWave() + { + return Bus_getWave(objhandle); + } + + public float getApproximateVolume(uint aChannel) + { + return Bus_getApproximateVolume(objhandle, aChannel); + } + + public uint getActiveVoiceCount() + { + return Bus_getActiveVoiceCount(objhandle); + } + + public uint getResampler() + { + return Bus_getResampler(objhandle); + } + + public void setResampler(uint aResampler) + { + Bus_setResampler(objhandle, aResampler); + } + + public void setVolume(float aVolume) + { + Bus_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Bus_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Bus_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Bus_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Bus_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Bus_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Bus_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Bus_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Bus_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Bus_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Bus_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Bus_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Bus_getLoopPoint(objhandle); + } + + public void stop() + { + Bus_stop(objhandle); + } } public struct DCRemovalFilter { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return DCRemovalFilter(SoloudObject(DCRemovalFilter_create())); - } - - ~this() - { - DCRemovalFilter_destroy(objhandle); - } - - public int setParams(float aLength = 0.1f) - { - return DCRemovalFilter_setParamsEx(objhandle, aLength); - } - - public int getParamCount() - { - return DCRemovalFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return DCRemovalFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return DCRemovalFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return DCRemovalFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return DCRemovalFilter_getParamMin(objhandle, aParamIndex); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return DCRemovalFilter(SoloudObject(DCRemovalFilter_create())); + } + + void free() + { + DCRemovalFilter_destroy(objhandle); + } + + public int setParams(float aLength = 0.1f) + { + return DCRemovalFilter_setParamsEx(objhandle, aLength); + } + + public int getParamCount() + { + return DCRemovalFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return DCRemovalFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return DCRemovalFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return DCRemovalFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return DCRemovalFilter_getParamMin(objhandle, aParamIndex); + } } public struct EchoFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum DELAY = 1; - public enum DECAY = 2; - public enum FILTER = 3; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return EchoFilter(SoloudObject(EchoFilter_create())); - } - - ~this() - { - EchoFilter_destroy(objhandle); - } - - public int getParamCount() - { - return EchoFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return EchoFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return EchoFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return EchoFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return EchoFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(float aDelay, float aDecay = 0.7f, float aFilter = 0.0f) - { - return EchoFilter_setParamsEx(objhandle, aDelay, aDecay, aFilter); - } + nothrow @nogc: + public enum WET = 0; + public enum DELAY = 1; + public enum DECAY = 2; + public enum FILTER = 3; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return EchoFilter(SoloudObject(EchoFilter_create())); + } + + void free() + { + EchoFilter_destroy(objhandle); + } + + public int getParamCount() + { + return EchoFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return EchoFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return EchoFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return EchoFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return EchoFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(float aDelay, float aDecay = 0.7f, float aFilter = 0.0f) + { + return EchoFilter_setParamsEx(objhandle, aDelay, aDecay, aFilter); + } } public struct FFTFilter { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return FFTFilter(SoloudObject(FFTFilter_create())); - } - - ~this() - { - FFTFilter_destroy(objhandle); - } - - public int getParamCount() - { - return FFTFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return FFTFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return FFTFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return FFTFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return FFTFilter_getParamMin(objhandle, aParamIndex); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return FFTFilter(SoloudObject(FFTFilter_create())); + } + + void free() + { + FFTFilter_destroy(objhandle); + } + + public int getParamCount() + { + return FFTFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return FFTFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return FFTFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return FFTFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return FFTFilter_getParamMin(objhandle, aParamIndex); + } } public struct FlangerFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum DELAY = 1; - public enum FREQ = 2; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return FlangerFilter(SoloudObject(FlangerFilter_create())); - } - - ~this() - { - FlangerFilter_destroy(objhandle); - } - - public int getParamCount() - { - return FlangerFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return FlangerFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return FlangerFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return FlangerFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return FlangerFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(float aDelay, float aFreq) - { - return FlangerFilter_setParams(objhandle, aDelay, aFreq); - } + nothrow @nogc: + public enum WET = 0; + public enum DELAY = 1; + public enum FREQ = 2; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return FlangerFilter(SoloudObject(FlangerFilter_create())); + } + + void free() + { + FlangerFilter_destroy(objhandle); + } + + public int getParamCount() + { + return FlangerFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return FlangerFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return FlangerFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return FlangerFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return FlangerFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(float aDelay, float aFreq) + { + return FlangerFilter_setParams(objhandle, aDelay, aFreq); + } } public struct FreeverbFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum FREEZE = 1; - public enum ROOMSIZE = 2; - public enum DAMP = 3; - public enum WIDTH = 4; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return FreeverbFilter(SoloudObject(FreeverbFilter_create())); - } - - ~this() - { - FreeverbFilter_destroy(objhandle); - } - - public int getParamCount() - { - return FreeverbFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return FreeverbFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return FreeverbFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return FreeverbFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return FreeverbFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(float aMode, float aRoomSize, float aDamp, float aWidth) - { - return FreeverbFilter_setParams(objhandle, aMode, aRoomSize, aDamp, aWidth); - } + nothrow @nogc: + public enum WET = 0; + public enum FREEZE = 1; + public enum ROOMSIZE = 2; + public enum DAMP = 3; + public enum WIDTH = 4; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return FreeverbFilter(SoloudObject(FreeverbFilter_create())); + } + + void free() + { + FreeverbFilter_destroy(objhandle); + } + + public int getParamCount() + { + return FreeverbFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return FreeverbFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return FreeverbFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return FreeverbFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return FreeverbFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(float aMode, float aRoomSize, float aDamp, float aWidth) + { + return FreeverbFilter_setParams(objhandle, aMode, aRoomSize, aDamp, aWidth); + } } public struct LofiFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum SAMPLERATE = 1; - public enum BITDEPTH = 2; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return LofiFilter(SoloudObject(LofiFilter_create())); - } - - ~this() - { - LofiFilter_destroy(objhandle); - } - - public int getParamCount() - { - return LofiFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return LofiFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return LofiFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return LofiFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return LofiFilter_getParamMin(objhandle, aParamIndex); - } - - public int setParams(float aSampleRate, float aBitdepth) - { - return LofiFilter_setParams(objhandle, aSampleRate, aBitdepth); - } + nothrow @nogc: + public enum WET = 0; + public enum SAMPLERATE = 1; + public enum BITDEPTH = 2; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return LofiFilter(SoloudObject(LofiFilter_create())); + } + + void free() + { + LofiFilter_destroy(objhandle); + } + + public int getParamCount() + { + return LofiFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return LofiFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return LofiFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return LofiFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return LofiFilter_getParamMin(objhandle, aParamIndex); + } + + public int setParams(float aSampleRate, float aBitdepth) + { + return LofiFilter_setParams(objhandle, aSampleRate, aBitdepth); + } } public struct Monotone { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Monotone(SoloudObject(Monotone_create())); - } - - ~this() - { - Monotone_destroy(objhandle); - } - - public int setParams(int aHardwareChannels, int aWaveform = Soloud.WAVE_SQUARE) - { - return Monotone_setParamsEx(objhandle, aHardwareChannels, aWaveform); - } - - public int load(const(char)* aFilename) - { - return Monotone_load(objhandle, aFilename); - } - - public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) - { - return Monotone_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); - } - - public int loadFile(SoloudObject aFile) - { - return Monotone_loadFile(objhandle, aFile.objhandle); - } - - public void setVolume(float aVolume) - { - Monotone_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Monotone_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Monotone_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Monotone_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Monotone_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Monotone_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Monotone_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Monotone_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Monotone_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Monotone_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Monotone_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Monotone_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Monotone_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Monotone_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Monotone_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Monotone(SoloudObject(Monotone_create())); + } + + void free() + { + Monotone_destroy(objhandle); + } + + public int setParams(int aHardwareChannels, int aWaveform = Soloud.WAVE_SQUARE) + { + return Monotone_setParamsEx(objhandle, aHardwareChannels, aWaveform); + } + + public int load(const(char)* aFilename) + { + return Monotone_load(objhandle, aFilename); + } + + public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) + { + return Monotone_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); + } + + public int loadFile(SoloudObject aFile) + { + return Monotone_loadFile(objhandle, aFile.objhandle); + } + + public void setVolume(float aVolume) + { + Monotone_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Monotone_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Monotone_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Monotone_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Monotone_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Monotone_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Monotone_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Monotone_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Monotone_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Monotone_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Monotone_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Monotone_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Monotone_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Monotone_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Monotone_stop(objhandle); + } } public struct Noise { -pure @safe nothrow @nogc: - public enum WHITE = 0; - public enum PINK = 1; - public enum BROWNISH = 2; - public enum BLUEISH = 3; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Noise(SoloudObject(Noise_create())); - } - - ~this() - { - Noise_destroy(objhandle); - } - - public void setOctaveScale(float aOct0, float aOct1, float aOct2, float aOct3, float aOct4, float aOct5, float aOct6, float aOct7, float aOct8, float aOct9) - { - Noise_setOctaveScale(objhandle, aOct0, aOct1, aOct2, aOct3, aOct4, aOct5, aOct6, aOct7, aOct8, aOct9); - } - - public void setType(int aType) - { - Noise_setType(objhandle, aType); - } - - public void setVolume(float aVolume) - { - Noise_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Noise_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Noise_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Noise_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Noise_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Noise_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Noise_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Noise_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Noise_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Noise_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Noise_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Noise_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Noise_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Noise_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Noise_stop(objhandle); - } + nothrow @nogc: + public enum WHITE = 0; + public enum PINK = 1; + public enum BROWNISH = 2; + public enum BLUEISH = 3; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Noise(SoloudObject(Noise_create())); + } + + void free() + { + Noise_destroy(objhandle); + } + + public void setOctaveScale(float aOct0, float aOct1, float aOct2, float aOct3, float aOct4, float aOct5, float aOct6, float aOct7, float aOct8, float aOct9) + { + Noise_setOctaveScale(objhandle, aOct0, aOct1, aOct2, aOct3, aOct4, aOct5, aOct6, aOct7, aOct8, aOct9); + } + + public void setType(int aType) + { + Noise_setType(objhandle, aType); + } + + public void setVolume(float aVolume) + { + Noise_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Noise_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Noise_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Noise_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Noise_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Noise_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Noise_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Noise_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Noise_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Noise_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Noise_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Noise_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Noise_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Noise_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Noise_stop(objhandle); + } } public struct Openmpt { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Openmpt(SoloudObject(Openmpt_create())); - } - - ~this() - { - Openmpt_destroy(objhandle); - } - - public int load(const(char)* aFilename) - { - return Openmpt_load(objhandle, aFilename); - } - - public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) - { - return Openmpt_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); - } - - public int loadFile(SoloudObject aFile) - { - return Openmpt_loadFile(objhandle, aFile.objhandle); - } - - public void setVolume(float aVolume) - { - Openmpt_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Openmpt_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Openmpt_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Openmpt_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Openmpt_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Openmpt_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Openmpt_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Openmpt_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Openmpt_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Openmpt_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Openmpt_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Openmpt_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Openmpt_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Openmpt_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Openmpt_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Openmpt(SoloudObject(Openmpt_create())); + } + + void free() + { + Openmpt_destroy(objhandle); + } + + public int load(const(char)* aFilename) + { + return Openmpt_load(objhandle, aFilename); + } + + public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) + { + return Openmpt_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); + } + + public int loadFile(SoloudObject aFile) + { + return Openmpt_loadFile(objhandle, aFile.objhandle); + } + + public void setVolume(float aVolume) + { + Openmpt_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Openmpt_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Openmpt_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Openmpt_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Openmpt_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Openmpt_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Openmpt_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Openmpt_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Openmpt_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Openmpt_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Openmpt_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Openmpt_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Openmpt_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Openmpt_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Openmpt_stop(objhandle); + } } public struct Queue { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Queue(SoloudObject(Queue_create())); - } - - ~this() - { - Queue_destroy(objhandle); - } - - public int play(SoloudObject aSound) - { - return Queue_play(objhandle, aSound.objhandle); - } - - public uint getQueueCount() - { - return Queue_getQueueCount(objhandle); - } - - public int isCurrentlyPlaying(SoloudObject aSound) - { - return Queue_isCurrentlyPlaying(objhandle, aSound.objhandle); - } - - public int setParamsFromAudioSource(SoloudObject aSound) - { - return Queue_setParamsFromAudioSource(objhandle, aSound.objhandle); - } - - public int setParams(float aSamplerate, uint aChannels = 2) - { - return Queue_setParamsEx(objhandle, aSamplerate, aChannels); - } - - public void setVolume(float aVolume) - { - Queue_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Queue_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Queue_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Queue_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Queue_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Queue_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Queue_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Queue_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Queue_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Queue_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Queue_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Queue_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Queue_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Queue_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Queue_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Queue(SoloudObject(Queue_create())); + } + + void free() + { + Queue_destroy(objhandle); + } + + public int play(SoloudObject aSound) + { + return Queue_play(objhandle, aSound.objhandle); + } + + public uint getQueueCount() + { + return Queue_getQueueCount(objhandle); + } + + public int isCurrentlyPlaying(SoloudObject aSound) + { + return Queue_isCurrentlyPlaying(objhandle, aSound.objhandle); + } + + public int setParamsFromAudioSource(SoloudObject aSound) + { + return Queue_setParamsFromAudioSource(objhandle, aSound.objhandle); + } + + public int setParams(float aSamplerate, uint aChannels = 2) + { + return Queue_setParamsEx(objhandle, aSamplerate, aChannels); + } + + public void setVolume(float aVolume) + { + Queue_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Queue_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Queue_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Queue_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Queue_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Queue_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Queue_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Queue_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Queue_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Queue_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Queue_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Queue_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Queue_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Queue_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Queue_stop(objhandle); + } } public struct RobotizeFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum FREQ = 1; - public enum WAVE = 2; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return RobotizeFilter(SoloudObject(RobotizeFilter_create())); - } - - ~this() - { - RobotizeFilter_destroy(objhandle); - } - - public int getParamCount() - { - return RobotizeFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return RobotizeFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return RobotizeFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return RobotizeFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return RobotizeFilter_getParamMin(objhandle, aParamIndex); - } - - public void setParams(float aFreq, int aWaveform) - { - RobotizeFilter_setParams(objhandle, aFreq, aWaveform); - } + nothrow @nogc: + public enum WET = 0; + public enum FREQ = 1; + public enum WAVE = 2; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return RobotizeFilter(SoloudObject(RobotizeFilter_create())); + } + + void free() + { + RobotizeFilter_destroy(objhandle); + } + + public int getParamCount() + { + return RobotizeFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return RobotizeFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return RobotizeFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return RobotizeFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return RobotizeFilter_getParamMin(objhandle, aParamIndex); + } + + public void setParams(float aFreq, int aWaveform) + { + RobotizeFilter_setParams(objhandle, aFreq, aWaveform); + } } public struct Sfxr { -pure @safe nothrow @nogc: - public enum COIN = 0; - public enum LASER = 1; - public enum EXPLOSION = 2; - public enum POWERUP = 3; - public enum HURT = 4; - public enum JUMP = 5; - public enum BLIP = 6; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Sfxr(SoloudObject(Sfxr_create())); - } - - ~this() - { - Sfxr_destroy(objhandle); - } - - public void resetParams() - { - Sfxr_resetParams(objhandle); - } - - public int loadParams(const(char)* aFilename) - { - return Sfxr_loadParams(objhandle, aFilename); - } - - public int loadParamsMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) - { - return Sfxr_loadParamsMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); - } - - public int loadParamsFile(SoloudObject aFile) - { - return Sfxr_loadParamsFile(objhandle, aFile.objhandle); - } - - public int loadPreset(int aPresetNo, int aRandSeed) - { - return Sfxr_loadPreset(objhandle, aPresetNo, aRandSeed); - } - - public void setVolume(float aVolume) - { - Sfxr_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Sfxr_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Sfxr_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Sfxr_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Sfxr_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Sfxr_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Sfxr_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Sfxr_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Sfxr_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Sfxr_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Sfxr_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Sfxr_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Sfxr_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Sfxr_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Sfxr_stop(objhandle); - } + nothrow @nogc: + public enum COIN = 0; + public enum LASER = 1; + public enum EXPLOSION = 2; + public enum POWERUP = 3; + public enum HURT = 4; + public enum JUMP = 5; + public enum BLIP = 6; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Sfxr(SoloudObject(Sfxr_create())); + } + + void free() + { + Sfxr_destroy(objhandle); + } + + public void resetParams() + { + Sfxr_resetParams(objhandle); + } + + public int loadParams(const(char)* aFilename) + { + return Sfxr_loadParams(objhandle, aFilename); + } + + public int loadParamsMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) + { + return Sfxr_loadParamsMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); + } + + public int loadParamsFile(SoloudObject aFile) + { + return Sfxr_loadParamsFile(objhandle, aFile.objhandle); + } + + public int loadPreset(int aPresetNo, int aRandSeed) + { + return Sfxr_loadPreset(objhandle, aPresetNo, aRandSeed); + } + + public void setVolume(float aVolume) + { + Sfxr_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Sfxr_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Sfxr_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Sfxr_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Sfxr_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Sfxr_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Sfxr_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Sfxr_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Sfxr_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Sfxr_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Sfxr_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Sfxr_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Sfxr_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Sfxr_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Sfxr_stop(objhandle); + } } public struct Speech { -pure @safe nothrow @nogc: - public enum KW_SAW = 0; - public enum KW_TRIANGLE = 1; - public enum KW_SIN = 2; - public enum KW_SQUARE = 3; - public enum KW_PULSE = 4; - public enum KW_NOISE = 5; - public enum KW_WARBLE = 6; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Speech(SoloudObject(Speech_create())); - } - - ~this() - { - Speech_destroy(objhandle); - } - - public int setText(const(char)* aText) - { - return Speech_setText(objhandle, aText); - } - - public int setParams(uint aBaseFrequency = 1330, float aBaseSpeed = 10.0f, float aBaseDeclination = 0.5f, int aBaseWaveform = KW_TRIANGLE) - { - return Speech_setParamsEx(objhandle, aBaseFrequency, aBaseSpeed, aBaseDeclination, aBaseWaveform); - } - - public void setVolume(float aVolume) - { - Speech_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Speech_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Speech_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Speech_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Speech_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Speech_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Speech_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Speech_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Speech_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Speech_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Speech_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Speech_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Speech_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Speech_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Speech_stop(objhandle); - } + nothrow @nogc: + public enum KW_SAW = 0; + public enum KW_TRIANGLE = 1; + public enum KW_SIN = 2; + public enum KW_SQUARE = 3; + public enum KW_PULSE = 4; + public enum KW_NOISE = 5; + public enum KW_WARBLE = 6; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Speech(SoloudObject(Speech_create())); + } + + void free() + { + Speech_destroy(objhandle); + } + + public int setText(const(char)* aText) + { + return Speech_setText(objhandle, aText); + } + + public int setParams(uint aBaseFrequency = 1330, float aBaseSpeed = 10.0f, float aBaseDeclination = 0.5f, int aBaseWaveform = KW_TRIANGLE) + { + return Speech_setParamsEx(objhandle, aBaseFrequency, aBaseSpeed, aBaseDeclination, aBaseWaveform); + } + + public void setVolume(float aVolume) + { + Speech_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Speech_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Speech_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Speech_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Speech_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Speech_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Speech_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Speech_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Speech_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Speech_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Speech_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Speech_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Speech_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Speech_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Speech_stop(objhandle); + } } public struct TedSid { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return TedSid(SoloudObject(TedSid_create())); - } - - ~this() - { - TedSid_destroy(objhandle); - } - - public int load(const(char)* aFilename) - { - return TedSid_load(objhandle, aFilename); - } - - public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) - { - return TedSid_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); - } - - public int loadFile(SoloudObject aFile) - { - return TedSid_loadFile(objhandle, aFile.objhandle); - } - - public void setVolume(float aVolume) - { - TedSid_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - TedSid_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - TedSid_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - TedSid_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - TedSid_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - TedSid_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - TedSid_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - TedSid_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - TedSid_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - TedSid_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - TedSid_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - TedSid_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return TedSid_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - TedSid_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - TedSid_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return TedSid(SoloudObject(TedSid_create())); + } + + void free() + { + TedSid_destroy(objhandle); + } + + public int load(const(char)* aFilename) + { + return TedSid_load(objhandle, aFilename); + } + + public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) + { + return TedSid_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); + } + + public int loadFile(SoloudObject aFile) + { + return TedSid_loadFile(objhandle, aFile.objhandle); + } + + public void setVolume(float aVolume) + { + TedSid_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + TedSid_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + TedSid_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + TedSid_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + TedSid_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + TedSid_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + TedSid_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + TedSid_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + TedSid_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + TedSid_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + TedSid_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + TedSid_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return TedSid_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + TedSid_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + TedSid_stop(objhandle); + } } public struct Vic { -pure @safe nothrow @nogc: - public enum PAL = 0; - public enum NTSC = 1; - public enum BASS = 0; - public enum ALTO = 1; - public enum SOPRANO = 2; - public enum NOISE = 3; - public enum MAX_REGS = 4; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Vic(SoloudObject(Vic_create())); - } - - ~this() - { - Vic_destroy(objhandle); - } - - public void setModel(int model) - { - Vic_setModel(objhandle, model); - } - - public int getModel() - { - return Vic_getModel(objhandle); - } - - public void setRegister(int reg, ubyte value) - { - Vic_setRegister(objhandle, reg, value); - } - - public ubyte getRegister(int reg) - { - return Vic_getRegister(objhandle, reg); - } - - public void setVolume(float aVolume) - { - Vic_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Vic_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Vic_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Vic_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Vic_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Vic_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Vic_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Vic_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Vic_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Vic_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Vic_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Vic_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Vic_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Vic_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Vic_stop(objhandle); - } + nothrow @nogc: + public enum PAL = 0; + public enum NTSC = 1; + public enum BASS = 0; + public enum ALTO = 1; + public enum SOPRANO = 2; + public enum NOISE = 3; + public enum MAX_REGS = 4; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Vic(SoloudObject(Vic_create())); + } + + void free() + { + Vic_destroy(objhandle); + } + + public void setModel(int model) + { + Vic_setModel(objhandle, model); + } + + public int getModel() + { + return Vic_getModel(objhandle); + } + + public void setRegister(int reg, ubyte value) + { + Vic_setRegister(objhandle, reg, value); + } + + public ubyte getRegister(int reg) + { + return Vic_getRegister(objhandle, reg); + } + + public void setVolume(float aVolume) + { + Vic_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Vic_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Vic_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Vic_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Vic_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Vic_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Vic_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Vic_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Vic_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Vic_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Vic_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Vic_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Vic_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Vic_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Vic_stop(objhandle); + } } public struct Vizsn { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Vizsn(SoloudObject(Vizsn_create())); - } - - ~this() - { - Vizsn_destroy(objhandle); - } - - public void setText(char* aText) - { - Vizsn_setText(objhandle, aText); - } - - public void setVolume(float aVolume) - { - Vizsn_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Vizsn_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Vizsn_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Vizsn_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Vizsn_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Vizsn_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Vizsn_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Vizsn_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Vizsn_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Vizsn_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Vizsn_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Vizsn_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Vizsn_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Vizsn_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Vizsn_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Vizsn(SoloudObject(Vizsn_create())); + } + + void free() + { + Vizsn_destroy(objhandle); + } + + public void setText(char* aText) + { + Vizsn_setText(objhandle, aText); + } + + public void setVolume(float aVolume) + { + Vizsn_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Vizsn_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Vizsn_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Vizsn_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Vizsn_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Vizsn_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Vizsn_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Vizsn_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Vizsn_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Vizsn_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Vizsn_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Vizsn_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Vizsn_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Vizsn_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Vizsn_stop(objhandle); + } } public struct Wav { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return Wav(SoloudObject(Wav_create())); - } - - ~this() - { - Wav_destroy(objhandle); - } - - public int load(const(char)* aFilename) - { - return Wav_load(objhandle, aFilename); - } - - public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) - { - return Wav_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); - } - - public int loadFile(SoloudObject aFile) - { - return Wav_loadFile(objhandle, aFile.objhandle); - } - - public int loadRawWave8(ubyte* aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1) - { - return Wav_loadRawWave8Ex(objhandle, aMem, aLength, aSamplerate, aChannels); - } - - public int loadRawWave16(short[] aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1) - { - return Wav_loadRawWave16Ex(objhandle, aMem, aLength, aSamplerate, aChannels); - } - - public int loadRawWave(float[] aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1, int aCopy = false, int aTakeOwnership = true) - { - return Wav_loadRawWaveEx(objhandle, aMem, aLength, aSamplerate, aChannels, aCopy, aTakeOwnership); - } - - public double getLength() - { - return Wav_getLength(objhandle); - } - - public void setVolume(float aVolume) - { - Wav_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - Wav_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - Wav_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - Wav_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - Wav_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - Wav_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - Wav_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - Wav_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - Wav_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - Wav_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - Wav_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - Wav_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return Wav_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - Wav_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - Wav_stop(objhandle); - } + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return Wav(SoloudObject(Wav_create())); + } + + void free() + { + Wav_destroy(objhandle); + } + + public int load(const(char)* aFilename) + { + return Wav_load(objhandle, aFilename); + } + + public int loadMem(ubyte* aMem, uint aLength, int aCopy = false, int aTakeOwnership = true) + { + return Wav_loadMemEx(objhandle, aMem, aLength, aCopy, aTakeOwnership); + } + + public int loadFile(SoloudObject aFile) + { + return Wav_loadFile(objhandle, aFile.objhandle); + } + + public int loadRawWave8(ubyte* aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1) + { + return Wav_loadRawWave8Ex(objhandle, aMem, aLength, aSamplerate, aChannels); + } + + public int loadRawWave16(short[] aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1) + { + return Wav_loadRawWave16Ex(objhandle, aMem, aLength, aSamplerate, aChannels); + } + + public int loadRawWave(float[] aMem, uint aLength, float aSamplerate = 44100.0f, uint aChannels = 1, int aCopy = false, int aTakeOwnership = true) + { + return Wav_loadRawWaveEx(objhandle, aMem, aLength, aSamplerate, aChannels, aCopy, aTakeOwnership); + } + + public double getLength() + { + return Wav_getLength(objhandle); + } + + public void setVolume(float aVolume) + { + Wav_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + Wav_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + Wav_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + Wav_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + Wav_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + Wav_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + Wav_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + Wav_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + Wav_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + Wav_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + Wav_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + Wav_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return Wav_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + Wav_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + Wav_stop(objhandle); + } } public struct WaveShaperFilter { -pure @safe nothrow @nogc: - public enum WET = 0; - public enum AMOUNT = 1; - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return WaveShaperFilter(SoloudObject(WaveShaperFilter_create())); - } - - ~this() - { - WaveShaperFilter_destroy(objhandle); - } - - public int setParams(float aAmount) - { - return WaveShaperFilter_setParams(objhandle, aAmount); - } - - public int getParamCount() - { - return WaveShaperFilter_getParamCount(objhandle); - } - - public const(char)* getParamName(uint aParamIndex) - { - return WaveShaperFilter_getParamName(objhandle, aParamIndex); - } - - public uint getParamType(uint aParamIndex) - { - return WaveShaperFilter_getParamType(objhandle, aParamIndex); - } - - public float getParamMax(uint aParamIndex) - { - return WaveShaperFilter_getParamMax(objhandle, aParamIndex); - } - - public float getParamMin(uint aParamIndex) - { - return WaveShaperFilter_getParamMin(objhandle, aParamIndex); - } + nothrow @nogc: + public enum WET = 0; + public enum AMOUNT = 1; + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return WaveShaperFilter(SoloudObject(WaveShaperFilter_create())); + } + + void free() + { + WaveShaperFilter_destroy(objhandle); + } + + public int setParams(float aAmount) + { + return WaveShaperFilter_setParams(objhandle, aAmount); + } + + public int getParamCount() + { + return WaveShaperFilter_getParamCount(objhandle); + } + + public const(char)* getParamName(uint aParamIndex) + { + return WaveShaperFilter_getParamName(objhandle, aParamIndex); + } + + public uint getParamType(uint aParamIndex) + { + return WaveShaperFilter_getParamType(objhandle, aParamIndex); + } + + public float getParamMax(uint aParamIndex) + { + return WaveShaperFilter_getParamMax(objhandle, aParamIndex); + } + + public float getParamMin(uint aParamIndex) + { + return WaveShaperFilter_getParamMin(objhandle, aParamIndex); + } } public struct WavStream { -pure @safe nothrow @nogc: - - public SoloudObject soloudObject; - alias soloudObject this; - - public static create() - { - return WavStream(SoloudObject(WavStream_create())); - } - - ~this() - { - WavStream_destroy(objhandle); - } - - public int load(const(char)* aFilename) - { - return WavStream_load(objhandle, aFilename); - } - - public int loadMem(ubyte* aData, uint aDataLen, int aCopy = false, int aTakeOwnership = true) - { - return WavStream_loadMemEx(objhandle, aData, aDataLen, aCopy, aTakeOwnership); - } - - public int loadToMem(const(char)* aFilename) - { - return WavStream_loadToMem(objhandle, aFilename); - } - - public int loadFile(SoloudObject aFile) - { - return WavStream_loadFile(objhandle, aFile.objhandle); - } - - public int loadFileToMem(SoloudObject aFile) - { - return WavStream_loadFileToMem(objhandle, aFile.objhandle); - } - - public double getLength() - { - return WavStream_getLength(objhandle); - } - - public void setVolume(float aVolume) - { - WavStream_setVolume(objhandle, aVolume); - } - - public void setLooping(int aLoop) - { - WavStream_setLooping(objhandle, aLoop); - } - - public void setAutoStop(int aAutoStop) - { - WavStream_setAutoStop(objhandle, aAutoStop); - } - - public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) - { - WavStream_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); - } - - public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) - { - WavStream_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); - } - - public void set3dDopplerFactor(float aDopplerFactor) - { - WavStream_set3dDopplerFactor(objhandle, aDopplerFactor); - } - - public void set3dListenerRelative(int aListenerRelative) - { - WavStream_set3dListenerRelative(objhandle, aListenerRelative); - } - - public void set3dDistanceDelay(int aDistanceDelay) - { - WavStream_set3dDistanceDelay(objhandle, aDistanceDelay); - } - - public void set3dCollider(SoloudObject aCollider, int aUserData = 0) - { - WavStream_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); - } - - public void set3dAttenuator(SoloudObject aAttenuator) - { - WavStream_set3dAttenuator(objhandle, aAttenuator.objhandle); - } - - public void setInaudibleBehavior(int aMustTick, int aKill) - { - WavStream_setInaudibleBehavior(objhandle, aMustTick, aKill); - } - - public void setLoopPoint(double aLoopPoint) - { - WavStream_setLoopPoint(objhandle, aLoopPoint); - } - - public double getLoopPoint() - { - return WavStream_getLoopPoint(objhandle); - } - - public void setFilter(uint aFilterId, SoloudObject aFilter) - { - WavStream_setFilter(objhandle, aFilterId, aFilter.objhandle); - } - - public void stop() - { - WavStream_stop(objhandle); - } - + nothrow @nogc: + + public SoloudObject soloudObject; + alias soloudObject this; + + public static create() + { + return WavStream(SoloudObject(WavStream_create())); + } + + void free() + { + WavStream_destroy(objhandle); + } + + public int load(const(char)* aFilename) + { + return WavStream_load(objhandle, aFilename); + } + + public int loadMem(ubyte* aData, uint aDataLen, int aCopy = false, int aTakeOwnership = true) + { + return WavStream_loadMemEx(objhandle, aData, aDataLen, aCopy, aTakeOwnership); + } + + public int loadToMem(const(char)* aFilename) + { + return WavStream_loadToMem(objhandle, aFilename); + } + + public int loadFile(SoloudObject aFile) + { + return WavStream_loadFile(objhandle, aFile.objhandle); + } + + public int loadFileToMem(SoloudObject aFile) + { + return WavStream_loadFileToMem(objhandle, aFile.objhandle); + } + + public double getLength() + { + return WavStream_getLength(objhandle); + } + + public void setVolume(float aVolume) + { + WavStream_setVolume(objhandle, aVolume); + } + + public void setLooping(int aLoop) + { + WavStream_setLooping(objhandle, aLoop); + } + + public void setAutoStop(int aAutoStop) + { + WavStream_setAutoStop(objhandle, aAutoStop); + } + + public void set3dMinMaxDistance(float aMinDistance, float aMaxDistance) + { + WavStream_set3dMinMaxDistance(objhandle, aMinDistance, aMaxDistance); + } + + public void set3dAttenuation(uint aAttenuationModel, float aAttenuationRolloffFactor) + { + WavStream_set3dAttenuation(objhandle, aAttenuationModel, aAttenuationRolloffFactor); + } + + public void set3dDopplerFactor(float aDopplerFactor) + { + WavStream_set3dDopplerFactor(objhandle, aDopplerFactor); + } + + public void set3dListenerRelative(int aListenerRelative) + { + WavStream_set3dListenerRelative(objhandle, aListenerRelative); + } + + public void set3dDistanceDelay(int aDistanceDelay) + { + WavStream_set3dDistanceDelay(objhandle, aDistanceDelay); + } + + public void set3dCollider(SoloudObject aCollider, int aUserData = 0) + { + WavStream_set3dColliderEx(objhandle, aCollider.objhandle, aUserData); + } + + public void set3dAttenuator(SoloudObject aAttenuator) + { + WavStream_set3dAttenuator(objhandle, aAttenuator.objhandle); + } + + public void setInaudibleBehavior(int aMustTick, int aKill) + { + WavStream_setInaudibleBehavior(objhandle, aMustTick, aKill); + } + + public void setLoopPoint(double aLoopPoint) + { + WavStream_setLoopPoint(objhandle, aLoopPoint); + } + + public double getLoopPoint() + { + return WavStream_getLoopPoint(objhandle); + } + + public void setFilter(uint aFilterId, SoloudObject aFilter) + { + WavStream_setFilter(objhandle, aFilterId, aFilter.objhandle); + } + + public void stop() + { + WavStream_stop(objhandle); + } } -private static extern(C) int* Soloud_create(); -private static extern(C) int* Soloud_destroy(int* aObjHandle); -private static extern(C) int Soloud_initEx(int* aObjHandle, uint aFlags, uint aBackend, uint aSamplerate, uint aBufferSize, uint aChannels); -private static extern(C) int Soloud_pause(int* aObjHandle); -private static extern(C) int Soloud_resume(int* aObjHandle); -private static extern(C) void Soloud_deinit(int* aObjHandle); -private static extern(C) uint Soloud_getVersion(int* aObjHandle); -private static extern(C) const(char)* Soloud_getErrorString(int* aObjHandle, int aErrorCode); -private static extern(C) uint Soloud_getBackendId(int* aObjHandle); -private static extern(C) const(char)* Soloud_getBackendString(int* aObjHandle); -private static extern(C) uint Soloud_getBackendChannels(int* aObjHandle); -private static extern(C) uint Soloud_getBackendSamplerate(int* aObjHandle); -private static extern(C) uint Soloud_getBackendBufferSize(int* aObjHandle); -private static extern(C) int Soloud_setSpeakerPosition(int* aObjHandle, uint aChannel, float aX, float aY, float aZ); -private static extern(C) int Soloud_getSpeakerPosition(int* aObjHandle, uint aChannel, float[] aX, float[] aY, float[] aZ); -private static extern(C) uint Soloud_playEx(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused, uint aBus); -private static extern(C) uint Soloud_playClockedEx(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan, uint aBus); -private static extern(C) uint Soloud_play3dEx(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused, uint aBus); -private static extern(C) uint Soloud_play3dClockedEx(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, uint aBus); -private static extern(C) uint Soloud_playBackgroundEx(int* aObjHandle, int* aSound, float aVolume, int aPaused, uint aBus); -private static extern(C) int Soloud_seek(int* aObjHandle, uint aVoiceHandle, double aSeconds); -private static extern(C) void Soloud_stop(int* aObjHandle, uint aVoiceHandle); -private static extern(C) void Soloud_stopAll(int* aObjHandle); -private static extern(C) void Soloud_stopAudioSource(int* aObjHandle, int* aSound); -private static extern(C) int Soloud_countAudioSource(int* aObjHandle, int* aSound); -private static extern(C) void Soloud_setFilterParameter(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aValue); -private static extern(C) float Soloud_getFilterParameter(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId); -private static extern(C) void Soloud_fadeFilterParameter(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aTo, double aTime); -private static extern(C) void Soloud_oscillateFilterParameter(int* aObjHandle, uint aVoiceHandle, uint aFilterId, uint aAttributeId, float aFrom, float aTo, double aTime); -private static extern(C) double Soloud_getStreamTime(int* aObjHandle, uint aVoiceHandle); -private static extern(C) double Soloud_getStreamPosition(int* aObjHandle, uint aVoiceHandle); -private static extern(C) int Soloud_getPause(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getVolume(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getOverallVolume(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getPan(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getSamplerate(int* aObjHandle, uint aVoiceHandle); -private static extern(C) int Soloud_getProtectVoice(int* aObjHandle, uint aVoiceHandle); -private static extern(C) uint Soloud_getActiveVoiceCount(int* aObjHandle); -private static extern(C) uint Soloud_getVoiceCount(int* aObjHandle); -private static extern(C) int Soloud_isValidVoiceHandle(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getRelativePlaySpeed(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getPostClipScaler(int* aObjHandle); -private static extern(C) uint Soloud_getMainResampler(int* aObjHandle); -private static extern(C) float Soloud_getGlobalVolume(int* aObjHandle); -private static extern(C) uint Soloud_getMaxActiveVoiceCount(int* aObjHandle); -private static extern(C) int Soloud_getLooping(int* aObjHandle, uint aVoiceHandle); -private static extern(C) int Soloud_getAutoStop(int* aObjHandle, uint aVoiceHandle); -private static extern(C) double Soloud_getLoopPoint(int* aObjHandle, uint aVoiceHandle); -private static extern(C) void Soloud_setLoopPoint(int* aObjHandle, uint aVoiceHandle, double aLoopPoint); -private static extern(C) void Soloud_setLooping(int* aObjHandle, uint aVoiceHandle, int aLooping); -private static extern(C) void Soloud_setAutoStop(int* aObjHandle, uint aVoiceHandle, int aAutoStop); -private static extern(C) int Soloud_setMaxActiveVoiceCount(int* aObjHandle, uint aVoiceCount); -private static extern(C) void Soloud_setInaudibleBehavior(int* aObjHandle, uint aVoiceHandle, int aMustTick, int aKill); -private static extern(C) void Soloud_setGlobalVolume(int* aObjHandle, float aVolume); -private static extern(C) void Soloud_setPostClipScaler(int* aObjHandle, float aScaler); -private static extern(C) void Soloud_setMainResampler(int* aObjHandle, uint aResampler); -private static extern(C) void Soloud_setPause(int* aObjHandle, uint aVoiceHandle, int aPause); -private static extern(C) void Soloud_setPauseAll(int* aObjHandle, int aPause); -private static extern(C) int Soloud_setRelativePlaySpeed(int* aObjHandle, uint aVoiceHandle, float aSpeed); -private static extern(C) void Soloud_setProtectVoice(int* aObjHandle, uint aVoiceHandle, int aProtect); -private static extern(C) void Soloud_setSamplerate(int* aObjHandle, uint aVoiceHandle, float aSamplerate); -private static extern(C) void Soloud_setPan(int* aObjHandle, uint aVoiceHandle, float aPan); -private static extern(C) void Soloud_setPanAbsolute(int* aObjHandle, uint aVoiceHandle, float aLVolume, float aRVolume); -private static extern(C) void Soloud_setChannelVolume(int* aObjHandle, uint aVoiceHandle, uint aChannel, float aVolume); -private static extern(C) void Soloud_setVolume(int* aObjHandle, uint aVoiceHandle, float aVolume); -private static extern(C) void Soloud_setDelaySamples(int* aObjHandle, uint aVoiceHandle, uint aSamples); -private static extern(C) void Soloud_fadeVolume(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime); -private static extern(C) void Soloud_fadePan(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime); -private static extern(C) void Soloud_fadeRelativePlaySpeed(int* aObjHandle, uint aVoiceHandle, float aTo, double aTime); -private static extern(C) void Soloud_fadeGlobalVolume(int* aObjHandle, float aTo, double aTime); -private static extern(C) void Soloud_schedulePause(int* aObjHandle, uint aVoiceHandle, double aTime); -private static extern(C) void Soloud_scheduleStop(int* aObjHandle, uint aVoiceHandle, double aTime); -private static extern(C) void Soloud_oscillateVolume(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime); -private static extern(C) void Soloud_oscillatePan(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime); -private static extern(C) void Soloud_oscillateRelativePlaySpeed(int* aObjHandle, uint aVoiceHandle, float aFrom, float aTo, double aTime); -private static extern(C) void Soloud_oscillateGlobalVolume(int* aObjHandle, float aFrom, float aTo, double aTime); -private static extern(C) void Soloud_setGlobalFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Soloud_setVisualizationEnable(int* aObjHandle, int aEnable); -private static extern(C) float[] Soloud_calcFFT(int* aObjHandle); -private static extern(C) float[] Soloud_getWave(int* aObjHandle); -private static extern(C) float Soloud_getApproximateVolume(int* aObjHandle, uint aChannel); -private static extern(C) uint Soloud_getLoopCount(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float Soloud_getInfo(int* aObjHandle, uint aVoiceHandle, uint aInfoKey); -private static extern(C) uint Soloud_createVoiceGroup(int* aObjHandle); -private static extern(C) int Soloud_destroyVoiceGroup(int* aObjHandle, uint aVoiceGroupHandle); -private static extern(C) int Soloud_addVoiceToGroup(int* aObjHandle, uint aVoiceGroupHandle, uint aVoiceHandle); -private static extern(C) int Soloud_isVoiceGroup(int* aObjHandle, uint aVoiceGroupHandle); -private static extern(C) int Soloud_isVoiceGroupEmpty(int* aObjHandle, uint aVoiceGroupHandle); -private static extern(C) void Soloud_update3dAudio(int* aObjHandle); -private static extern(C) int Soloud_set3dSoundSpeed(int* aObjHandle, float aSpeed); -private static extern(C) float Soloud_get3dSoundSpeed(int* aObjHandle); -private static extern(C) void Soloud_set3dListenerParametersEx(int* aObjHandle, float aPosX, float aPosY, float aPosZ, float aAtX, float aAtY, float aAtZ, float aUpX, float aUpY, float aUpZ, float aVelocityX, float aVelocityY, float aVelocityZ); -private static extern(C) void Soloud_set3dListenerPosition(int* aObjHandle, float aPosX, float aPosY, float aPosZ); -private static extern(C) void Soloud_set3dListenerAt(int* aObjHandle, float aAtX, float aAtY, float aAtZ); -private static extern(C) void Soloud_set3dListenerUp(int* aObjHandle, float aUpX, float aUpY, float aUpZ); -private static extern(C) void Soloud_set3dListenerVelocity(int* aObjHandle, float aVelocityX, float aVelocityY, float aVelocityZ); -private static extern(C) void Soloud_set3dSourceParametersEx(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ, float aVelocityX, float aVelocityY, float aVelocityZ); -private static extern(C) void Soloud_set3dSourcePosition(int* aObjHandle, uint aVoiceHandle, float aPosX, float aPosY, float aPosZ); -private static extern(C) void Soloud_set3dSourceVelocity(int* aObjHandle, uint aVoiceHandle, float aVelocityX, float aVelocityY, float aVelocityZ); -private static extern(C) void Soloud_set3dSourceMinMaxDistance(int* aObjHandle, uint aVoiceHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Soloud_set3dSourceAttenuation(int* aObjHandle, uint aVoiceHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Soloud_set3dSourceDopplerFactor(int* aObjHandle, uint aVoiceHandle, float aDopplerFactor); -private static extern(C) void Soloud_mix(int* aObjHandle, float[] aBuffer, uint aSamples); -private static extern(C) void Soloud_mixSigned16(int* aObjHandle, short[] aBuffer, uint aSamples); -private static extern(C) int* Ay_create(); -private static extern(C) int* Ay_destroy(int* aObjHandle); -private static extern(C) void Ay_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Ay_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Ay_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Ay_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Ay_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Ay_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Ay_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Ay_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Ay_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Ay_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Ay_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Ay_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Ay_getLoopPoint(int* aObjHandle); -private static extern(C) void Ay_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Ay_stop(int* aObjHandle); -private static extern(C) int* BassboostFilter_create(); -private static extern(C) int* BassboostFilter_destroy(int* aObjHandle); -private static extern(C) int BassboostFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* BassboostFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint BassboostFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float BassboostFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float BassboostFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int BassboostFilter_setParams(int* aObjHandle, float aBoost); -private static extern(C) int* BiquadResonantFilter_create(); -private static extern(C) int* BiquadResonantFilter_destroy(int* aObjHandle); -private static extern(C) int BiquadResonantFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* BiquadResonantFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint BiquadResonantFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float BiquadResonantFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float BiquadResonantFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int BiquadResonantFilter_setParams(int* aObjHandle, int aType, float aFrequency, float aResonance); -private static extern(C) int* Bus_create(); -private static extern(C) int* Bus_destroy(int* aObjHandle); -private static extern(C) void Bus_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) uint Bus_playEx(int* aObjHandle, int* aSound, float aVolume, float aPan, int aPaused); -private static extern(C) uint Bus_playClockedEx(int* aObjHandle, double aSoundTime, int* aSound, float aVolume, float aPan); -private static extern(C) uint Bus_play3dEx(int* aObjHandle, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume, int aPaused); -private static extern(C) uint Bus_play3dClockedEx(int* aObjHandle, double aSoundTime, int* aSound, float aPosX, float aPosY, float aPosZ, float aVelX, float aVelY, float aVelZ, float aVolume); -private static extern(C) int Bus_setChannels(int* aObjHandle, uint aChannels); -private static extern(C) void Bus_setVisualizationEnable(int* aObjHandle, int aEnable); -private static extern(C) void Bus_annexSound(int* aObjHandle, uint aVoiceHandle); -private static extern(C) float[] Bus_calcFFT(int* aObjHandle); -private static extern(C) float[] Bus_getWave(int* aObjHandle); -private static extern(C) float Bus_getApproximateVolume(int* aObjHandle, uint aChannel); -private static extern(C) uint Bus_getActiveVoiceCount(int* aObjHandle); -private static extern(C) uint Bus_getResampler(int* aObjHandle); -private static extern(C) void Bus_setResampler(int* aObjHandle, uint aResampler); -private static extern(C) void Bus_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Bus_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Bus_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Bus_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Bus_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Bus_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Bus_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Bus_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Bus_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Bus_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Bus_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Bus_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Bus_getLoopPoint(int* aObjHandle); -private static extern(C) void Bus_stop(int* aObjHandle); -private static extern(C) int* DCRemovalFilter_create(); -private static extern(C) int* DCRemovalFilter_destroy(int* aObjHandle); -private static extern(C) int DCRemovalFilter_setParamsEx(int* aObjHandle, float aLength); -private static extern(C) int DCRemovalFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* DCRemovalFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint DCRemovalFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float DCRemovalFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float DCRemovalFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int* EchoFilter_create(); -private static extern(C) int* EchoFilter_destroy(int* aObjHandle); -private static extern(C) int EchoFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* EchoFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint EchoFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float EchoFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float EchoFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int EchoFilter_setParamsEx(int* aObjHandle, float aDelay, float aDecay, float aFilter); -private static extern(C) int* FFTFilter_create(); -private static extern(C) int* FFTFilter_destroy(int* aObjHandle); -private static extern(C) int FFTFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* FFTFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint FFTFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float FFTFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float FFTFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int* FlangerFilter_create(); -private static extern(C) int* FlangerFilter_destroy(int* aObjHandle); -private static extern(C) int FlangerFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* FlangerFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint FlangerFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float FlangerFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float FlangerFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int FlangerFilter_setParams(int* aObjHandle, float aDelay, float aFreq); -private static extern(C) int* FreeverbFilter_create(); -private static extern(C) int* FreeverbFilter_destroy(int* aObjHandle); -private static extern(C) int FreeverbFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* FreeverbFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint FreeverbFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float FreeverbFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float FreeverbFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int FreeverbFilter_setParams(int* aObjHandle, float aMode, float aRoomSize, float aDamp, float aWidth); -private static extern(C) int* LofiFilter_create(); -private static extern(C) int* LofiFilter_destroy(int* aObjHandle); -private static extern(C) int LofiFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* LofiFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint LofiFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float LofiFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float LofiFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int LofiFilter_setParams(int* aObjHandle, float aSampleRate, float aBitdepth); -private static extern(C) int* Monotone_create(); -private static extern(C) int* Monotone_destroy(int* aObjHandle); -private static extern(C) int Monotone_setParamsEx(int* aObjHandle, int aHardwareChannels, int aWaveform); -private static extern(C) int Monotone_load(int* aObjHandle, const(char)* aFilename); -private static extern(C) int Monotone_loadMemEx(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership); -private static extern(C) int Monotone_loadFile(int* aObjHandle, int* aFile); -private static extern(C) void Monotone_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Monotone_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Monotone_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Monotone_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Monotone_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Monotone_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Monotone_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Monotone_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Monotone_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Monotone_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Monotone_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Monotone_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Monotone_getLoopPoint(int* aObjHandle); -private static extern(C) void Monotone_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Monotone_stop(int* aObjHandle); -private static extern(C) int* Noise_create(); -private static extern(C) int* Noise_destroy(int* aObjHandle); -private static extern(C) void Noise_setOctaveScale(int* aObjHandle, float aOct0, float aOct1, float aOct2, float aOct3, float aOct4, float aOct5, float aOct6, float aOct7, float aOct8, float aOct9); -private static extern(C) void Noise_setType(int* aObjHandle, int aType); -private static extern(C) void Noise_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Noise_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Noise_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Noise_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Noise_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Noise_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Noise_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Noise_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Noise_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Noise_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Noise_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Noise_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Noise_getLoopPoint(int* aObjHandle); -private static extern(C) void Noise_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Noise_stop(int* aObjHandle); -private static extern(C) int* Openmpt_create(); -private static extern(C) int* Openmpt_destroy(int* aObjHandle); -private static extern(C) int Openmpt_load(int* aObjHandle, const(char)* aFilename); -private static extern(C) int Openmpt_loadMemEx(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership); -private static extern(C) int Openmpt_loadFile(int* aObjHandle, int* aFile); -private static extern(C) void Openmpt_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Openmpt_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Openmpt_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Openmpt_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Openmpt_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Openmpt_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Openmpt_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Openmpt_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Openmpt_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Openmpt_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Openmpt_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Openmpt_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Openmpt_getLoopPoint(int* aObjHandle); -private static extern(C) void Openmpt_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Openmpt_stop(int* aObjHandle); -private static extern(C) int* Queue_create(); -private static extern(C) int* Queue_destroy(int* aObjHandle); -private static extern(C) int Queue_play(int* aObjHandle, int* aSound); -private static extern(C) uint Queue_getQueueCount(int* aObjHandle); -private static extern(C) int Queue_isCurrentlyPlaying(int* aObjHandle, int* aSound); -private static extern(C) int Queue_setParamsFromAudioSource(int* aObjHandle, int* aSound); -private static extern(C) int Queue_setParamsEx(int* aObjHandle, float aSamplerate, uint aChannels); -private static extern(C) void Queue_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Queue_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Queue_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Queue_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Queue_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Queue_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Queue_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Queue_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Queue_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Queue_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Queue_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Queue_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Queue_getLoopPoint(int* aObjHandle); -private static extern(C) void Queue_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Queue_stop(int* aObjHandle); -private static extern(C) int* RobotizeFilter_create(); -private static extern(C) int* RobotizeFilter_destroy(int* aObjHandle); -private static extern(C) int RobotizeFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* RobotizeFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint RobotizeFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float RobotizeFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float RobotizeFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) void RobotizeFilter_setParams(int* aObjHandle, float aFreq, int aWaveform); -private static extern(C) int* Sfxr_create(); -private static extern(C) int* Sfxr_destroy(int* aObjHandle); -private static extern(C) void Sfxr_resetParams(int* aObjHandle); -private static extern(C) int Sfxr_loadParams(int* aObjHandle, const(char)* aFilename); -private static extern(C) int Sfxr_loadParamsMemEx(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership); -private static extern(C) int Sfxr_loadParamsFile(int* aObjHandle, int* aFile); -private static extern(C) int Sfxr_loadPreset(int* aObjHandle, int aPresetNo, int aRandSeed); -private static extern(C) void Sfxr_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Sfxr_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Sfxr_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Sfxr_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Sfxr_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Sfxr_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Sfxr_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Sfxr_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Sfxr_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Sfxr_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Sfxr_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Sfxr_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Sfxr_getLoopPoint(int* aObjHandle); -private static extern(C) void Sfxr_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Sfxr_stop(int* aObjHandle); -private static extern(C) int* Speech_create(); -private static extern(C) int* Speech_destroy(int* aObjHandle); -private static extern(C) int Speech_setText(int* aObjHandle, const(char)* aText); -private static extern(C) int Speech_setParamsEx(int* aObjHandle, uint aBaseFrequency, float aBaseSpeed, float aBaseDeclination, int aBaseWaveform); -private static extern(C) void Speech_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Speech_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Speech_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Speech_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Speech_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Speech_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Speech_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Speech_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Speech_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Speech_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Speech_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Speech_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Speech_getLoopPoint(int* aObjHandle); -private static extern(C) void Speech_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Speech_stop(int* aObjHandle); -private static extern(C) int* TedSid_create(); -private static extern(C) int* TedSid_destroy(int* aObjHandle); -private static extern(C) int TedSid_load(int* aObjHandle, const(char)* aFilename); -private static extern(C) int TedSid_loadMemEx(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership); -private static extern(C) int TedSid_loadFile(int* aObjHandle, int* aFile); -private static extern(C) void TedSid_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void TedSid_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void TedSid_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void TedSid_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void TedSid_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void TedSid_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void TedSid_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void TedSid_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void TedSid_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void TedSid_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void TedSid_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void TedSid_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double TedSid_getLoopPoint(int* aObjHandle); -private static extern(C) void TedSid_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void TedSid_stop(int* aObjHandle); -private static extern(C) int* Vic_create(); -private static extern(C) int* Vic_destroy(int* aObjHandle); -private static extern(C) void Vic_setModel(int* aObjHandle, int model); -private static extern(C) int Vic_getModel(int* aObjHandle); -private static extern(C) void Vic_setRegister(int* aObjHandle, int reg, ubyte value); -private static extern(C) ubyte Vic_getRegister(int* aObjHandle, int reg); -private static extern(C) void Vic_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Vic_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Vic_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Vic_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Vic_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Vic_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Vic_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Vic_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Vic_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Vic_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Vic_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Vic_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Vic_getLoopPoint(int* aObjHandle); -private static extern(C) void Vic_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Vic_stop(int* aObjHandle); -private static extern(C) int* Vizsn_create(); -private static extern(C) int* Vizsn_destroy(int* aObjHandle); -private static extern(C) void Vizsn_setText(int* aObjHandle, char* aText); -private static extern(C) void Vizsn_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Vizsn_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Vizsn_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Vizsn_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Vizsn_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Vizsn_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Vizsn_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Vizsn_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Vizsn_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Vizsn_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Vizsn_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Vizsn_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Vizsn_getLoopPoint(int* aObjHandle); -private static extern(C) void Vizsn_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Vizsn_stop(int* aObjHandle); -private static extern(C) int* Wav_create(); -private static extern(C) int* Wav_destroy(int* aObjHandle); -private static extern(C) int Wav_load(int* aObjHandle, const(char)* aFilename); -private static extern(C) int Wav_loadMemEx(int* aObjHandle, ubyte* aMem, uint aLength, int aCopy, int aTakeOwnership); -private static extern(C) int Wav_loadFile(int* aObjHandle, int* aFile); -private static extern(C) int Wav_loadRawWave8Ex(int* aObjHandle, ubyte* aMem, uint aLength, float aSamplerate, uint aChannels); -private static extern(C) int Wav_loadRawWave16Ex(int* aObjHandle, short[] aMem, uint aLength, float aSamplerate, uint aChannels); -private static extern(C) int Wav_loadRawWaveEx(int* aObjHandle, float[] aMem, uint aLength, float aSamplerate, uint aChannels, int aCopy, int aTakeOwnership); -private static extern(C) double Wav_getLength(int* aObjHandle); -private static extern(C) void Wav_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void Wav_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void Wav_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void Wav_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void Wav_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void Wav_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void Wav_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void Wav_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void Wav_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void Wav_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void Wav_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void Wav_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double Wav_getLoopPoint(int* aObjHandle); -private static extern(C) void Wav_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void Wav_stop(int* aObjHandle); -private static extern(C) int* WaveShaperFilter_create(); -private static extern(C) int* WaveShaperFilter_destroy(int* aObjHandle); -private static extern(C) int WaveShaperFilter_setParams(int* aObjHandle, float aAmount); -private static extern(C) int WaveShaperFilter_getParamCount(int* aObjHandle); -private static extern(C) const(char)* WaveShaperFilter_getParamName(int* aObjHandle, uint aParamIndex); -private static extern(C) uint WaveShaperFilter_getParamType(int* aObjHandle, uint aParamIndex); -private static extern(C) float WaveShaperFilter_getParamMax(int* aObjHandle, uint aParamIndex); -private static extern(C) float WaveShaperFilter_getParamMin(int* aObjHandle, uint aParamIndex); -private static extern(C) int* WavStream_create(); -private static extern(C) int* WavStream_destroy(int* aObjHandle); -private static extern(C) int WavStream_load(int* aObjHandle, const(char)* aFilename); -private static extern(C) int WavStream_loadMemEx(int* aObjHandle, ubyte* aData, uint aDataLen, int aCopy, int aTakeOwnership); -private static extern(C) int WavStream_loadToMem(int* aObjHandle, const(char)* aFilename); -private static extern(C) int WavStream_loadFile(int* aObjHandle, int* aFile); -private static extern(C) int WavStream_loadFileToMem(int* aObjHandle, int* aFile); -private static extern(C) double WavStream_getLength(int* aObjHandle); -private static extern(C) void WavStream_setVolume(int* aObjHandle, float aVolume); -private static extern(C) void WavStream_setLooping(int* aObjHandle, int aLoop); -private static extern(C) void WavStream_setAutoStop(int* aObjHandle, int aAutoStop); -private static extern(C) void WavStream_set3dMinMaxDistance(int* aObjHandle, float aMinDistance, float aMaxDistance); -private static extern(C) void WavStream_set3dAttenuation(int* aObjHandle, uint aAttenuationModel, float aAttenuationRolloffFactor); -private static extern(C) void WavStream_set3dDopplerFactor(int* aObjHandle, float aDopplerFactor); -private static extern(C) void WavStream_set3dListenerRelative(int* aObjHandle, int aListenerRelative); -private static extern(C) void WavStream_set3dDistanceDelay(int* aObjHandle, int aDistanceDelay); -private static extern(C) void WavStream_set3dColliderEx(int* aObjHandle, int* aCollider, int aUserData); -private static extern(C) void WavStream_set3dAttenuator(int* aObjHandle, int* aAttenuator); -private static extern(C) void WavStream_setInaudibleBehavior(int* aObjHandle, int aMustTick, int aKill); -private static extern(C) void WavStream_setLoopPoint(int* aObjHandle, double aLoopPoint); -private static extern(C) double WavStream_getLoopPoint(int* aObjHandle); -private static extern(C) void WavStream_setFilter(int* aObjHandle, uint aFilterId, int* aFilter); -private static extern(C) void WavStream_stop(int* aObjHandle);