FSOUND_ENABLEFX = &H100000 ' Allows DX8 FX to be played back on a sound. Requires DirectX 8 - Note these sounds cant be played more than once, or have a changing frequency
FSOUND_MPEGHALFRATE = &H200000 ' For FMODCE only - decodes mpeg streams using a lower quality decode, but faster execution
FSOUND_XADPCM = &H400000 ' For XBOX only - Describes a user sample that its contents are compressed as XADPCM
FSOUND_VAG = &H800000 ' For PS2 only - Describes a user sample that its contents are compressed as Sony VAG format.
FSOUND_NONBLOCKING = &H1000000 ' For FSOUND_Stream_Open - Causes stream to open in the background and not block the foreground app - stream plays only when ready.
FSOUND_GCADPCM = &H2000000 ' For Gamecube only - Contents are compressed as Gamecube DSP-ADPCM format
FSOUND_MULTICHANNEL = &H4000000 ' For PS2 only - Contents are interleaved into a multi-channel (more than stereo) format
FSOUND_USECORE0 = &H8000000 ' For PS2 only - Sample/Stream is forced to use hardware voices 00-23
FSOUND_USECORE1 = &H10000000 ' For PS2 only - Sample/Stream is forced to use hardware voices 24-47
FSOUND_LOADMEMORYIOP = &H20000000 ' For PS2 only - "name" will be interpreted as a pointer to data for streaming and samples. The address provided will be an IOP address
FSOUND_IGNORETAGS = &H40000000 ' Skips id3v2 etc tag checks when opening a stream, to reduce seek/read overhead when opening files (helps with CD performance)
FSOUND_STREAM_NET = &H80000000 ' Specifies an internet stream
FSOUND_NORMAL = FSOUND_16BITS Or FSOUND_SIGNED Or FSOUND_MONO
End Enum
' FSOUND_CDPLAYMODES
' Playback method for a CD Audio track, with FSOUND_CD_SetPlayMode
'
Public Enum FSOUND_CDPLAYMODES
FSOUND_CD_PLAYCONTINUOUS 'Starts from the current track and plays to end of CD.
FSOUND_CD_PLAYONCE 'Plays the specified track then stops.
FSOUND_CD_PLAYLOOPED 'Plays the specified track looped, forever until stopped manually.
FSOUND_CD_PLAYRANDOM 'Plays tracks in random order
FSOUND_REVERBFLAGS_ECHOTIMESCALE = &H40 ' EnvironmentSize affects echo time
FSOUND_REVERBFLAGS_MODULATIONTIMESCALE = &H80 ' EnvironmentSize affects modulation time
FSOUND_REVERB_FLAGS_CORE0 = &H100 ' PS2 Only - Reverb is applied to CORE0 (hw voices 0-23)
FSOUND_REVERB_FLAGS_CORE1 = &H200 ' PS2 Only - Reverb is applied to CORE1 (hw voices 24-47)
FSOUND_REVERBFLAGS_DEFAULT = FSOUND_REVERBFLAGS_DECAYTIMESCALE Or FSOUND_REVERBFLAGS_REFLECTIONSSCALE Or FSOUND_REVERBFLAGS_REFLECTIONSDELAYSCALE Or FSOUND_REVERBFLAGS_REVERBSCALE Or FSOUND_REVERBFLAGS_REVERBDELAYSCALE Or FSOUND_REVERBFLAGS_DECAYHFLIMIT Or FSOUND_REVERB_FLAGS_CORE0 Or FSOUND_REVERB_FLAGS_CORE1
End Enum
' FSOUND_REVERB_CHANNELPROPERTIES
' Structure defining the properties for a reverb source, related to a FSOUND channel.
Direct As Long ' direct path level (at low and mid frequencies)
DirectHF As Long ' relative direct path level at high frequencies
Room As Long ' room effect level (at low and mid frequencies)
RoomHF As Long ' relative room effect level at high frequencies
Obstruction As Long ' main obstruction control (attenuation at high frequencies)
ObstructionLFRatio As Single ' obstruction low-frequency level re. main control
Occlusion As Long ' main occlusion control (attenuation at high frequencies)
OcclustionLFRatio As Single ' occlusion low-frequency level re. main control
OcclusionRoomRatio As Single ' relative occlusion control for room effect
OcclusionDirectRatio As Single ' relative occlusion control for direct path
Exclusion As Long ' main exlusion control (attenuation at high frequencies)
ExclusionLFRatio As Single ' exclusion low-frequency level re. main control
OutsideVolumeHF As Long ' outside sound cone level at high frequencies
DopplerFactor As Single ' like DS3D flDopplerFactor but per source
RolloffFactor As Single ' like DS3D flRolloffFactor but per source
RoomRolloffFactor As Single ' like DS3D flRolloffFactor but for room effect
AirAbsorptionFactor As Single ' multiplies AirAbsorptionHF member of FSOUND_REVERB_PROPERTIES
flags As Long ' modifies the behavior of properties
End Type
' FSOUND_REVERB_CHANNELFLAGS
' Values for the Flags member of the FSOUND_REVERB_CHANNELPROPERTIES structure.
'
Public Enum FSOUND_REVERB_CHANNELFLAGS
FSOUND_REVERB_CHANNELFLAGS_DIRECTHFAUTO = &H1 ' Automatic setting of Direct due to distance from listener
FSOUND_REVERB_CHANNELFLAGS_ROOMAUTO = &H2 ' Automatic setting of Room due to distance from listener
FSOUND_REVERB_CHANNELFLAGS_ROOMHFAUTO = &H4 ' Automatic setting of RoomHF due to distance from listener
FSOUND_REVERB_CHANNELFLAGS_DEFAULT = FSOUND_REVERB_CHANNELFLAGS_DIRECTHFAUTO Or FSOUND_REVERB_CHANNELFLAGS_ROOMAUTO Or FSOUND_REVERB_CHANNELFLAGS_ROOMHFAUTO
End Enum
' FSOUND_FX_MODES
' These values are used with FSOUND_FX_Enable to enable DirectX 8 FX for a channel.
'
Public Enum FSOUND_FX_MODES
FSOUND_FX_CHORUS
FSOUND_FX_COMPRESSOR
FSOUND_FX_DISTORTION
FSOUND_FX_ECHO
FSOUND_FX_FLANGER
FSOUND_FX_GARGLE
FSOUND_FX_I3DL2REVERB
FSOUND_FX_PARAMEQ
FSOUND_FX_WAVES_REVERB
End Enum
'FSOUND_SPEAKERMODES
'These are speaker types defined for use with the FSOUND_SetSpeakerMode command.
'Note - Only reliably works with FSOUND_OUTPUT_DSOUND or FSOUND_OUTPUT_XBOX output modes. Other output modes will only
'interpret FSOUND_SPEAKERMODE_MONO and set everything else to be stereo.
'Using either DolbyDigital or DTS will use whatever 5.1 digital mode is available if destination hardware is unsure.
'
Public Enum FSOUND_SPEAKERMODES
FSOUND_SPEAKERMODE_DOLBYDIGITAL ' The audio is played through a speaker arrangement of surround speakers with a subwoofer.
FSOUND_SPEAKERMODE_HEADPHONE ' The speakers are headphones.
FSOUND_SPEAKERMODE_MONO ' The speakers are monaural.
FSOUND_SPEAKERMODE_QUAD ' The speakers are quadraphonic.
FSOUND_SPEAKERMODE_STEREO ' The speakers are stereo (default value).
FSOUND_SPEAKERMODE_SURROUND ' The speakers are surround sound.
FSOUND_SPEAKERMODE_DTS ' The audio is played through a speaker arrangement of surround speakers with a subwoofer.
FSOUND_SPEAKERMODE_PROLOGIC2 ' Dolby Prologic 2. Playstation 2 and Gamecube only
End Enum
' FSOUND_INIT_FLAGS
' Initialization flags. Use them with FSOUND_Init in the flags parameter to change various behaviour.
' FSOUND_INIT_ENABLESYSTEMCHANNELFX Is an init mode which enables the FSOUND mixer buffer to be affected by DirectX 8 effects.
' Note that due to limitations of DirectSound, FSOUND_Init may fail if this is enabled because the buffersize is too small.
' This can be fixed with FSOUND_SetBufferSize. Increase the BufferSize until it works.
' When it is enabled you can use the FSOUND_FX api, and use FSOUND_SYSTEMCHANNEL as the channel id when setting parameters.
'
Public Enum FSOUND_INITMODES
FSOUND_INIT_USEDEFAULTMIDISYNTH = &H1 'Causes MIDI playback to force software decoding.
FSOUND_INIT_GLOBALFOCUS = &H2 'For DirectSound output - sound is not muted when window is out of focus.
FSOUND_INIT_ENABLESYSTEMCHANNELFX = &H4 'For DirectSound output - Allows FSOUND_FX api to be used on global software mixer output!
FSOUND_INIT_ACCURATEVULEVELS = &H8 'This latency adjusts FSOUND_GetCurrentLevels, but incurs a small cpu and memory hit
FSOUND_INIT_PS2_DISABLECORE0REVERB = &H10 'PS2 only - Disable reverb on CORE 0 to regain SRAM
FSOUND_INIT_PS2_DISABLECORE1REVERB = &H20 'PS2 only - Disable reverb on CORE 1 to regain SRAM
FSOUND_INIT_PS2_SWAPDMACORES = &H40 'PS2 only - By default FMOD uses DMA CH0 for mixing, CH1 for uploads, this flag swaps them around
FSOUND_INIT_DONTLATENCYADJUST = &H80 'Callbacks are not latency adjusted, and are called at mix time. Also information functions are immediate
FSOUND_INIT_GC_INITLIBS = &H100 'Gamecube only - Initializes GC audio libraries
FSOUND_INIT_STREAM_FROM_MAIN_THREAD = &H200 'Turns off fmod streamer thread, and makes streaming update from FSOUND_Update called by the user
FSOUND_INIT_PS2_USEVOLUMERAMPING = &H400 'PS2 only - Turns on volume ramping system to remove hardware clicks.
FSOUND_INIT_DSOUND_DEFERRED = &H800 'Win32 only - For DirectSound output. 3D commands are batched together and executed at FSOUND_Update.
FSOUND_INIT_DSOUND_HRTF_LIGHT = &H1000 'Win32 only - For DirectSound output. FSOUND_HW3D buffers use a slightly higher quality algorithm when 3d hardware acceleration is not present.
FSOUND_INIT_DSOUND_HRTF_FULL = &H2000 'Win32 only - For DirectSound output. FSOUND_HW3D buffers use full quality 3d playback when 3d hardware acceleration is not present.
FSOUND_INIT_XBOX_REMOVEHEADROOM = &H4000 'XBox only - By default directsound attenuates all sound by 6db to avoid clipping/distortion. CAUTION. If you use this flag you are responsible for the final mix to make sure clipping / distortion doesn't happen.
FSOUND_INIT_PSP_SILENCEONUNDERRUN = &H8000 'PSP only - If streams skip / stutter when device is powered on, either increase stream buffersize, or use this flag instead to play silence while the UMD is recovering.
End Enum
' FSOUND_STREAM_NET_STATUS
' Status values for internet streams. Use FSOUND_Stream_Net_GetStatus to get the current status of an internet stream.
FSOUND_STREAM_NET_CONNECTING ' Stream is connecting to remote host
FSOUND_STREAM_NET_BUFFERING ' Stream is buffering data
FSOUND_STREAM_NET_READY ' Stream is ready to play
FSOUND_STREAM_NET_ERROR ' Stream has suffered a fatal error
End Enum
' FSOUND_TAGFIELD_TYPE
' Describes the type of a particular tag field.
' See FSOUND_Stream_GetNumTagFields, FSOUND_Stream_GetTagField, FSOUND_Stream_FindTagField
'
Public Enum FSOUND_TAGFIELD_TYPE
FSOUND_TAGFIELD_VORBISCOMMENT = 0 ' A vorbis comment
FSOUND_TAGFIELD_ID3V1 ' Part of an ID3v1 tag
FSOUND_TAGFIELD_ID3V2 ' An ID3v2 frame
FSOUND_TAGFIELD_SHOUTCAST ' A SHOUTcast header line
FSOUND_TAGFIELD_ICECAST ' An Icecast header line
FSOUND_TAGFIELD_ASF ' An Advanced Streaming Format header line
End Enum
' FSOUND_STATUS_FLAGS
' These values describe the protocol and format of an internet stream. Use FSOUND_Stream_Net_GetStatus to retrieve this information for an open internet stream.
'
Public Enum FSOUND_STATUS_FLAGS
FSOUND_PROTOCOL_SHOUTCAST = &H1
FSOUND_PROTOCOL_ICECAST = &H2
FSOUND_PROTOCOL_HTTP = &H4
FSOUND_FORMAT_MPEG = &H10000
FSOUND_FORMAT_OGGVORBIS = &H20000
End Enum
' FSOUND_TOC_TAG
' FSOUND_Stream_Open, FSOUND_Stream_FindTagField
'
Public Type FSOUND_TOC_TAG
TagName(3) As Byte ' The string "TOC" (4th character is 0), just in case this structure is accidentally treated as a string.
NumTracks As Long ' The number of tracks on the CD.
min(99) As Long ' The start offset of each track in minutes.
Sec(99) As Long ' The start offset of each track in seconds.
Frame(99) As Long ' The start offset of each track in frames.
End Type
'/* ================================== */
'/* Initialization / Global functions. */
'/* ================================== */
' PRE - FSOUND_Init functions. These cant be called after FSOUND_Init is
' called (they will fail). They set up FMOD system functionality.
Public Declare Function FSOUND_SetOutput Lib "fmod.dll" Alias "_FSOUND_SetOutput@4" (ByVal outputtype As FSOUND_OUTPUTTYPES) As Byte
Public Declare Function FSOUND_SetDriver Lib "fmod.dll" Alias "_FSOUND_SetDriver@4" (ByVal driver As Long) As Byte
Public Declare Function FSOUND_SetMixer Lib "fmod.dll" Alias "_FSOUND_SetMixer@4" (ByVal mixer As FSOUND_MIXERTYPES) As Byte
Public Declare Function FSOUND_SetBufferSize Lib "fmod.dll" Alias "_FSOUND_SetBufferSize@4" (ByVal lenms As Long) As Byte
Public Declare Function FSOUND_SetHWND Lib "fmod.dll" Alias "_FSOUND_SetHWND@4" (ByVal hwnd As Long) As Byte
Public Declare Function FSOUND_SetMinHardwareChannels Lib "fmod.dll" Alias "_FSOUND_SetMinHardwareChannels@4" (ByVal min As Integer) As Byte
Public Declare Function FSOUND_SetMaxHardwareChannels Lib "fmod.dll" Alias "_FSOUND_SetMaxHardwareChannels@4" (ByVal min As Integer) As Byte
Public Declare Function FSOUND_SetMemorySystem Lib "fmod.dll" Alias "_FSOUND_SetMemorySystem@20" (ByVal pool As Long, ByVal poollen As Long, ByVal useralloc As Long, ByVal userrealloc As Long, ByVal userfree As Long) As Byte
'
' Main initialization / closedown functions.
' Note : Use FSOUND_INIT_USEDEFAULTMIDISYNTH with FSOUND_Init for software override
' with MIDI playback.
' : Use FSOUND_INIT_GLOBALFOCUS with FSOUND_Init to make sound audible no matter
' which window is in focus. (FSOUND_OUTPUT_DSOUND only)
'
Public Declare Function FSOUND_Init Lib "fmod.dll" Alias "_FSOUND_Init@12" (ByVal mixrate As Long, ByVal maxchannels As Long, ByVal flags As FSOUND_INITMODES) As Byte
Public Declare Function FSOUND_Close Lib "fmod.dll" Alias "_FSOUND_Close@0" () As Long
'
' Runtime system level functions
'
Public Declare Function FSOUND_Update Lib "fmod.dll" Alias "_FSOUND_Update@0" () As Long
Public Declare Function FSOUND_SetSpeakerMode Lib "fmod.dll" Alias "_FSOUND_SetSpeakerMode@4" (ByVal speakermode As FSOUND_SPEAKERMODES) As Long
Public Declare Function FSOUND_SetSFXMasterVolume Lib "fmod.dll" Alias "_FSOUND_SetSFXMasterVolume@4" (ByVal volume As Long) As Long
Public Declare Function FSOUND_SetPanSeperation Lib "fmod.dll" Alias "_FSOUND_SetPanSeperation@4" (ByVal pansep As Single) As Long
Public Declare Function FSOUND_File_SetCallbacks Lib "fmod.dll" Alias "_FSOUND_File_SetCallbacks@20" (ByVal OpenCallback As Long, ByVal CloseCallback As Long, ByVal ReadCallback As Long, ByVal SeekCallback As Long, ByVal TellCallback As Long) As Long
'
' System information functions.
'
Public Declare Function FSOUND_GetError Lib "fmod.dll" Alias "_FSOUND_GetError@0" () As FMOD_ERRORS
Public Declare Function FSOUND_GetVersion Lib "fmod.dll" Alias "_FSOUND_GetVersion@0" () As Single
Public Declare Function FSOUND_GetOutput Lib "fmod.dll" Alias "_FSOUND_GetOutput@0" () As FSOUND_OUTPUTTYPES
Public Declare Function FSOUND_GetOutputHandle Lib "fmod.dll" Alias "_FSOUND_GetOutputHandle@0" () As Long
Public Declare Function FSOUND_GetDriver Lib "fmod.dll" Alias "_FSOUND_GetDriver@0" () As Long
Public Declare Function FSOUND_GetMixer Lib "fmod.dll" Alias "_FSOUND_GetMixer@0" () As FSOUND_MIXERTYPES
Public Declare Function FSOUND_GetNumDrivers Lib "fmod.dll" Alias "_FSOUND_GetNumDrivers@0" () As Long
Public Declare Function FSOUND_GetDriverName Lib "fmod.dll" Alias "_FSOUND_GetDriverName@4" (ByVal id As Long) As Long
Public Declare Function FSOUND_GetDriverCaps Lib "fmod.dll" Alias "_FSOUND_GetDriverCaps@8" (ByVal id As Long, ByRef caps As Long) As Byte
Public Declare Function FSOUND_GetOutputRate Lib "fmod.dll" Alias "_FSOUND_GetOutputRate@0" () As Long
Public Declare Function FSOUND_GetMaxChannels Lib "fmod.dll" Alias "_FSOUND_GetMaxChannels@0" () As Long
Public Declare Function FSOUND_GetMaxSamples Lib "fmod.dll" Alias "_FSOUND_GetMaxSamples@0" () As Long
Public Declare Function FSOUND_GetSpeakerMode Lib "fmod.dll" Alias "_FSOUND_GetSpeakerMode@0" () As Long
Public Declare Function FSOUND_GetSFXMasterVolume Lib "fmod.dll" Alias "_FSOUND_GetSFXMasterVolume@0" () As Long
Public Declare Function FSOUND_GetNumHWChannels Lib "fmod.dll" Alias "_FSOUND_GetNumHWChannels@12" (ByRef num2d As Long, ByRef num3d As Long, ByRef total As Long)
Public Declare Function FSOUND_GetChannelsPlaying Lib "fmod.dll" Alias "_FSOUND_GetChannelsPlaying@0" () As Long
Public Declare Function FSOUND_GetCPUUsage Lib "fmod.dll" Alias "_FSOUND_GetCPUUsage@0" () As Single
Public Declare Sub FSOUND_GetMemoryStats Lib "fmod.dll" Alias "_FSOUND_GetMemoryStats@8" (ByRef currentalloced As Long, ByRef maxalloced As Long)
'/* =================================== */
'/* Sample management / load functions. */
'/* =================================== */
' Sample creation and management functions
' Note : Use FSOUND_LOADMEMORY flag with FSOUND_Sample_Load to load from memory.
' Use FSOUND_LOADRAW flag with FSOUND_Sample_Load to treat as as raw pcm data.
Public Declare Function FSOUND_Sample_Load Lib "fmod.dll" Alias "_FSOUND_Sample_Load@20" (ByVal index As Long, ByVal name As String, ByVal mode As FSOUND_MODES, ByVal offset As Long, ByVal length As Long) As Long
Public Declare Function FSOUND_Sample_Alloc Lib "fmod.dll" Alias "_FSOUND_Sample_Alloc@28" (ByVal index As Long, ByVal length As Long, ByVal mode As Long, ByVal deffreq As Long, ByVal defvol As Long, ByVal defpan As Long, ByVal defpri As Long) As Long
Public Declare Function FSOUND_Sample_Free Lib "fmod.dll" Alias "_FSOUND_Sample_Free@4" (ByVal sptr As Long) As Long
Public Declare Function FSOUND_Sample_Upload Lib "fmod.dll" Alias "_FSOUND_Sample_Upload@12" (ByVal sptr As Long, ByRef srcdata As Long, ByVal mode As Long) As Byte
Public Declare Function FSOUND_Sample_Lock Lib "fmod.dll" Alias "_FSOUND_Sample_Lock@28" (ByVal sptr As Long, ByVal offset As Long, ByVal length As Long, ByRef ptr1 As Long, ByRef ptr2 As Long, ByRef len1 As Long, ByRef len2 As Long) As Byte
Public Declare Function FSOUND_Sample_Unlock Lib "fmod.dll" Alias "_FSOUND_Sample_Unlock@20" (ByVal sptr As Long, ByVal sptr1 As Long, ByVal sptr2 As Long, ByVal len1 As Long, ByVal len2 As Long) As Byte
' Sample control functions
Public Declare Function FSOUND_Sample_SetMode Lib "fmod.dll" Alias "_FSOUND_Sample_SetMode@8" (ByVal sptr As Long, ByVal mode As FSOUND_MODES) As Byte
Public Declare Function FSOUND_Sample_SetLoopPoints Lib "fmod.dll" Alias "_FSOUND_Sample_SetLoopPoints@12" (ByVal sptr As Long, ByVal loopstart As Long, ByVal loopend As Long) As Byte
Public Declare Function FSOUND_Sample_SetDefaults Lib "fmod.dll" Alias "_FSOUND_Sample_SetDefaults@20" (ByVal sptr As Long, ByVal deffreq As Long, ByVal defvol As Long, ByVal defpan As Long, ByVal defpri As Long) As Byte
Public Declare Function FSOUND_Sample_SetDefaultsEx Lib "fmod.dll" Alias "_FSOUND_Sample_SetDefaultsEx@32" (ByVal sptr As Long, ByVal deffreq As Long, ByVal defvol As Long, ByVal defpan As Long, ByVal defpri As Long, ByVal varfreq As Long, ByVal varvol As Long, ByVal varpan As Long) As Byte
Public Declare Function FSOUND_Sample_SetMinMaxDistance Lib "fmod.dll" Alias "_FSOUND_Sample_SetMinMaxDistance@12" (ByVal sptr As Long, ByVal min As Single, ByVal max As Single) As Byte
Public Declare Function FSOUND_Sample_SetMaxPlaybacks Lib "fmod.dll" Alias "_FSOUND_Sample_SetMaxPlaybacks@8" (ByVal sptr As Long, ByVal max As Long) As Byte
' Sample information functions
Public Declare Function FSOUND_Sample_Get Lib "fmod.dll" Alias "_FSOUND_Sample_Get@4" (ByVal sampno As Long) As Long
Public Declare Function FSOUND_Sample_GetName Lib "fmod.dll" Alias "_FSOUND_Sample_GetName@4" (ByVal sptr As Long) As Long
Public Declare Function FSOUND_Sample_GetLength Lib "fmod.dll" Alias "_FSOUND_Sample_GetLength@4" (ByVal sptr As Long) As Long
Public Declare Function FSOUND_Sample_GetLoopPoints Lib "fmod.dll" Alias "_FSOUND_Sample_GetLoopPoints@12" (ByVal sptr As Long, ByRef loopstart As Long, ByRef loopend As Long) As Byte
Public Declare Function FSOUND_Sample_GetDefaults Lib "fmod.dll" Alias "_FSOUND_Sample_GetDefaults@20" (ByVal sptr As Long, ByRef deffreq As Long, ByRef defvol As Long, ByRef defpan As Long, ByRef defpri As Long) As Byte
Public Declare Function FSOUND_Sample_GetDefaultsEx Lib "fmod.dll" Alias "_FSOUND_Sample_GetDefaultsEx@32" (ByVal sptr As Long, ByRef deffreq As Long, ByRef defvol As Long, ByRef defpan As Long, ByRef defpri As Long, ByRef varfreq As Long, ByRef varvol As Long, ByRef varpan As Long) As Byte
Public Declare Function FSOUND_Sample_GetMode Lib "fmod.dll" Alias "_FSOUND_Sample_GetMode@4" (ByVal sptr As Long) As Long
Public Declare Function FSOUND_Sample_GetMinMaxDistance Lib "fmod.dll" Alias "_FSOUND_Sample_GetMinMaxDistance@12" (ByVal sptr As Long, ByRef min As Single, ByRef max As Single) As Byte
'/* ============================ */
'/* Channel control functions. */
'/* ============================ */
' Playing and stopping sounds.
' Note : Use FSOUND_FREE as the channel variable, to let FMOD pick a free channel for you.
' Use FSOUND_ALL as the channel variable to control ALL channels with one function call!
Public Declare Function FSOUND_PlaySound Lib "fmod.dll" Alias "_FSOUND_PlaySound@8" (ByVal channel As Long, ByVal sptr As Long) As Long
Public Declare Function FSOUND_PlaySoundEx Lib "fmod.dll" Alias "_FSOUND_PlaySoundEx@16" (ByVal channel As Long, ByVal sptr As Long, ByVal dsp As Long, ByVal startpaused As Byte) As Long
Public Declare Function FSOUND_StopSound Lib "fmod.dll" Alias "_FSOUND_StopSound@4" (ByVal channel As Long) As Byte
' Functions to control playback of a channel.
' Note : FSOUND_ALL can be used on most of these functions as a channel value.
Public Declare Function FSOUND_SetFrequency Lib "fmod.dll" Alias "_FSOUND_SetFrequency@8" (ByVal channel As Long, ByVal freq As Long) As Byte
Public Declare Function FSOUND_SetVolume Lib "fmod.dll" Alias "_FSOUND_SetVolume@8" (ByVal channel As Long, ByVal Vol As Long) As Byte
Public Declare Function FSOUND_SetVolumeAbsolute Lib "fmod.dll" Alias "_FSOUND_SetVolumeAbsolute@8" (ByVal channel As Long, ByVal Vol As Long) As Byte
Public Declare Function FSOUND_SetPan Lib "fmod.dll" Alias "_FSOUND_SetPan@8" (ByVal channel As Long, ByVal pan As Long) As Byte
Public Declare Function FSOUND_SetSurround Lib "fmod.dll" Alias "_FSOUND_SetSurround@8" (ByVal channel As Long, ByVal surround As Long) As Byte
Public Declare Function FSOUND_SetMute Lib "fmod.dll" Alias "_FSOUND_SetMute@8" (ByVal channel As Long, ByVal mute As Byte) As Byte
Public Declare Function FSOUND_SetPriority Lib "fmod.dll" Alias "_FSOUND_SetPriority@8" (ByVal channel As Long, ByVal Priority As Long) As Byte
Public Declare Function FSOUND_SetReserved Lib "fmod.dll" Alias "_FSOUND_SetReserved@8" (ByVal channel As Long, ByVal reserved As Long) As Byte
Public Declare Function FSOUND_SetPaused Lib "fmod.dll" Alias "_FSOUND_SetPaused@8" (ByVal channel As Long, ByVal Paused As Byte) As Byte
Public Declare Function FSOUND_SetLoopMode Lib "fmod.dll" Alias "_FSOUND_SetLoopMode@8" (ByVal channel As Long, ByVal loopmode As Long) As Byte
Public Declare Function FSOUND_SetCurrentPosition Lib "fmod.dll" Alias "_FSOUND_SetCurrentPosition@8" (ByVal channel As Long, ByVal offset As Long) As Byte
Public Declare Function FSOUND_3D_SetAttributes Lib "fmod.dll" Alias "_FSOUND_3D_SetAttributes@12" (ByVal channel As Long, ByRef Pos As Single, ByRef vel As Single) As Byte
Public Declare Function FSOUND_3D_SetMinMaxDistance Lib "fmod.dll" Alias "_FSOUND_3D_SetMinMaxDistance@12" (ByVal channel As Long, ByVal min As Single, ByVal max As Single) As Byte
'
' Channel information functions.
'
Public Declare Function FSOUND_IsPlaying Lib "fmod.dll" Alias "_FSOUND_IsPlaying@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_GetFrequency Lib "fmod.dll" Alias "_FSOUND_GetFrequency@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetVolume Lib "fmod.dll" Alias "_FSOUND_GetVolume@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetAmplitude Lib "fmod.dll" Alias "_FSOUND_GetAmplitude@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetPan Lib "fmod.dll" Alias "_FSOUND_GetPan@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetSurround Lib "fmod.dll" Alias "_FSOUND_GetSurround@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_GetMute Lib "fmod.dll" Alias "_FSOUND_GetMute@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_GetPriority Lib "fmod.dll" Alias "_FSOUND_GetPriority@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetReserved Lib "fmod.dll" Alias "_FSOUND_GetReserved@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_GetPaused Lib "fmod.dll" Alias "_FSOUND_GetPaused@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_GetLoopMode Lib "fmod.dll" Alias "_FSOUND_GetLoopMode@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetCurrentPosition Lib "fmod.dll" Alias "_FSOUND_GetCurrentPosition@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetCurrentSample Lib "fmod.dll" Alias "_FSOUND_GetCurrentSample@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetCurrentLevels Lib "fmod.dll" Alias "_FSOUND_GetCurrentLevels@12" (ByVal channel As Long, ByRef l As Single, ByRef r As Single) As Byte
Public Declare Function FSOUND_GetNumSubChannels Lib "fmod.dll" Alias "_FSOUND_GetNumSubChannels@4" (ByVal channel As Long) As Long
Public Declare Function FSOUND_GetSubChannel Lib "fmod.dll" Alias "_FSOUND_GetSubChannel@8" (ByVal channel As Long, ByVal subchannel As Long) As Long
Public Declare Function FSOUND_3D_GetAttributes Lib "fmod.dll" Alias "_FSOUND_3D_GetAttributes@12" (ByVal channel As Long, ByRef Pos As Single, ByRef vel As Single) As Byte
Public Declare Function FSOUND_3D_GetMinMaxDistance Lib "fmod.dll" Alias "_FSOUND_3D_GetMinMaxDistance@12" (ByVal channel As Long, ByRef min As Single, ByRef max As Single) As Byte
'/* ========================== */
'/* Global 3D sound functions. */
'/* ========================== */
'
' See also 3d sample and channel based functions above.
' Call FSOUND_Update once a frame to process 3d information.
'
Public Declare Function FSOUND_3D_Listener_SetCurrent Lib "fmod.dll" Alias "_FSOUND_3D_Listener_SetCurrent@8" (ByVal current As Long) As Long
Public Declare Function FSOUND_3D_Listener_SetAttributes Lib "fmod.dll" Alias "_FSOUND_3D_Listener_SetAttributes@32" (ByVal Pos As Single, ByVal vel As Single, ByVal fx As Single, ByVal fy As Single, ByVal fz As Single, ByVal tx As Single, ByVal ty As Single, ByVal tz As Single) As Long
Public Declare Function FSOUND_3D_Listener_GetAttributes Lib "fmod.dll" Alias "_FSOUND_3D_Listener_GetAttributes@32" (ByRef Pos As Single, ByRef vel As Single, ByRef fx As Single, ByRef fy As Single, ByRef fz As Single, ByRef tx As Single, ByRef ty As Single, ByRef tz As Single) As Long
Public Declare Function FSOUND_3D_SetDopplerFactor Lib "fmod.dll" Alias "_FSOUND_3D_SetDopplerFactor@4" (ByVal fscale As Single) As Long
Public Declare Function FSOUND_3D_SetDistanceFactor Lib "fmod.dll" Alias "_FSOUND_3D_SetDistanceFactor@4" (ByVal fscale As Single) As Long
Public Declare Function FSOUND_3D_SetRolloffFactor Lib "fmod.dll" Alias "_FSOUND_3D_SetRolloffFactor@4" (ByVal fscale As Single) As Long
'/* =================== */
'/* FX functions. */
'/* =================== */
' Functions to control DX8 only effects processing.
'
' - FX enabled samples can only be played once at a time, not multiple times at once.
' - Sounds have to be created with FSOUND_HW2D or FSOUND_HW3D for this to work.
' - FSOUND_INIT_ENABLESYSTEMCHANNELFX can be used to apply hardware effect processing to the
' global mixed output of FMOD's software channels.
' - FSOUND_FX_Enable returns an FX handle that you can use to alter fx parameters.
' - FSOUND_FX_Enable can be called multiple times in a row, even on the same FX type,
' it will return a unique handle for each FX.
' - FSOUND_FX_Enable cannot be called if the sound is playing or locked.
' - FSOUND_FX_Disable must be called to reset/clear the FX from a channel.
Public Declare Function FSOUND_FX_Enable Lib "fmod.dll" Alias "_FSOUND_FX_Enable@8" (ByVal channel As Long, ByVal fx As FSOUND_FX_MODES) As Long
Public Declare Function FSOUND_FX_Disable Lib "fmod.dll" Alias "_FSOUND_FX_Disable@4" (ByVal channel As Long) As Byte
Public Declare Function FSOUND_FX_SetChorus Lib "fmod.dll" Alias "_FSOUND_FX_SetChorus@32" (ByVal fxid As Long, ByVal WetDryMix As Single, ByVal Depth As Single, ByVal Feedback As Single, ByVal Frequency As Single, ByVal Waveform As Long, ByVal Delay As Single, ByVal Phase As Long) As Byte
Public Declare Function FSOUND_FX_SetCompressor Lib "fmod.dll" Alias "_FSOUND_FX_SetCompressor@28" (ByVal fxid As Long, ByVal Gain As Single, ByVal Attack As Single, ByVal Release As Single, ByVal Threshold As Single, ByVal Ratio As Single, ByVal Predelay As Single) As Byte
Public Declare Function FSOUND_FX_SetDistortion Lib "fmod.dll" Alias "_FSOUND_FX_SetDistortion@24" (ByVal fxid As Long, ByVal Gain As Single, ByVal Edge As Single, ByVal PostEQCenterFrequency As Single, ByVal PostEQBandwidth As Single, ByVal PreLowpassCutoff As Single) As Byte
Public Declare Function FSOUND_FX_SetEcho Lib "fmod.dll" Alias "_FSOUND_FX_SetEcho@24" (ByVal fxid As Long, ByVal WetDryMix As Single, ByVal Feedback As Single, ByVal LeftDelay As Single, ByVal RightDelay As Single, ByVal PanDelay As Long) As Byte
Public Declare Function FSOUND_FX_SetFlanger Lib "fmod.dll" Alias "_FSOUND_FX_SetFlanger@32" (ByVal fxid As Long, ByVal WetDryMix As Single, ByVal Depth As Single, ByVal Feedback As Single, ByVal Frequency As Single, ByVal Waveform As Long, ByVal Delay As Single, ByVal Phase As Long) As Byte
Public Declare Function FSOUND_FX_SetGargle Lib "fmod.dll" Alias "_FSOUND_FX_SetGargle@12" (ByVal fxid As Long, ByVal RateHz As Long, ByVal WaveShape As Long) As Byte
Public Declare Function FSOUND_FX_SetI3DL2Reverb Lib "fmod.dll" Alias "_FSOUND_FX_SetI3DL2Reverb@52" (ByVal fxid As Long, ByVal Room As Long, ByVal RoomHF As Long, ByVal RoomRolloffFactor As Single, ByVal DecayTime As Single, ByVal DecayHFRatio As Single, ByVal Reflections As Long, ByVal ReflectionsDelay As Single, ByVal Reverb As Long, ByVal ReverbDelay As Single, ByVal Diffusion As Single, ByVal Density As Single, ByVal HFReference As Single) As Byte
Public Declare Function FSOUND_FX_SetParamEQ Lib "fmod.dll" Alias "_FSOUND_FX_SetParamEQ@16" (ByVal fxid As Long, ByVal Center As Single, ByVal Bandwidth As Single, ByVal Gain As Single) As Byte
Public Declare Function FSOUND_FX_SetWavesReverb Lib "fmod.dll" Alias "_FSOUND_FX_SetWavesReverb@20" (ByVal fxid As Long, ByVal InGain As Single, ByVal ReverbMix As Single, ByVal ReverbTime As Single, ByVal HighFreqRTRatio As Single) As Byte
' ========================= */
' File Streaming functions. */
' ========================= */
'
' Note : Use FSOUND_LOADMEMORY flag with FSOUND_Stream_Open to stream from memory.
' Use FSOUND_LOADRAW flag with FSOUND_Stream_Open to treat stream as raw pcm data.
' Use FSOUND_MPEGACCURATE flag with FSOUND_Stream_Open to open mpegs in 'accurate mode' for settime/gettime/getlengthms.
' Use FSOUND_FREE as the 'channel' variable, to let FMOD pick a free channel for you.
'
Public Declare Function FSOUND_Stream_SetBufferSize Lib "fmod.dll" Alias "_FSOUND_Stream_SetBufferSize@4" (ByVal ms As Long) As Byte
Public Declare Function FSOUND_Stream_Open Lib "fmod.dll" Alias "_FSOUND_Stream_Open@16" (ByVal filename As String, ByVal mode As FSOUND_MODES, ByVal offset As Long, ByVal length As Long) As Long
Public Declare Function FSOUND_Stream_Open2 Lib "fmod.dll" Alias "_FSOUND_Stream_Open@16" (ByRef data As Byte, ByVal mode As FSOUND_MODES, ByVal offset As Long, ByVal length As Long) As Long
Public Declare Function FSOUND_Stream_Create Lib "fmod.dll" Alias "_FSOUND_Stream_Create@20" (ByVal callback As Long, ByVal length As Long, ByVal mode As Long, ByVal samplerate As Long, ByVal userdata As Long) As Long
Public Declare Function FSOUND_Stream_Close Lib "fmod.dll" Alias "_FSOUND_Stream_Close@4" (ByVal stream As Long) As Byte
Public Declare Function FSOUND_Stream_Play Lib "fmod.dll" Alias "_FSOUND_Stream_Play@8" (ByVal channel As Long, ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_PlayEx Lib "fmod.dll" Alias "_FSOUND_Stream_PlayEx@16" (ByVal channel As Long, ByVal stream As Long, ByVal dsp As Long, ByVal startpaused As Byte) As Long
Public Declare Function FSOUND_Stream_Stop Lib "fmod.dll" Alias "_FSOUND_Stream_Stop@4" (ByVal stream As Long) As Byte
Public Declare Function FSOUND_Stream_SetPosition Lib "fmod.dll" Alias "_FSOUND_Stream_SetPosition@8" (ByVal stream As Long, ByVal positition As Long) As Byte
Public Declare Function FSOUND_Stream_GetPosition Lib "fmod.dll" Alias "_FSOUND_Stream_GetPosition@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_SetTime Lib "fmod.dll" Alias "_FSOUND_Stream_SetTime@8" (ByVal stream As Long, ByVal ms As Long) As Byte
Public Declare Function FSOUND_Stream_GetTime Lib "fmod.dll" Alias "_FSOUND_Stream_GetTime@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_GetLength Lib "fmod.dll" Alias "_FSOUND_Stream_GetLength@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_GetLengthMs Lib "fmod.dll" Alias "_FSOUND_Stream_GetLengthMs@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_SetMode Lib "fmod.dll" Alias "_FSOUND_Stream_SetMode@8" (ByVal stream As Long, ByVal mode As Long) As Byte
Public Declare Function FSOUND_Stream_GetMode Lib "fmod.dll" Alias "_FSOUND_Stream_GetMode@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_SetLoopPoints Lib "fmod.dll" Alias "_FSOUND_Stream_SetLoopPoints@12" (ByVal stream As Long, ByVal loopstartpcm As Long, ByVal loopendpcm As Long) As Byte
Public Declare Function FSOUND_Stream_SetLoopCount Lib "fmod.dll" Alias "_FSOUND_Stream_SetLoopCount@8" (ByVal stream As Long, ByVal count As Long) As Byte
Public Declare Function FSOUND_Stream_GetOpenState Lib "fmod.dll" Alias "_FSOUND_Stream_GetOpenState@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_GetSample Lib "fmod.dll" Alias "_FSOUND_Stream_GetSample@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_CreateDSP Lib "fmod.dll" Alias "_FSOUND_Stream_CreateDSP@16" (ByVal stream As Long, ByVal callback As Long, ByVal Priority As Long, ByVal userdata As Long) As Long
Public Declare Function FSOUND_Stream_SetEndCallback Lib "fmod.dll" Alias "_FSOUND_Stream_SetEndCallback@12" (ByVal stream As Long, ByVal callback As Long, ByVal userdata As Long) As Byte
Public Declare Function FSOUND_Stream_SetSyncCallback Lib "fmod.dll" Alias "_FSOUND_Stream_SetSyncCallback@12" (ByVal stream As Long, ByVal callback As Long, ByVal userdata As Long) As Byte
Public Declare Function FSOUND_Stream_AddSyncPoint Lib "fmod.dll" Alias "_FSOUND_Stream_AddSyncPoint@12" (ByVal stream As Long, ByVal pcmoffset As Long, ByVal name As String) As Long
Public Declare Function FSOUND_Stream_DeleteSyncPoint Lib "fmod.dll" Alias "_FSOUND_Stream_DeleteSyncPoint@4" (ByVal point As Long) As Byte
Public Declare Function FSOUND_Stream_GetNumSyncPoints Lib "fmod.dll" Alias "_FSOUND_Stream_GetNumSyncPoints@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_GetSyncPoint Lib "fmod.dll" Alias "_FSOUND_Stream_GetSyncPoint@8" (ByVal stream As Long, ByVal index As Long) As Long
Public Declare Function FSOUND_Stream_GetSyncPointInfo Lib "fmod.dll" Alias "_FSOUND_Stream_GetSyncPointInfo@8" (ByVal point As Long, ByRef pcmoffset As Long) As Long
Public Declare Function FSOUND_Stream_SetSubStream Lib "fmod.dll" Alias "_FSOUND_Stream_SetSubStream@8" (ByVal stream As Long, ByVal index As Long) As Byte
Public Declare Function FSOUND_Stream_GetNumSubStreams Lib "fmod.dll" Alias "_FSOUND_Stream_GetNumSubStreams@4" (ByVal stream As Long) As Long
Public Declare Function FSOUND_Stream_SetSubStreamSentence Lib "fmod.dll" Alias "_FSOUND_Stream_SetSubStreamSentence@12" (ByVal stream As Long, ByRef sentencelist As Long, ByVal numitems As Long) As Byte
Public Declare Function FSOUND_Stream_GetNumTagFields Lib "fmod.dll" Alias "_FSOUND_Stream_GetNumTagFields@8" (ByVal stream As Long, ByRef num As Long) As Byte
Public Declare Function FSOUND_Stream_GetTagField Lib "fmod.dll" Alias "_FSOUND_Stream_GetTagField@24" (ByVal stream As Long, ByVal num As Long, ByRef tagtype As Long, ByRef name As Long, ByRef value As Long, ByRef length As Long) As Byte
Public Declare Function FSOUND_Stream_FindTagField Lib "fmod.dll" Alias "_FSOUND_Stream_FindTagField@20" (ByVal stream As Long, ByVal tagtype As Long, ByVal name As String, ByRef value As Long, ByRef length As Long) As Byte
'
' Internet streaming functions
'
Public Declare Function FSOUND_Stream_Net_SetProxy Lib "fmod.dll" Alias "_FSOUND_Stream_Net_SetProxy@4" (ByVal proxy As String) As Byte
Public Declare Function FSOUND_Stream_Net_GetLastServerStatus Lib "fmod.dll" Alias "_FSOUND_Stream_Net_GetLastServerStatus@0" () As Long
Public Declare Function FSOUND_Stream_Net_SetBufferProperties Lib "fmod.dll" Alias "_FSOUND_Stream_Net_SetBufferProperties@12" (ByVal buffersize As Long, ByVal prebuffer_percent As Long, ByVal rebuffer_percent As Long) As Byte
Public Declare Function FSOUND_Stream_Net_GetBufferProperties Lib "fmod.dll" Alias "_FSOUND_Stream_Net_GetBufferProperties@12" (ByRef buffersize As Long, ByRef prebuffer_percent As Long, ByRef rebuffer_percent As Long) As Byte
Public Declare Function FSOUND_Stream_Net_SetMetadataCallback Lib "fmod.dll" Alias "_FSOUND_Stream_Net_SetMetadataCallback@12" (ByVal stream As Long, ByVal callback As Long, ByVal userdata As Long) As Byte
Public Declare Function FSOUND_Stream_Net_GetStatus Lib "fmod.dll" Alias "_FSOUND_Stream_Net_GetStatus@20" (ByVal stream As Long, ByRef status As Long, ByRef bufferpercentused As Long, ByRef bitrate As Long, ByRef flags As Long) As Byte
'/* =================== */
'/* CD audio functions. */
'/* =================== */
' Note : 0 = default cdrom. Otherwise specify the drive letter, for example. 'D'.
Public Declare Function FSOUND_CD_Play Lib "fmod.dll" Alias "_FSOUND_CD_Play@8" (ByVal drive As Byte, ByVal Track As Long) As Byte
Public Declare Function FSOUND_CD_SetPlayMode Lib "fmod.dll" Alias "_FSOUND_CD_SetPlayMode@8" (ByVal drive As Byte, ByVal mode As FSOUND_CDPLAYMODES) As Long
Public Declare Function FSOUND_CD_Stop Lib "fmod.dll" Alias "_FSOUND_CD_Stop@4" (ByVal drive As Byte) As Byte
Public Declare Function FSOUND_CD_SetPaused Lib "fmod.dll" Alias "_FSOUND_CD_SetPaused@8" (ByVal drive As Byte, ByVal Paused As Byte) As Byte
Public Declare Function FSOUND_CD_SetVolume Lib "fmod.dll" Alias "_FSOUND_CD_SetVolume@8" (ByVal drive As Byte, ByVal volume As Long) As Byte
Public Declare Function FSOUND_CD_SetTrackTime Lib "fmod.dll" Alias "_FSOUND_CD_SetTrackTime@8" (ByVal drive As Byte, ByVal ms As Long) As Byte
Public Declare Function FSOUND_CD_OpenTray Lib "fmod.dll" Alias "_FSOUND_CD_OpenTray@8" (ByVal drive As Byte, ByVal openState As Byte) As Byte
Public Declare Function FSOUND_CD_GetPaused Lib "fmod.dll" Alias "_FSOUND_CD_GetPaused@4" (ByVal drive As Byte) As Byte
Public Declare Function FSOUND_CD_GetTrack Lib "fmod.dll" Alias "_FSOUND_CD_GetTrack@4" (ByVal drive As Byte) As Long
Public Declare Function FSOUND_CD_GetNumTracks Lib "fmod.dll" Alias "_FSOUND_CD_GetNumTracks@4" (ByVal drive As Byte) As Long
Public Declare Function FSOUND_CD_GetVolume Lib "fmod.dll" Alias "_FSOUND_CD_GetVolume@4" (ByVal drive As Byte) As Long
Public Declare Function FSOUND_CD_GetTrackLength Lib "fmod.dll" Alias "_FSOUND_CD_GetTrackLength@8" (ByVal drive As Byte, ByVal Track As Long) As Long
Public Declare Function FSOUND_CD_GetTrackTime Lib "fmod.dll" Alias "_FSOUND_CD_GetTrackTime@4" (ByVal drive As Byte) As Long
'/* ============== */
'/* DSP functions. */
'/* ============== */
' DSP Unit control and information functions.
' These functions allow you access to the mixed stream that FMOD uses to play back sound on.
Public Declare Function FSOUND_DSP_Create Lib "fmod.dll" Alias "_FSOUND_DSP_Create@12" (ByVal callback As Long, ByVal Priority As Long, ByVal param As Long) As Long
Public Declare Function FSOUND_DSP_Free Lib "fmod.dll" Alias "_FSOUND_DSP_Free@4" (ByVal unit As Long) As Long
Public Declare Function FSOUND_DSP_SetPriority Lib "fmod.dll" Alias "_FSOUND_DSP_SetPriority@8" (ByVal unit As Long, ByVal Priority As Long) As Long
Public Declare Function FSOUND_DSP_GetPriority Lib "fmod.dll" Alias "_FSOUND_DSP_GetPriority@4" (ByVal unit As Long) As Long
Public Declare Function FSOUND_DSP_SetActive Lib "fmod.dll" Alias "_FSOUND_DSP_SetActive@8" (ByVal unit As Long, ByVal active As Integer) As Long
Public Declare Function FSOUND_DSP_GetActive Lib "fmod.dll" Alias "_FSOUND_DSP_GetActive@4" (ByVal unit As Long) As Byte
' Functions to get hold of FSOUND 'system DSP unit' handles
Public Declare Function FSOUND_DSP_GetClearUnit Lib "fmod.dll" Alias "_FSOUND_DSP_GetClearUnit@0" () As Long
Public Declare Function FSOUND_DSP_GetSFXUnit Lib "fmod.dll" Alias "_FSOUND_DSP_GetSFXUnit@0" () As Long
Public Declare Function FSOUND_DSP_GetMusicUnit Lib "fmod.dll" Alias "_FSOUND_DSP_GetMusicUnit@0" () As Long
Public Declare Function FSOUND_DSP_GetFFTUnit Lib "fmod.dll" Alias "_FSOUND_DSP_GetFFTUnit@0" () As Long
Public Declare Function FSOUND_DSP_GetClipAndCopyUnit Lib "fmod.dll" Alias "_FSOUND_DSP_GetClipAndCopyUnitias "_FSOUND_LongOUND_DSP_GetMusicUnit Lib "fmod.dll" AliaF_FSOUND_CD_GetTrack@4" (ByVal dtTrack@4" (ByVareamare Function FSOUND_pyUnit Lib "fmod.dll" Alip dtTrack@4" (ByVareamNNde@4ream tMusi_GetMusicI As Sial samp_NevAs Long4reamunction FSOUND_Stream_Open2 Lib "fmod.dll"l'/a Function FSOUND_CD_GetNumTracks Lib "fns alls Long4reamunction FSOUND_Stream_Opion FSOUND_Stream_Opion FSOUND_S (ByVovI"l'/a Fu1LibCD_GetNumTracks Lib "fns alls Long4reset As Long, ByVaetMusicI LImalls Long4reset As Long, ByVaetMeUEsicI e" (BOlare Function FSOUND_GetAmplitude Lib "fmod.dll" Alias "_FSOUND_GetAmplial DSP_GeLolclare Function FSOUND_SetPriority Lib "fmod.dll" Alias "_FSOUND_SetPrns te, ByVal'/a F "_FSl" Alias "_FSOUND_SetPr*pyUnit Liias "_FSOUND_Stream_Ne)ltByVal stream As Long, ByVal modias "_FSOUND_DSP_GetFFTUnit@0" () As Long
Public Declare Function/ SteEalare Function/ SteEalare Function/ SteEaRlare Function/ Stexm As Lg
PuteEaRlareu"_FSOU_Stretion/ Stexm As Lg
PuteEaRlareu"_FSOU_Stretion/ Stexm A_FSOU_Stretion/ Stle_SetCallbacks@20" (ByVal OpenCallback A l Reflection(ByVaByVal Track As Long) As Long
Public c/ Stle_SetMusicUnit Lib "fmod.dll" Alias "_ong
Public c/ Stle_SetMusicUniicUnit Libial loopeSOUND_Stream_GetTime@4" (ByVal stre"fmod.dll" Alias al stre"fmo 'system DSP unit' handles
Public Declare Fu_SetPriorityfm rhlias al stre"fmo 'system DSP unit' handles
Public Det' hancal LeftDelay As Single,El DecletActive@4" (ByVal unit As Long) As Byte
' (h"fmo DSP uSOUN8" (B stre"fmod.dll" Alias al stre"fmo 'system DSP unit' handles
Public DeclaroiI(ByVal sptr As sptr As LtTic Dnve As By" Alil" FSOUND sptr m_Opstre4OUND_r.dll m_Oo_GetNumTracaroim As Lgpive@4"A:P_GeEtretionae,mod.dlrhlias s Long4nction FSOUND_Stream_GetSyncPointtr As sptr r AsSP unic Dnve As By" Alil" FSOUND unit' hancadlrhlinoffise sption nND b "fmod.dll" Alias "_FSOUND_Stream_SetSubStream@8" (sItSubStream@8" (SyncPointtr AOUND_GVs Byte, BynUmod.dll", BynUmod.dll", BynUmeD_GVs Byte,ETutRate Lib "fmod..mod.dll", BynGate Lib "fmod..mod.dll", BynGaterte
' (h"fmo DSceFactor Lib "fmod.dll" Alias "_FSOUND_3D_SetDistanc Byte, BynUmod.dll", BynUmod.dll", BynUmeD_GVs Byte,ETutRate Lib "fmod..mod.dll", BynGate L're Function FSOUND_StrFSOUND_SetMaxHardwareCha Rare FeMaxHardwareChaPa Raras "UIYtio A=ue,ETutRate Lib celay AnUmod.dll", BynUmeD_GVs Byte,ETutRate Lib "fmod.od.l" Umodaras "UIYtio A=ue,etPrioring, ByVal mode As FSOUNwIYtio A=ue,m_Set access tt_FSOUND_FX_SetI3DL2ReverbeIYtio A=ue,m_Set access tt_FSOUND_FAre FunctietCeclare Function FSOUND_CD_SetTrackTime Lib "fmod.dll" Al Lib "fmod.dll" Ah"fmo DSceFactor Lib "fmod.dll" Alias "_Faterte
' (h"fmo DSceFactor Lib "fmod.dll" Alias "_FShlow e Function FSOUND_DSP_GetActive Lib "fmod.dll"cess tt_FSOUND_FX_SetI3DL2ReverbeI3NLDSceFactor Lib "fmod Lib "fmod.dll" Alias "_FSOUND_CD_GetTrack@4" (BeD_CD_GetTrack@4" (BeD_CD_Geta,VUND_StrFSOUND_SetMaxHardwareChang, ByVal userdata AOFyFreeeI3NLDSceFased@4" (ByVVal usrdata A4" (ByVVal usrdata A4" (ByVVal usrdata A_StrFSOUND_SetMaxHardwareMLrNatAial DSP_GeLolclare Function FSOUNAs FSOUND_CDPLAYMODES) As Long
Public De5ND_DSP_GetFFTUnit@0"Val drive As Byte)e
Public DecvNUnit@0"miana As Long) As Lcqion uclare Fu_SetPriorityfm rhlian A4" osition@4" (ByVal F, ByVal Room As Long,ND_FX_Sm_GetTime Lib "fmod.dll" Alias "_: dSOUl usrdata A4" (ByVVal usrdata A4" (Bydnnnnnnnnnnnnl usrdata A4" (BysD_Stream_GetPosition@4" (ByVal vNUnit@0"sLrNatAial DSP_GeByVValtByVal drive As Byte) As Long
Pub_3D_GetAttr As Sinl"IysPuboreCha Rare FeMaxod.dll" Alias al stretMaxHarFeMaxod.dll" Alias al stretMaxHarF As Long
PubftDelay DPXras "_FhoicMard FeMaxHaFhoicg, ByRef valuWAs Lal drMDare al stretMaxpen tuWAs Lal drlias al aroiI(ByVal s LorubftDelrVal drlias al aroiI(ByVal s Loru aroiI(ByVal s LorubftDelrVal drlias al aroiI(ByVnor LibSceFased@4" (ByVVal usrdata A4" (ByVVal usrdata ata A4" (BUND_tion FSOU_SetEoubftDelrVal drlias al aroiI(ByVal s Loru aroiI(ByVal s LorufGetCurrentLevelFnd Lib "d ByVal PriorityoLll" AlO4" (Byias "_FSOUND_sing to thel s LorufGetCurrention nNnMxHardwareChaPa R", BynUmeD_GPa R", BynUmeD_GPa R", Bn", BStream_Gu aroiI(pth As SiFaterte
am_GetNumSyncrityoHod.d Long
PublirityoHod.d
eD_GPa Rcc Declare Function FSOUND_DSP_GetClear4" (ByVal vNUnit@0"sLrNatAial DSP
' INSP
' pFMOD
Public Declare Function FSOUND_CD_GetTrack o3cc DeclND_CD_GetTrack ion FSOUND_GetPrita A4" (BysD_StreyVal PriorityoLllieam_Se4" (BysD_StreyVal PriorityoLllieam_Se4" (BysD_StreyVetFFPrita A4" (Bias "_FSOUND_CD_GetTrack@4" (BeD_CD_GetTrackck@4" (BeD_CD_GetTrackck@4" (BeD_CD_GetTrackck@4" (Bam_Se4" (By(Bias "_FSOUND_CD_GetTrack@4" (BeD_CD_GetTrackck@4etPrioFSOUND_te
PubNDmod.dll" :actions."_FSOUND_CD_T(Pritad..modinl loopstaF'hEaRlisyValervtNumSynlGsob "fmod.dll" Alias ")uFSOUND_Streabe iD
ackck@4uFSOna"aLs ")uFSOUND_Streabe iD
ackck@4uFSOna"aLs ")uFSOUND_Streabe iD
ackck@4uFSOna"aLs ")uFSOUND_Streabe iD
ackck@4uFSOna"aLs r As G's r As Pna"a unit'4lare loopstreabe iDDckck Declare Functina"aLslnctt@0"m.dll" Alias "_FSOUND_idinl loopstaF'hEaRlisyValervtNumSynlGsobustaF'hEaRl
Public D1Tas "TAs Long
PubhublirRH, ByVal lePtblic D1Tasy()e
PI3NLDSceFased"fmod.dll"usicI LImalls Long4r"usicI Fib "fmg) As Byte
Public Declare Function FSOUND_Stclare Function FSOUND_Stclare Function FSOUND_Stclare Function FSOUND_Sd() As LByVal vriy()e
Public
Public ses Byte
Public Declare Function FSOuses Bytic
Public ses ByteED_T(Pritad..mFunction FSOUND_StclpcPoinPeteED_T(Prlic se:inPetUND_eclare Fulkck@4uFSOna"a'aCte
Public D_te
MS'
Public D_te
iy()e
Public
Public ses Byte
PAMD
Public ses Byte
PAMD
Pu(By()etm_Ne)ltByVal stream As Long, ByVal modias "_FSOUND_DSP_GetFFTUnit@0" () As Long
Publd.dl modias at s "_ByVa()etm_Ne)ltBys "_ByVa()etm_Ne)ltBys "_Bydll", BynUmeD_GVs ByteGtaSblic Declare Function Fias "rdF
Publidth As SinglnitliDDckck l name As StrVdr As SingES) As LorVdr A_Gtrio
'/*IetNmic " Al.dllw*IetNmicyVPbOFSOUN A_Gtrio
'/*IetNmic " Al.dllw*IetNmicyVPbOFSOUN A_Gt lMSynlSl'ecvNr "_Gc se:inPetUND_eclare Fulkck@4uFSrOUNDr "_Gc se:inPetUetUND_eclare Fulkck@4uFSrOUNDr "" loo Declare Function FSOUND_DSP_GetMusicUniDeclarSrOUNDr "e Function UND_Stream_SetEndCallback@12" As Long
Publd.dl modias at s "_ByVa(UMusicUniDP Long) As ByteT3nction FSOGc setoutput of FMODSrOUNDr "_tput of FMODSrOUNDr Function UND_Stream_SetEndCallback@UNDr "" loo Declare Function FSOUND_DSP_GetMusyfm k@UNDr "" loo Declare Function FSOUND_DScyVPH2as "rdF
Public DecvNUnias "rdF
Publidi@UNDr "" loo Declare FunDyte
PAMD
re FuEMORYAs BMo Declare Function FSOUND_DSP_Gl name As StrVdr As SingES) As LorVdr A_Gtrio
'/*IetNmic " Al.dllw*IetNmicyaFSOna"aLs r As G's r As Pna"a un SingES) As LorVdr A_Gtrio
'/*InINnnnnnnnnnnnnnnnnnnnnnnunDyte
PAs LoINnnnnnnnndllw*Iemod.dll" AliaoLoyVal , Byu aF'hEaRlar(Bym_r.dll m_Oo_GetNumTracaroim As Lgpive@4"A:nnnnMsclare Fun_ERnnnn/, ByVal min Asllw*Iemod.dll" AliaoLoyVal , ByI m k@UNDr "" l" AliaoLoyyVa()etm_Aliaoare Fun_EFunctina"aLslnctt@0"m.dll" Alias "_aLslnming functioOtream_
Public DecvNUnias "r "" l" AliaoLoyyV Sinl WetDryMix As SinSliaoare ),oru arsor@ck@4" .d
eD_GPa Rcc Declare Fual dGGGGAtion _GtrioGc dGGGGIAliaoIns."_F - S aF'hEaRAliasction FSOUND_DSP_Gl name As StrVdr As SingES) As LorVdr A_Gtrioe Fuas. */
Publ Singru arr@utxldhiD(oa ========= Strr As G's r At As Long,20" (ByVion FSOUND_DSP_GetClear4" (BydllwzhEaRl
Public 4" (Bytream_Net_GetBufferProperties Libtream_NSllw*Ie5m_Net_GetBufferProperties Libtream_NSllw*Ieu,_Gl name As Styte
Pre Functiet8" (ByVufferPropw*ItBuffEGLByVal RoomRootTnAYblicewiIPropw*ItBuffnPetUND_"m.d:_a_GPa Rc As SpeI(ByVufferPropw
etUND_r As Sinl"INIon FRSItBu BytHet_GetBuffe lMSlw*I,),oru arsor@ck@EQBandwidth As SingXM_SetPlayMode Lib "fmod.dll" Alia/*IetNmVnMsclGGsor@ck@4" .d
eD_GPa Rcc Declare Function FSOUND_DSP_GetClear4" (ByVal vhatare Function FSall" Alias ")uFSOUND_Stream_SetstBufferSize LibHLPu(By()etm_Ne)ltByVal stream As Long, ByVal modias "_FSIIStrV3aetUND, ByVal modias "_FSIIStrV3aetUNDLibion ucack@4" (BeD_CTrack@4" aGetCleneD_CTrack@4" aGetClenMrw*Ieu,_Tnnnnnnndllw*Iemod.dll" Al'ng functioOtream_
Public DecvN Alia/d.dllPFSOUND_StrCion UND_CD_OpenTray@8" (ByVal drive AsUoru arsor@ck@EAhOi6ncPoints r Acca ==ru'M2od.dll" Al'laryten@4" (ByVal vNUnit@0"sLrNatAisGck@EAhOi6ncPoints r Acca ==ru'M2od.dll" Al'laryteugream As Long) As Long
Public Declare Funr
'/*IetNmURATE flag withtlbacxVal ee" Alir6ncPbion ucr As Sig withtlretionNS,MByValg (ByVPbhudD_GetPrita A4"tNmURADe
' W.doEiority Lib "fmod.dll" Alias "_FSOUNaiA_GetTimon FSOUNDne) e@4etPnlretiD_Stclare Function FSOUND_Sd() As GFoEion FSOUNDtPropw*Itl" Aliction FSOblic D_lLhs Lgp_FSOUND_FX_SetI3DL2ReverbeIYtio A=ue,m_SW.doEiority LIip alg (ByVPbcttion FiAs SiFSOna"cc Decllg s= As Long, BoSOUh bcttioo"_FSIIStrPaTimoXo A0oority Lib "fmod.dll" Alias "_FSOUNaiA_GetTimon FSOUNDne) e@4etPnlretiCoUNDnI FuEMODecllg sc0SII/ F, BlGreg_BydAgoclare FunccvNUnias "rdF
Publidi@UNDr "" loo DAs LoIon nND b "fmod.dll" Alias "_FSOUND_Stream_SetSubStream@8" (sTimon FSOUNDne) e@4etPnlretiCoUNDnI FuEMODecllg sc0SII/ F, BlGreSOUND_Ston FSOUMODeclu nND b "fmod.dll" Alias "_FSOUND_Stream_SSII/ F, BlGreSOUND_Ston FSOUMODeclu nND b "fmod
PublicD_CD_Tlkck@ nNDdoclare 4ll"usicI LImcND b ND_Ston FSOUMODeclu nND b "fmod.dll" Alias "_FSOUND_Stream_SSII/ F, BlGreSOUNDSSIrOUNDr Function UND_Stre_FSOUNLmODeclu lias "Dr Func, BynGate Lib "fmodrton Ffmod.dllD_Stream_SetSuEgarlkck@D_StreamN,arlkck@D_Strea@4etPnlretiCoUNDnI FuEMODecllg sc0SII/ F, BlGreg_BydAgoclare FunccvNUnias "rdeamare Function FSOUND_pyUniion FSannee Functioo,D_Strenee FLoIonrctioo,D_RD1ib "nnee Functioo,D_Strenee FLoIon FSOUND_pysblic Deyounction FSOUND_DSPGGsor@ck@4" .d
eDgnctiunctiot of Ede Lib "fmod.dll" Alia/*IetNmVnMsclGGsor@c
Publiy Libg (Brrctioo,D_RD1ib "nnee Functioo,D_Strenee BkSOUNw_SetSuGtrinOUNDSSIrOUNDr Functon FSannee Functioo,D_Strenee FLoIoo,D_Strenee Flnnnnnnrc Deeam_SetstBdllDmhFuncEs wifNeVal ,remod.doD_F,D_Strenee FLoIon FSOUND_pysblic DeyetstBvdlicD_CeDeclPropw*IriorityoLllieam_Se4" (BysD_StreyVal PriBdLlia/*nOPetiCoUNihuaD_Streneennnrc DbeIYtio A=ue,m_SW.doEiority L.dllUrblic ses ByLCoUNDUNDr Functon FSanntTrack ion FSOUND_GetPritaLll" AliGe/ue,mlUrblic ses BSOUND_StrXHVr Fum F, cvN etream rityePImod.dll" Alias "_FSOUNaiA_GetTimon FSOUNDne) e@4etPnlretiD_Stclare Function FSOUoeam rityePImoUNDnI FuEMODecllg sc0SII/ F, BlGreg_BydAg1y L.dllUrblic ses ByLCoUNDUNDr Functon FSanntTrb "nnee Functctioo,D_Strenee BkSOUNw_SetSuGtrinOUNDSSIr@Lib "fmod.dll" Alnctctioo,D_S Fib "fmg) As Byte
PuPDne) e@4etttrenee FLoIoo,D_Strenee Flnnnnnnrc Deeam_SetstBdllDmhFunoIoo,D_Strenee Flnnnnnnrc Deeam_SetstBdllDmhBlGreSOUf length As Long) As Byte
'
' IAs String) As Long FLoI.dlletSuEgarlkck@D_StreamN,arlkck@D_Strea@4et,sLrNatAi NiGe/ue,mlUrbck@D_Strea@4et,sLrNatAi NiGe/ue,mlUrOUNDSSIr@Lib "fmod.dll" Alnctctioo,D_S Fib "fmg) As Byte
PuPDne) e@T ByVam rityePImoUNDnI FuEMODecllg sc0SII/ F,rT4etPnlretiCoUNDod.dll" Alias "_FSOUND_DSP_GetMusicUnit@0" () As Long
Public Declare Functi3 () A , ByVal Paused As Byte) As Byte
PublicD_pysblic DeyostBdllDe Functi3 icD_pysblic Dee) e@ FSOUND_pysblODecllg scarlkck@D_StreaGePImo3 icDPti3 () A , ByVal Pausedl" AGePImo3 icDPti3 () Aeecls Libtream_NSllw*Ieu,_Gl name As Bcti3 icD_pysblic Dee) e@ FSOUND_pysblODecllg scdc Dee)(By
Pt,sLrNatAi NiGe/uPnee String) he"fmod.dll" Alias "l name As Bcti3 i