diff --git a/assets b/assets index bd74626..3c4d811 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit bd746269ffaf3abc61c0c8ed5d116b317a4cdd68 +Subproject commit 3c4d81137f4f3f185080597045ec93e7ab1d6ae9 diff --git a/deploy.bat b/deploy.bat index 1c29099..f9f05ef 100755 --- a/deploy.bat +++ b/deploy.bat @@ -15,12 +15,12 @@ MKLINK "%ConfigPath%\Sounds\" "assets\Sounds\" /J :: Shaders MKLINK "%ConfigPath%\Shaders\" "src\Shaders\" /J :: DLLs -MKLINK "%ConfigPath%\glfw3.dll" "libs\glfw-3.0.4\lib\%Configuration%\glfw3.dll" /H -MKLINK "%ConfigPath%\OpenAL32.dll" "libs\openal-soft-1.15.1\lib\Win32\%Configuration%\OpenAL32.dll" /H +COPY "libs\glfw-3.0.4\lib\%Configuration%\glfw3.dll" "%ConfigPath%\glfw3.dll" +COPY "libs\FMOD\lib\fmodex.dll" "%ConfigPath%\fmodex.dll" IF %~1==Debug ( - MKLINK "%ConfigPath%\glew32d.dll" "libs\glew-1.10.0\bin\%Configuration%\Win32\glew32d.dll" /H + COPY "libs\glew-1.10.0\bin\%Configuration%\Win32\glew32d.dll" "%ConfigPath%\glew32d.dll" ) IF %~1==Release ( - MKLINK "%ConfigPath%\glew32.dll" "libs\glew-1.10.0\bin\%Configuration%\Win32\glew32.dll" /H + COPY "libs\glew-1.10.0\bin\%Configuration%\Win32\glew32.dll" "%ConfigPath%\glew32.dll" ) GOTO:eof \ No newline at end of file diff --git a/libs/FMOD/fmodex.dll b/libs/FMOD/fmodex.dll new file mode 100644 index 0000000..d68d393 Binary files /dev/null and b/libs/FMOD/fmodex.dll differ diff --git a/libs/FMOD/fmodex64.dll b/libs/FMOD/fmodex64.dll new file mode 100644 index 0000000..50ba08e Binary files /dev/null and b/libs/FMOD/fmodex64.dll differ diff --git a/libs/FMOD/fmodexL.dll b/libs/FMOD/fmodexL.dll new file mode 100644 index 0000000..678ec45 Binary files /dev/null and b/libs/FMOD/fmodexL.dll differ diff --git a/libs/FMOD/fmodexL64.dll b/libs/FMOD/fmodexL64.dll new file mode 100644 index 0000000..2402bd7 Binary files /dev/null and b/libs/FMOD/fmodexL64.dll differ diff --git a/libs/FMOD/inc/fmod.h b/libs/FMOD/inc/fmod.h new file mode 100644 index 0000000..8b30e9c --- /dev/null +++ b/libs/FMOD/inc/fmod.h @@ -0,0 +1,2467 @@ + +/* ============================================================================================ */ +/* FMOD Ex - Main C/C++ header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* This header is the base header for all other FMOD headers. If you are programming in C */ +/* use this exclusively, or if you are programming C++ use this in conjunction with FMOD.HPP */ +/* */ +/* ============================================================================================ */ + +#ifndef _FMOD_H +#define _FMOD_H + +/* + FMOD version number. Check this against FMOD::System::getVersion. + 0xaaaabbcc -> aaaa = major version number. bb = minor version number. cc = development version number. +*/ + +#define FMOD_VERSION 0x00044432 + +/* + Compiler specific settings. +*/ + +#if defined(__CYGWIN32__) + #define F_CDECL __cdecl + #define F_STDCALL __stdcall + #define F_DECLSPEC __declspec + #define F_DLLEXPORT ( dllexport ) +#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) + #define F_CDECL _cdecl + #define F_STDCALL _stdcall + #define F_DECLSPEC __declspec + #define F_DLLEXPORT ( dllexport ) +#elif defined(__MACH__) || defined(__ANDROID__) || defined(__linux__) || defined(__QNX__) + #define F_CDECL + #define F_STDCALL + #define F_DECLSPEC + #define F_DLLEXPORT __attribute__ ((visibility("default"))) +#else + #define F_CDECL + #define F_STDCALL + #define F_DECLSPEC + #define F_DLLEXPORT +#endif + +#ifdef DLL_EXPORTS + #if defined(__MACH__) || defined(__ANDROID__) || defined(__linux__) || defined(__QNX__) + #define F_API __attribute__ ((visibility("default"))) + #else + #define F_API __declspec(dllexport) F_STDCALL + #endif +#else + #define F_API F_STDCALL +#endif + +#define F_CALLBACK F_STDCALL + +/* + FMOD types. +*/ + +typedef int FMOD_BOOL; +typedef struct FMOD_SYSTEM FMOD_SYSTEM; +typedef struct FMOD_SOUND FMOD_SOUND; +typedef struct FMOD_CHANNEL FMOD_CHANNEL; +typedef struct FMOD_CHANNELGROUP FMOD_CHANNELGROUP; +typedef struct FMOD_SOUNDGROUP FMOD_SOUNDGROUP; +typedef struct FMOD_REVERB FMOD_REVERB; +typedef struct FMOD_DSP FMOD_DSP; +typedef struct FMOD_DSPCONNECTION FMOD_DSPCONNECTION; +typedef struct FMOD_POLYGON FMOD_POLYGON; +typedef struct FMOD_GEOMETRY FMOD_GEOMETRY; +typedef struct FMOD_SYNCPOINT FMOD_SYNCPOINT; +typedef unsigned int FMOD_MODE; +typedef unsigned int FMOD_TIMEUNIT; +typedef unsigned int FMOD_INITFLAGS; +typedef unsigned int FMOD_CAPS; +typedef unsigned int FMOD_DEBUGLEVEL; +typedef unsigned int FMOD_MEMORY_TYPE; + +/* +[ENUM] +[ + [DESCRIPTION] + error codes. Returned from every function. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] +] +*/ +typedef enum +{ + FMOD_OK, /* No errors. */ + FMOD_ERR_ALREADYLOCKED, /* Tried to call lock a second time before unlock was called. */ + FMOD_ERR_BADCOMMAND, /* Tried to call a function on a data type that does not allow this type of functionality (ie calling Sound::lock on a streaming sound). */ + FMOD_ERR_CDDA_DRIVERS, /* Neither NTSCSI nor ASPI could be initialised. */ + FMOD_ERR_CDDA_INIT, /* An error occurred while initialising the CDDA subsystem. */ + FMOD_ERR_CDDA_INVALID_DEVICE, /* Couldn't find the specified device. */ + FMOD_ERR_CDDA_NOAUDIO, /* No audio tracks on the specified disc. */ + FMOD_ERR_CDDA_NODEVICES, /* No CD/DVD devices were found. */ + FMOD_ERR_CDDA_NODISC, /* No disc present in the specified drive. */ + FMOD_ERR_CDDA_READ, /* A CDDA read error occurred. */ + FMOD_ERR_CHANNEL_ALLOC, /* Error trying to allocate a channel. */ + FMOD_ERR_CHANNEL_STOLEN, /* The specified channel has been reused to play another sound. */ + FMOD_ERR_COM, /* A Win32 COM related error occured. COM failed to initialize or a QueryInterface failed meaning a Windows codec or driver was not installed properly. */ + FMOD_ERR_DMA, /* DMA Failure. See debug output for more information. */ + FMOD_ERR_DSP_CONNECTION, /* DSP connection error. Connection possibly caused a cyclic dependancy. Or tried to connect a tree too many units deep (more than 128). */ + FMOD_ERR_DSP_FORMAT, /* DSP Format error. A DSP unit may have attempted to connect to this network with the wrong format. */ + FMOD_ERR_DSP_NOTFOUND, /* DSP connection error. Couldn't find the DSP unit specified. */ + FMOD_ERR_DSP_RUNNING, /* DSP error. Cannot perform this operation while the network is in the middle of running. This will most likely happen if a connection or disconnection is attempted in a DSP callback. */ + FMOD_ERR_DSP_TOOMANYCONNECTIONS,/* DSP connection error. The unit being connected to or disconnected should only have 1 input or output. */ + FMOD_ERR_FILE_BAD, /* Error loading file. */ + FMOD_ERR_FILE_COULDNOTSEEK, /* Couldn't perform seek operation. This is a limitation of the medium (ie netstreams) or the file format. */ + FMOD_ERR_FILE_DISKEJECTED, /* Media was ejected while reading. */ + FMOD_ERR_FILE_EOF, /* End of file unexpectedly reached while trying to read essential data (truncated data?). */ + FMOD_ERR_FILE_NOTFOUND, /* File not found. */ + FMOD_ERR_FILE_UNWANTED, /* Unwanted file access occured. */ + FMOD_ERR_FORMAT, /* Unsupported file or audio format. */ + FMOD_ERR_HTTP, /* A HTTP error occurred. This is a catch-all for HTTP errors not listed elsewhere. */ + FMOD_ERR_HTTP_ACCESS, /* The specified resource requires authentication or is forbidden. */ + FMOD_ERR_HTTP_PROXY_AUTH, /* Proxy authentication is required to access the specified resource. */ + FMOD_ERR_HTTP_SERVER_ERROR, /* A HTTP server error occurred. */ + FMOD_ERR_HTTP_TIMEOUT, /* The HTTP request timed out. */ + FMOD_ERR_INITIALIZATION, /* FMOD was not initialized correctly to support this function. */ + FMOD_ERR_INITIALIZED, /* Cannot call this command after System::init. */ + FMOD_ERR_INTERNAL, /* An error occured that wasn't supposed to. Contact support. */ + FMOD_ERR_INVALID_ADDRESS, /* On Xbox 360, this memory address passed to FMOD must be physical, (ie allocated with XPhysicalAlloc.) */ + FMOD_ERR_INVALID_FLOAT, /* Value passed in was a NaN, Inf or denormalized float. */ + FMOD_ERR_INVALID_HANDLE, /* An invalid object handle was used. */ + FMOD_ERR_INVALID_PARAM, /* An invalid parameter was passed to this function. */ + FMOD_ERR_INVALID_POSITION, /* An invalid seek position was passed to this function. */ + FMOD_ERR_INVALID_SPEAKER, /* An invalid speaker was passed to this function based on the current speaker mode. */ + FMOD_ERR_INVALID_SYNCPOINT, /* The syncpoint did not come from this sound handle. */ + FMOD_ERR_INVALID_VECTOR, /* The vectors passed in are not unit length, or perpendicular. */ + FMOD_ERR_MAXAUDIBLE, /* Reached maximum audible playback count for this sound's soundgroup. */ + FMOD_ERR_MEMORY, /* Not enough memory or resources. */ + FMOD_ERR_MEMORY_CANTPOINT, /* Can't use FMOD_OPENMEMORY_POINT on non PCM source data, or non mp3/xma/adpcm data if FMOD_CREATECOMPRESSEDSAMPLE was used. */ + FMOD_ERR_MEMORY_SRAM, /* Not enough memory or resources on console sound ram. */ + FMOD_ERR_NEEDS2D, /* Tried to call a command on a 3d sound when the command was meant for 2d sound. */ + FMOD_ERR_NEEDS3D, /* Tried to call a command on a 2d sound when the command was meant for 3d sound. */ + FMOD_ERR_NEEDSHARDWARE, /* Tried to use a feature that requires hardware support. (ie trying to play a GCADPCM compressed sound in software on Wii). */ + FMOD_ERR_NEEDSSOFTWARE, /* Tried to use a feature that requires the software engine. Software engine has either been turned off, or command was executed on a hardware channel which does not support this feature. */ + FMOD_ERR_NET_CONNECT, /* Couldn't connect to the specified host. */ + FMOD_ERR_NET_SOCKET_ERROR, /* A socket error occurred. This is a catch-all for socket-related errors not listed elsewhere. */ + FMOD_ERR_NET_URL, /* The specified URL couldn't be resolved. */ + FMOD_ERR_NET_WOULD_BLOCK, /* Operation on a non-blocking socket could not complete immediately. */ + FMOD_ERR_NOTREADY, /* Operation could not be performed because specified sound/DSP connection is not ready. */ + FMOD_ERR_OUTPUT_ALLOCATED, /* Error initializing output device, but more specifically, the output device is already in use and cannot be reused. */ + FMOD_ERR_OUTPUT_CREATEBUFFER, /* Error creating hardware sound buffer. */ + FMOD_ERR_OUTPUT_DRIVERCALL, /* A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. */ + FMOD_ERR_OUTPUT_ENUMERATION, /* Error enumerating the available driver list. List may be inconsistent due to a recent device addition or removal. */ + FMOD_ERR_OUTPUT_FORMAT, /* Soundcard does not support the minimum features needed for this soundsystem (16bit stereo output). */ + FMOD_ERR_OUTPUT_INIT, /* Error initializing output device. */ + FMOD_ERR_OUTPUT_NOHARDWARE, /* FMOD_HARDWARE was specified but the sound card does not have the resources necessary to play it. */ + FMOD_ERR_OUTPUT_NOSOFTWARE, /* Attempted to create a software sound but no software channels were specified in System::init. */ + FMOD_ERR_PAN, /* Panning only works with mono or stereo sound sources. */ + FMOD_ERR_PLUGIN, /* An unspecified error has been returned from a 3rd party plugin. */ + FMOD_ERR_PLUGIN_INSTANCES, /* The number of allowed instances of a plugin has been exceeded. */ + FMOD_ERR_PLUGIN_MISSING, /* A requested output, dsp unit type or codec was not available. */ + FMOD_ERR_PLUGIN_RESOURCE, /* A resource that the plugin requires cannot be found. (ie the DLS file for MIDI playback or other DLLs that it needs to load) */ + FMOD_ERR_PRELOADED, /* The specified sound is still in use by the event system, call EventSystem::unloadFSB before trying to release it. */ + FMOD_ERR_PROGRAMMERSOUND, /* The specified sound is still in use by the event system, wait for the event which is using it finish with it. */ + FMOD_ERR_RECORD, /* An error occured trying to initialize the recording device. */ + FMOD_ERR_REVERB_INSTANCE, /* Specified instance in FMOD_REVERB_PROPERTIES couldn't be set. Most likely because it is an invalid instance number or the reverb doesnt exist. */ + FMOD_ERR_SUBSOUND_ALLOCATED, /* This subsound is already being used by another sound, you cannot have more than one parent to a sound. Null out the other parent's entry first. */ + FMOD_ERR_SUBSOUND_CANTMOVE, /* Shared subsounds cannot be replaced or moved from their parent stream, such as when the parent stream is an FSB file. */ + FMOD_ERR_SUBSOUND_MODE, /* The subsound's mode bits do not match with the parent sound's mode bits. See documentation for function that it was called with. */ + FMOD_ERR_SUBSOUNDS, /* The error occured because the sound referenced contains subsounds when it shouldn't have, or it doesn't contain subsounds when it should have. The operation may also not be able to be performed on a parent sound, or a parent sound was played without setting up a sentence first. */ + FMOD_ERR_TAGNOTFOUND, /* The specified tag could not be found or there are no tags. */ + FMOD_ERR_TOOMANYCHANNELS, /* The sound created exceeds the allowable input channel count. This can be increased using the maxinputchannels parameter in System::setSoftwareFormat. */ + FMOD_ERR_UNIMPLEMENTED, /* Something in FMOD hasn't been implemented when it should be! contact support! */ + FMOD_ERR_UNINITIALIZED, /* This command failed because System::init or System::setDriver was not called. */ + FMOD_ERR_UNSUPPORTED, /* A command issued was not supported by this object. Possibly a plugin without certain callbacks specified. */ + FMOD_ERR_UPDATE, /* An error caused by System::update occured. */ + FMOD_ERR_VERSION, /* The version number of this file format is not supported. */ + + FMOD_ERR_EVENT_FAILED, /* An Event failed to be retrieved, most likely due to 'just fail' being specified as the max playbacks behavior. */ + FMOD_ERR_EVENT_INFOONLY, /* Can't execute this command on an EVENT_INFOONLY event. */ + FMOD_ERR_EVENT_INTERNAL, /* An error occured that wasn't supposed to. See debug log for reason. */ + FMOD_ERR_EVENT_MAXSTREAMS, /* Event failed because 'Max streams' was hit when FMOD_EVENT_INIT_FAIL_ON_MAXSTREAMS was specified. */ + FMOD_ERR_EVENT_MISMATCH, /* FSB mismatches the FEV it was compiled with, the stream/sample mode it was meant to be created with was different, or the FEV was built for a different platform. */ + FMOD_ERR_EVENT_NAMECONFLICT, /* A category with the same name already exists. */ + FMOD_ERR_EVENT_NOTFOUND, /* The requested event, event group, event category or event property could not be found. */ + FMOD_ERR_EVENT_NEEDSSIMPLE, /* Tried to call a function on a complex event that's only supported by simple events. */ + FMOD_ERR_EVENT_GUIDCONFLICT, /* An event with the same GUID already exists. */ + FMOD_ERR_EVENT_ALREADY_LOADED, /* The specified project or bank has already been loaded. Having multiple copies of the same project loaded simultaneously is forbidden. */ + + FMOD_ERR_MUSIC_UNINITIALIZED, /* Music system is not initialized probably because no music data is loaded. */ + FMOD_ERR_MUSIC_NOTFOUND, /* The requested music entity could not be found. */ + FMOD_ERR_MUSIC_NOCALLBACK, /* The music callback is required, but it has not been set. */ + + FMOD_RESULT_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_RESULT; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure describing a point in 3D space. + + [REMARKS] + FMOD uses a left handed co-ordinate system by default. + To use a right handed co-ordinate system specify FMOD_INIT_3D_RIGHTHANDED from FMOD_INITFLAGS in System::init. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::set3DListenerAttributes + System::get3DListenerAttributes + Channel::set3DAttributes + Channel::get3DAttributes + Channel::set3DCustomRolloff + Channel::get3DCustomRolloff + Sound::set3DCustomRolloff + Sound::get3DCustomRolloff + Geometry::addPolygon + Geometry::setPolygonVertex + Geometry::getPolygonVertex + Geometry::setRotation + Geometry::getRotation + Geometry::setPosition + Geometry::getPosition + Geometry::setScale + Geometry::getScale + FMOD_INITFLAGS +] +*/ +typedef struct +{ + float x; /* X co-ordinate in 3D space. */ + float y; /* Y co-ordinate in 3D space. */ + float z; /* Z co-ordinate in 3D space. */ +} FMOD_VECTOR; + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure describing a globally unique identifier. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::getDriverInfo +] +*/ +typedef struct +{ + unsigned int Data1; /* Specifies the first 8 hexadecimal digits of the GUID */ + unsigned short Data2; /* Specifies the first group of 4 hexadecimal digits. */ + unsigned short Data3; /* Specifies the second group of 4 hexadecimal digits. */ + unsigned char Data4[8]; /* Array of 8 bytes. The first 2 bytes contain the third group of 4 hexadecimal digits. The remaining 6 bytes contain the final 12 hexadecimal digits. */ +} FMOD_GUID; + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure that is passed into FMOD_FILE_ASYNCREADCALLBACK. Use the information in this structure to perform + + [REMARKS] + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + Instructions: write to 'buffer', and 'bytesread' BEFORE setting 'result'. + As soon as result is set, FMOD will asynchronously continue internally using the data provided in this structure. + + Set 'result' to the result expected from a normal file read callback. + If the read was successful, set it to FMOD_OK. + If it read some data but hit the end of the file, set it to FMOD_ERR_FILE_EOF. + If a bad error occurred, return FMOD_ERR_FILE_BAD + If a disk was ejected, return FMOD_ERR_FILE_DISKEJECTED. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_FILE_ASYNCREADCALLBACK + FMOD_FILE_ASYNCCANCELCALLBACK +] +*/ +typedef struct +{ + void *handle; /* [r] The file handle that was filled out in the open callback. */ + unsigned int offset; /* [r] Seek position, make sure you read from this file offset. */ + unsigned int sizebytes; /* [r] how many bytes requested for read. */ + int priority; /* [r] 0 = low importance. 100 = extremely important (ie 'must read now or stuttering may occur') */ + + void *buffer; /* [w] Buffer to read file data into. */ + unsigned int bytesread; /* [w] Fill this in before setting result code to tell FMOD how many bytes were read. */ + FMOD_RESULT result; /* [r/w] Result code, FMOD_OK tells the system it is ready to consume the data. Set this last! Default value = FMOD_ERR_NOTREADY. */ + + void *userdata; /* [r] User data pointer. */ +} FMOD_ASYNCREADINFO; + + +/* +[ENUM] +[ + [DESCRIPTION] + These output types are used with System::setOutput / System::getOutput, to choose which output method to use. + + [REMARKS] + To pass information to the driver when initializing fmod use the extradriverdata parameter in System::init for the following reasons. + - FMOD_OUTPUTTYPE_WAVWRITER - extradriverdata is a pointer to a char * filename that the wav writer will output to. + - FMOD_OUTPUTTYPE_WAVWRITER_NRT - extradriverdata is a pointer to a char * filename that the wav writer will output to. + - FMOD_OUTPUTTYPE_DSOUND - extradriverdata is a pointer to a HWND so that FMOD can set the focus on the audio for a particular window. + - FMOD_OUTPUTTYPE_PS3 - extradriverdata is a pointer to a FMOD_PS3_EXTRADRIVERDATA struct. This can be found in fmodps3.h. + - FMOD_OUTPUTTYPE_GC - extradriverdata is a pointer to a FMOD_GC_INFO struct. This can be found in fmodgc.h. + - FMOD_OUTPUTTYPE_WII - extradriverdata is a pointer to a FMOD_WII_INFO struct. This can be found in fmodwii.h. + - FMOD_OUTPUTTYPE_ALSA - extradriverdata is a pointer to a FMOD_LINUX_EXTRADRIVERDATA struct. This can be found in fmodlinux.h. + + Currently these are the only FMOD drivers that take extra information. Other unknown plugins may have different requirements. + + Note! If FMOD_OUTPUTTYPE_WAVWRITER_NRT or FMOD_OUTPUTTYPE_NOSOUND_NRT are used, and if the System::update function is being called + very quickly (ie for a non realtime decode) it may be being called too quickly for the FMOD streamer thread to respond to. + The result will be a skipping/stuttering output in the captured audio. + + To remedy this, disable the FMOD Ex streamer thread, and use FMOD_INIT_STREAM_FROM_UPDATE to avoid skipping in the output stream, + as it will lock the mixer and the streamer together in the same thread. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setOutput + System::getOutput + System::setSoftwareFormat + System::getSoftwareFormat + System::init + System::update + FMOD_INITFLAGS +] +*/ +typedef enum +{ + FMOD_OUTPUTTYPE_AUTODETECT, /* Picks the best output mode for the platform. This is the default. */ + + FMOD_OUTPUTTYPE_UNKNOWN, /* All - 3rd party plugin, unknown. This is for use with System::getOutput only. */ + FMOD_OUTPUTTYPE_NOSOUND, /* All - All calls in this mode succeed but make no sound. */ + FMOD_OUTPUTTYPE_WAVWRITER, /* All - Writes output to fmodoutput.wav by default. Use the 'extradriverdata' parameter in System::init, by simply passing the filename as a string, to set the wav filename. */ + FMOD_OUTPUTTYPE_NOSOUND_NRT, /* All - Non-realtime version of FMOD_OUTPUTTYPE_NOSOUND. User can drive mixer with System::update at whatever rate they want. */ + FMOD_OUTPUTTYPE_WAVWRITER_NRT, /* All - Non-realtime version of FMOD_OUTPUTTYPE_WAVWRITER. User can drive mixer with System::update at whatever rate they want. */ + + FMOD_OUTPUTTYPE_DSOUND, /* Win32/Win64 - DirectSound output. (Default on Windows XP and below) */ + FMOD_OUTPUTTYPE_WINMM, /* Win32/Win64 - Windows Multimedia output. */ + FMOD_OUTPUTTYPE_WASAPI, /* Win32 - Windows Audio Session API. (Default on Windows Vista and above) */ + FMOD_OUTPUTTYPE_ASIO, /* Win32 - Low latency ASIO 2.0 driver. */ + FMOD_OUTPUTTYPE_OSS, /* Linux/Linux64 - Open Sound System output. (Default on Linux, third preference) */ + FMOD_OUTPUTTYPE_ALSA, /* Linux/Linux64 - Advanced Linux Sound Architecture output. (Default on Linux, second preference if available) */ + FMOD_OUTPUTTYPE_ESD, /* Linux/Linux64 - Enlightment Sound Daemon output. */ + FMOD_OUTPUTTYPE_PULSEAUDIO, /* Linux/Linux64 - PulseAudio output. (Default on Linux, first preference if available) */ + FMOD_OUTPUTTYPE_COREAUDIO, /* Mac - Macintosh CoreAudio output. (Default on Mac) */ + FMOD_OUTPUTTYPE_XBOX360, /* Xbox 360 - Native Xbox360 output. (Default on Xbox 360) */ + FMOD_OUTPUTTYPE_PSP, /* PSP - Native PSP output. (Default on PSP) */ + FMOD_OUTPUTTYPE_PS3, /* PS3 - Native PS3 output. (Default on PS3) */ + FMOD_OUTPUTTYPE_NGP, /* NGP - Native NGP output. (Default on NGP) */ + FMOD_OUTPUTTYPE_WII, /* Wii - Native Wii output. (Default on Wii) */ + FMOD_OUTPUTTYPE_3DS, /* 3DS - Native 3DS output (Default on 3DS) */ + FMOD_OUTPUTTYPE_AUDIOTRACK, /* Android - Java Audio Track output. (Default on Android 2.2 and below) */ + FMOD_OUTPUTTYPE_OPENSL, /* Android - OpenSL ES output. (Default on Android 2.3 and above) */ + FMOD_OUTPUTTYPE_NACL, /* Native Client - Native Client output. (Default on Native Client) */ + FMOD_OUTPUTTYPE_WIIU, /* Wii U - Native Wii U output. (Default on Wii U) */ + FMOD_OUTPUTTYPE_ASOUND, /* BlackBerry - Native BlackBerry asound output. (Default on BlackBerry) */ + FMOD_OUTPUTTYPE_AUDIOOUT, /* Orbis - Audio Out output. (Default on Orbis) */ + FMOD_OUTPUTTYPE_XAUDIO, /* Durango - XAudio2 output. */ + + FMOD_OUTPUTTYPE_MAX, /* Maximum number of output types supported. */ + FMOD_OUTPUTTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_OUTPUTTYPE; + + +/* +[DEFINE] +[ + [NAME] + FMOD_CAPS + + [DESCRIPTION] + Bit fields to use with System::getDriverCaps to determine the capabilities of a card / output device. + + [REMARKS] + It is important to check FMOD_CAPS_HARDWARE_EMULATED on windows machines, to then adjust System::setDSPBufferSize to (1024, 10) to compensate for the higher latency. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::getDriverCaps + System::setDSPBufferSize +] +*/ +#define FMOD_CAPS_NONE 0x00000000 /* Device has no special capabilities. */ +#define FMOD_CAPS_HARDWARE 0x00000001 /* Device supports hardware mixing. */ +#define FMOD_CAPS_HARDWARE_EMULATED 0x00000002 /* User has device set to 'Hardware acceleration = off' in control panel, and now extra 200ms latency is incurred. */ +#define FMOD_CAPS_OUTPUT_MULTICHANNEL 0x00000004 /* Device can do multichannel output, ie greater than 2 channels. */ +#define FMOD_CAPS_OUTPUT_FORMAT_PCM8 0x00000008 /* Device can output to 8bit integer PCM. */ +#define FMOD_CAPS_OUTPUT_FORMAT_PCM16 0x00000010 /* Device can output to 16bit integer PCM. */ +#define FMOD_CAPS_OUTPUT_FORMAT_PCM24 0x00000020 /* Device can output to 24bit integer PCM. */ +#define FMOD_CAPS_OUTPUT_FORMAT_PCM32 0x00000040 /* Device can output to 32bit integer PCM. */ +#define FMOD_CAPS_OUTPUT_FORMAT_PCMFLOAT 0x00000080 /* Device can output to 32bit floating point PCM. */ +#define FMOD_CAPS_REVERB_LIMITED 0x00002000 /* Device supports some form of limited hardware reverb, maybe parameterless and only selectable by environment. */ +#define FMOD_CAPS_LOOPBACK 0x00004000 /* Device is a loopback recording device */ +/* [DEFINE_END] */ + +/* +[DEFINE] +[ + [NAME] + FMOD_DEBUGLEVEL + + [DESCRIPTION] + Bit fields to use with FMOD::Debug_SetLevel / FMOD::Debug_GetLevel to control the level of tty debug output with logging versions of FMOD (fmodL). + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Debug_SetLevel + Debug_GetLevel +] +*/ +#define FMOD_DEBUG_LEVEL_NONE 0x00000000 +#define FMOD_DEBUG_LEVEL_LOG 0x00000001 /* Will display generic logging messages. */ +#define FMOD_DEBUG_LEVEL_ERROR 0x00000002 /* Will display errors. */ +#define FMOD_DEBUG_LEVEL_WARNING 0x00000004 /* Will display warnings that are not fatal. */ +#define FMOD_DEBUG_LEVEL_HINT 0x00000008 /* Will hint to you if there is something possibly better you could be doing. */ +#define FMOD_DEBUG_LEVEL_ALL 0x000000FF +#define FMOD_DEBUG_TYPE_MEMORY 0x00000100 /* Show FMOD memory related logging messages. */ +#define FMOD_DEBUG_TYPE_THREAD 0x00000200 /* Show FMOD thread related logging messages. */ +#define FMOD_DEBUG_TYPE_FILE 0x00000400 /* Show FMOD file system related logging messages. */ +#define FMOD_DEBUG_TYPE_NET 0x00000800 /* Show FMOD network related logging messages. */ +#define FMOD_DEBUG_TYPE_EVENT 0x00001000 /* Show FMOD Event related logging messages. */ +#define FMOD_DEBUG_TYPE_ALL 0x0000FFFF +#define FMOD_DEBUG_DISPLAY_TIMESTAMPS 0x01000000 /* Display the timestamp of the log entry in milliseconds. */ +#define FMOD_DEBUG_DISPLAY_LINENUMBERS 0x02000000 /* Display the FMOD Ex source code line numbers, for debugging purposes. */ +#define FMOD_DEBUG_DISPLAY_COMPRESS 0x04000000 /* If a message is repeated more than 5 times it will stop displaying it and instead display the number of times the message was logged. */ +#define FMOD_DEBUG_DISPLAY_THREAD 0x08000000 /* Display the thread ID of the calling function that caused this log entry to appear. */ +#define FMOD_DEBUG_DISPLAY_ALL 0x0F000000 +#define FMOD_DEBUG_ALL 0xFFFFFFFF +/* [DEFINE_END] */ + + +/* +[DEFINE] +[ + [NAME] + FMOD_MEMORY_TYPE + + [DESCRIPTION] + Bit fields for memory allocation type being passed into FMOD memory callbacks. + + [REMARKS] + Remember this is a bitfield. You may get more than 1 bit set (ie physical + persistent) so do not simply switch on the types! You must check each bit individually or clear out the bits that you do not want within the callback. + Bits can be excluded if you want during Memory_Initialize so that you never get them. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_MEMORY_ALLOCCALLBACK + FMOD_MEMORY_REALLOCCALLBACK + FMOD_MEMORY_FREECALLBACK + Memory_Initialize + +] +*/ +#define FMOD_MEMORY_NORMAL 0x00000000 /* Standard memory. */ +#define FMOD_MEMORY_STREAM_FILE 0x00000001 /* Stream file buffer, size controllable with System::setStreamBufferSize. */ +#define FMOD_MEMORY_STREAM_DECODE 0x00000002 /* Stream decode buffer, size controllable with FMOD_CREATESOUNDEXINFO::decodebuffersize. */ +#define FMOD_MEMORY_SAMPLEDATA 0x00000004 /* Sample data buffer. Raw audio data, usually PCM/MPEG/ADPCM/XMA data. */ +#define FMOD_MEMORY_DSP_OUTPUTBUFFER 0x00000008 /* DSP memory block allocated when more than 1 output exists on a DSP node. */ +#define FMOD_MEMORY_XBOX360_PHYSICAL 0x00100000 /* Requires XPhysicalAlloc / XPhysicalFree. */ +#define FMOD_MEMORY_PERSISTENT 0x00200000 /* Persistent memory. Memory will be freed when System::release is called. */ +#define FMOD_MEMORY_SECONDARY 0x00400000 /* Secondary memory. Allocation should be in secondary memory. For example RSX on the PS3. */ +#define FMOD_MEMORY_ALL 0xFFFFFFFF +/* [DEFINE_END] */ + + +/* +[ENUM] +[ + [DESCRIPTION] + These are speaker types defined for use with the System::setSpeakerMode or System::getSpeakerMode command. + + [REMARKS] + These are important notes on speaker modes in regards to sounds created with FMOD_SOFTWARE. + Note below the phrase 'sound channels' is used. These are the subchannels inside a sound, they are not related and + have nothing to do with the FMOD class "Channel". + For example a mono sound has 1 sound channel, a stereo sound has 2 sound channels, and an AC3 or 6 channel wav file have 6 "sound channels". + + FMOD_SPEAKERMODE_RAW + --------------------- + This mode is for output devices that are not specifically mono/stereo/quad/surround/5.1 or 7.1, but are multichannel. + Use System::setSoftwareFormat to specify the number of speakers you want to address, otherwise it will default to 2 (stereo). + Sound channels map to speakers sequentially, so a mono sound maps to output speaker 0, stereo sound maps to output speaker 0 & 1. + The user assumes knowledge of the speaker order. FMOD_SPEAKER enumerations may not apply, so raw channel indices should be used. + Multichannel sounds map input channels to output channels 1:1. + Channel::setPan and Channel::setSpeakerMix do not work. + Speaker levels must be manually set with Channel::setSpeakerLevels. + + FMOD_SPEAKERMODE_MONO + --------------------- + This mode is for a 1 speaker arrangement. + Panning does not work in this speaker mode. + Mono, stereo and multichannel sounds have each sound channel played on the one speaker unity. + Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + Channel::setSpeakerMix does not work. + + FMOD_SPEAKERMODE_STEREO + ----------------------- + This mode is for 2 speaker arrangements that have a left and right speaker. + - Mono sounds default to an even distribution between left and right. They can be panned with Channel::setPan. + - Stereo sounds default to the middle, or full left in the left speaker and full right in the right speaker. + - They can be cross faded with Channel::setPan. + - Multichannel sounds have each sound channel played on each speaker at unity. + - Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + - Channel::setSpeakerMix works but only front left and right parameters are used, the rest are ignored. + + FMOD_SPEAKERMODE_QUAD + ------------------------ + This mode is for 4 speaker arrangements that have a front left, front right, rear left and a rear right speaker. + - Mono sounds default to an even distribution between front left and front right. They can be panned with Channel::setPan. + - Stereo sounds default to the left sound channel played on the front left, and the right sound channel played on the front right. + - They can be cross faded with Channel::setPan. + - Multichannel sounds default to all of their sound channels being played on each speaker in order of input. + - Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + - Channel::setSpeakerMix works but side left, side right, center and lfe are ignored. + + FMOD_SPEAKERMODE_SURROUND + ------------------------ + This mode is for 5 speaker arrangements that have a left/right/center/rear left/rear right. + - Mono sounds default to the center speaker. They can be panned with Channel::setPan. + - Stereo sounds default to the left sound channel played on the front left, and the right sound channel played on the front right. + - They can be cross faded with Channel::setPan. + - Multichannel sounds default to all of their sound channels being played on each speaker in order of input. + - Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + - Channel::setSpeakerMix works but side left / side right are ignored. + + FMOD_SPEAKERMODE_5POINT1 + ------------------------ + This mode is for 5.1 speaker arrangements that have a left/right/center/rear left/rear right and a subwoofer speaker. + - Mono sounds default to the center speaker. They can be panned with Channel::setPan. + - Stereo sounds default to the left sound channel played on the front left, and the right sound channel played on the front right. + - They can be cross faded with Channel::setPan. + - Multichannel sounds default to all of their sound channels being played on each speaker in order of input. + - Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + - Channel::setSpeakerMix works but side left / side right are ignored. + + FMOD_SPEAKERMODE_7POINT1 + ------------------------ + This mode is for 7.1 speaker arrangements that have a left/right/center/rear left/rear right/side left/side right + and a subwoofer speaker. + - Mono sounds default to the center speaker. They can be panned with Channel::setPan. + - Stereo sounds default to the left sound channel played on the front left, and the right sound channel played on the front right. + - They can be cross faded with Channel::setPan. + - Multichannel sounds default to all of their sound channels being played on each speaker in order of input. + - Mix behavior for multichannel sounds can be set with Channel::setSpeakerLevels. + - Channel::setSpeakerMix works and every parameter is used to set the balance of a sound in any speaker. + + FMOD_SPEAKERMODE_SRS5_1_MATRIX + ------------------------------------------------------ + This mode is for mono, stereo, 5.1 and 6.1 speaker arrangements, as it is backwards and forwards compatible with + stereo, but to get a surround effect a SRS 5.1, Prologic or Prologic 2 hardware decoder / amplifier is needed or + a compatible SRS equipped device (e.g., laptop, TV, etc.) or accessory (e.g., headphone). + Pan behavior is the same as FMOD_SPEAKERMODE_5POINT1. + + If this function is called the numoutputchannels setting in System::setSoftwareFormat is overwritten. + + Output rate must be 44100, 48000 or 96000 for this to work otherwise FMOD_ERR_OUTPUT_INIT will be returned. + + FMOD_SPEAKERMODE_DOLBY5_1_MATRIX + ------------------------------------------------------ + This mode is for 5.1 speaker arrangements using a stereo signal, to get a surround effect a Dolby Pro Logic II + hardware decoder / amplifier is needed. + Pan behavior is the same as FMOD_SPEAKERMODE_5POINT1. + + If this function is called the numoutputchannels setting in System::setSoftwareFormat is overwritten. + + Output rate must be 32000, 44100 or 48000 for this to work otherwise FMOD_ERR_OUTPUT_INIT will be returned. + + FMOD_SPEAKERMODE_MYEARS + ------------------------------------------------------ + This mode is for headphones. This will attempt to load a MyEars profile (see myears.net.au) and use it to generate + surround sound on headphones using a personalized HRTF algorithm, for realistic 3d sound. + Pan behavior is the same as FMOD_SPEAKERMODE_7POINT1. + MyEars speaker mode will automatically be set if the speakermode is FMOD_SPEAKERMODE_STEREO and the MyEars profile exists. + If this mode is set explicitly, FMOD_INIT_DISABLE_MYEARS_AUTODETECT has no effect. + If this mode is set explicitly and the MyEars profile does not exist, FMOD_ERR_OUTPUT_DRIVERCALL will be returned. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setSpeakerMode + System::getSpeakerMode + System::getDriverCaps + System::setSoftwareFormat + Channel::setSpeakerLevels +] +*/ +typedef enum +{ + FMOD_SPEAKERMODE_RAW, /* There is no specific speakermode. Sound channels are mapped in order of input to output. Use System::setSoftwareFormat to specify speaker count. See remarks for more information. */ + FMOD_SPEAKERMODE_MONO, /* The speakers are monaural. */ + FMOD_SPEAKERMODE_STEREO, /* The speakers are stereo (DEFAULT). */ + FMOD_SPEAKERMODE_QUAD, /* 4 speaker setup. This includes front left, front right, rear left, rear right. */ + FMOD_SPEAKERMODE_SURROUND, /* 5 speaker setup. This includes front left, front right, center, rear left, rear right. */ + FMOD_SPEAKERMODE_5POINT1, /* 5.1 speaker setup. This includes front left, front right, center, rear left, rear right and a subwoofer. */ + FMOD_SPEAKERMODE_7POINT1, /* 7.1 speaker setup. This includes front left, front right, center, rear left, rear right, side left, side right and a subwoofer. */ + + FMOD_SPEAKERMODE_SRS5_1_MATRIX, /* Stereo compatible output, embedded with surround information. SRS 5.1/Prologic/Prologic2 decoders will split the signal into a 5.1 speaker set-up or SRS virtual surround will decode into a 2-speaker/headphone setup. See remarks about limitations.*/ + FMOD_SPEAKERMODE_DOLBY5_1_MATRIX, /* Stereo compatible output, embedded with surround information. Dolby Pro Logic II decoders will split the signal into a 5.1 speaker set-up. */ + FMOD_SPEAKERMODE_MYEARS, /* Stereo output, but data is encoded using personalized HRTF algorithms. See myears.net.au */ + + FMOD_SPEAKERMODE_MAX, /* Maximum number of speaker modes supported. */ + FMOD_SPEAKERMODE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SPEAKERMODE; + + +/* +[ENUM] +[ + [DESCRIPTION] + These are speaker types defined for use with the Channel::setSpeakerLevels command. + It can also be used for speaker placement in the System::set3DSpeakerPosition command. + + [REMARKS] + If you are using FMOD_SPEAKERMODE_RAW and speaker assignments are meaningless, just cast a raw integer value to this type. + For example (FMOD_SPEAKER)7 would use the 7th speaker (also the same as FMOD_SPEAKER_SIDE_RIGHT). + Values higher than this can be used if an output system has more than 8 speaker types / output channels. 15 is the current maximum. + + NOTE: On Playstation 3 in 7.1, the extra 2 speakers are not side left/side right, they are 'surround back left'/'surround back right' which + locate the speakers behind the listener instead of to the sides like on PC. FMOD_SPEAKER_SBL/FMOD_SPEAKER_SBR are provided to make it + clearer what speaker is being addressed on that platform. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_SPEAKERMODE + Channel::setSpeakerLevels + Channel::getSpeakerLevels + System::set3DSpeakerPosition + System::get3DSpeakerPosition +] +*/ +typedef enum +{ + FMOD_SPEAKER_FRONT_LEFT, + FMOD_SPEAKER_FRONT_RIGHT, + FMOD_SPEAKER_FRONT_CENTER, + FMOD_SPEAKER_LOW_FREQUENCY, + FMOD_SPEAKER_BACK_LEFT, + FMOD_SPEAKER_BACK_RIGHT, + FMOD_SPEAKER_SIDE_LEFT, + FMOD_SPEAKER_SIDE_RIGHT, + + FMOD_SPEAKER_MAX, /* Maximum number of speaker types supported. */ + FMOD_SPEAKER_MONO = FMOD_SPEAKER_FRONT_LEFT, /* For use with FMOD_SPEAKERMODE_MONO and Channel::SetSpeakerLevels. Mapped to same value as FMOD_SPEAKER_FRONT_LEFT. */ + FMOD_SPEAKER_NULL = 65535, /* A non speaker. Use this with ASIO mapping to ignore a speaker. */ + FMOD_SPEAKER_SBL = FMOD_SPEAKER_SIDE_LEFT, /* For use with FMOD_SPEAKERMODE_7POINT1 on PS3 where the extra speakers are surround back inside of side speakers. */ + FMOD_SPEAKER_SBR = FMOD_SPEAKER_SIDE_RIGHT, /* For use with FMOD_SPEAKERMODE_7POINT1 on PS3 where the extra speakers are surround back inside of side speakers. */ + FMOD_SPEAKER_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SPEAKER; + + +/* +[ENUM] +[ + [DESCRIPTION] + These are plugin types defined for use with the System::getNumPlugins, + System::getPluginInfo and System::unloadPlugin functions. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::getNumPlugins + System::getPluginInfo + System::unloadPlugin +] +*/ +typedef enum +{ + FMOD_PLUGINTYPE_OUTPUT, /* The plugin type is an output module. FMOD mixed audio will play through one of these devices */ + FMOD_PLUGINTYPE_CODEC, /* The plugin type is a file format codec. FMOD will use these codecs to load file formats for playback. */ + FMOD_PLUGINTYPE_DSP, /* The plugin type is a DSP unit. FMOD will use these plugins as part of its DSP network to apply effects to output or generate sound in realtime. */ + + FMOD_PLUGINTYPE_MAX, /* Maximum number of plugin types supported. */ + FMOD_PLUGINTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_PLUGINTYPE; + + +/* +[DEFINE] +[ + [NAME] + FMOD_INITFLAGS + + [DESCRIPTION] + Initialization flags. Use them with System::init in the flags parameter to change various behavior. + + [REMARKS] + Use System::setAdvancedSettings to adjust settings for some of the features that are enabled by these flags. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::init + System::update + System::setAdvancedSettings + Channel::set3DOcclusion +] +*/ +#define FMOD_INIT_NORMAL 0x00000000 /* All platforms - Initialize normally */ +#define FMOD_INIT_STREAM_FROM_UPDATE 0x00000001 /* All platforms - No stream thread is created internally. Streams are driven from System::update. Mainly used with non-realtime outputs. */ +#define FMOD_INIT_3D_RIGHTHANDED 0x00000002 /* All platforms - FMOD will treat +X as right, +Y as up and +Z as backwards (towards you). */ +#define FMOD_INIT_SOFTWARE_DISABLE 0x00000004 /* All platforms - Disable software mixer to save memory. Anything created with FMOD_SOFTWARE will fail and DSP will not work. */ +#define FMOD_INIT_OCCLUSION_LOWPASS 0x00000008 /* All platforms - All FMOD_SOFTWARE (and FMOD_HARDWARE on 3DS and NGP) with FMOD_3D based voices will add a software lowpass filter effect into the DSP chain which is automatically used when Channel::set3DOcclusion is used or the geometry API. */ +#define FMOD_INIT_HRTF_LOWPASS 0x00000010 /* All platforms - All FMOD_SOFTWARE (and FMOD_HARDWARE on 3DS and NGP) with FMOD_3D based voices will add a software lowpass filter effect into the DSP chain which causes sounds to sound duller when the sound goes behind the listener. Use System::setAdvancedSettings to adjust cutoff frequency. */ +#define FMOD_INIT_DISTANCE_FILTERING 0x00000200 /* All platforms - All FMOD_SOFTWARE with FMOD_3D based voices will add a software lowpass and highpass filter effect into the DSP chain which will act as a distance-automated bandpass filter. Use System::setAdvancedSettings to adjust the center frequency. */ +#define FMOD_INIT_REVERB_PREALLOCBUFFERS 0x00000040 /* All platforms - FMOD Software reverb will preallocate enough buffers for reverb per channel, rather than allocating them and freeing them at runtime. */ +#define FMOD_INIT_ENABLE_PROFILE 0x00000020 /* All platforms - Enable TCP/IP based host which allows FMOD Designer or FMOD Profiler to connect to it, and view memory, CPU and the DSP network graph in real-time. */ +#define FMOD_INIT_VOL0_BECOMES_VIRTUAL 0x00000080 /* All platforms - Any sounds that are 0 volume will go virtual and not be processed except for having their positions updated virtually. Use System::setAdvancedSettings to adjust what volume besides zero to switch to virtual at. */ +#define FMOD_INIT_WASAPI_EXCLUSIVE 0x00000100 /* Win32 Vista only - for WASAPI output - Enable exclusive access to hardware, lower latency at the expense of excluding other applications from accessing the audio hardware. */ +#define FMOD_INIT_PS3_PREFERDTS 0x00800000 /* PS3 only - Prefer DTS over Dolby Digital if both are supported. Note: 8 and 6 channel LPCM is always preferred over both DTS and Dolby Digital. */ +#define FMOD_INIT_PS3_FORCE2CHLPCM 0x01000000 /* PS3 only - Force PS3 system output mode to 2 channel LPCM. */ +#define FMOD_INIT_DISABLEDOLBY 0x00100000 /* Wii / 3DS - Disable Dolby Pro Logic surround. Speakermode will be set to STEREO even if user has selected surround in the system settings. */ +#define FMOD_INIT_SYSTEM_MUSICMUTENOTPAUSE 0x00200000 /* Xbox 360 / PS3 - The "music" channelgroup which by default pauses when custom 360 dashboard / PS3 BGM music is played, can be changed to mute (therefore continues playing) instead of pausing, by using this flag. */ +#define FMOD_INIT_SYNCMIXERWITHUPDATE 0x00400000 /* Win32/Wii/PS3/Xbox/Xbox 360 - FMOD Mixer thread is woken up to do a mix when System::update is called rather than waking periodically on its own timer. */ +#define FMOD_INIT_GEOMETRY_USECLOSEST 0x04000000 /* All platforms - With the geometry engine, only process the closest polygon rather than accumulating all polygons the sound to listener line intersects. */ +#define FMOD_INIT_DISABLE_MYEARS_AUTODETECT 0x08000000 /* Win32 - Disables automatic setting of FMOD_SPEAKERMODE_STEREO to FMOD_SPEAKERMODE_MYEARS if the MyEars profile exists on the PC. MyEars is HRTF 7.1 downmixing through headphones. */ +#define FMOD_INIT_PS3_DISABLEDTS 0x10000000 /* PS3 only - Disable DTS output mode selection */ +#define FMOD_INIT_PS3_DISABLEDOLBYDIGITAL 0x20000000 /* PS3 only - Disable Dolby Digital output mode selection */ +#define FMOD_INIT_7POINT1_DOLBYMAPPING 0x40000000 /* PS3/PS4 only - FMOD uses the WAVEFORMATEX Microsoft 7.1 speaker mapping where the last 2 pairs of speakers are 'rears' then 'sides', but on PS3/PS4 these are mapped to 'surrounds' and 'backs'. Use this flag to swap fmod's last 2 pair of speakers on PS3/PS4 to avoid needing to do a special case for these platforms. */ +/* [DEFINE_END] */ + + +/* +[ENUM] +[ + [DESCRIPTION] + These definitions describe the type of song being played. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getFormat +] +*/ +typedef enum +{ + FMOD_SOUND_TYPE_UNKNOWN, /* 3rd party / unknown plugin format. */ + FMOD_SOUND_TYPE_AIFF, /* AIFF. */ + FMOD_SOUND_TYPE_ASF, /* Microsoft Advanced Systems Format (ie WMA/ASF/WMV). */ + FMOD_SOUND_TYPE_AT3, /* Sony ATRAC 3 format */ + FMOD_SOUND_TYPE_CDDA, /* Digital CD audio. */ + FMOD_SOUND_TYPE_DLS, /* Sound font / downloadable sound bank. */ + FMOD_SOUND_TYPE_FLAC, /* FLAC lossless codec. */ + FMOD_SOUND_TYPE_FSB, /* FMOD Sample Bank. */ + FMOD_SOUND_TYPE_GCADPCM, /* Nintendo GameCube/Wii ADPCM */ + FMOD_SOUND_TYPE_IT, /* Impulse Tracker. */ + FMOD_SOUND_TYPE_MIDI, /* MIDI. extracodecdata is a pointer to an FMOD_MIDI_EXTRACODECDATA structure. */ + FMOD_SOUND_TYPE_MOD, /* Protracker / Fasttracker MOD. */ + FMOD_SOUND_TYPE_MPEG, /* MP2/MP3 MPEG. */ + FMOD_SOUND_TYPE_OGGVORBIS, /* Ogg vorbis. */ + FMOD_SOUND_TYPE_PLAYLIST, /* Information only from ASX/PLS/M3U/WAX playlists */ + FMOD_SOUND_TYPE_RAW, /* Raw PCM data. */ + FMOD_SOUND_TYPE_S3M, /* ScreamTracker 3. */ + FMOD_SOUND_TYPE_SF2, /* Sound font 2 format. */ + FMOD_SOUND_TYPE_USER, /* User created sound. */ + FMOD_SOUND_TYPE_WAV, /* Microsoft WAV. */ + FMOD_SOUND_TYPE_XM, /* FastTracker 2 XM. */ + FMOD_SOUND_TYPE_XMA, /* Xbox360 XMA */ + FMOD_SOUND_TYPE_VAG, /* PlayStation Portable ADPCM VAG format. */ + FMOD_SOUND_TYPE_AUDIOQUEUE, /* iPhone hardware decoder, supports AAC, ALAC and MP3. extracodecdata is a pointer to an FMOD_AUDIOQUEUE_EXTRACODECDATA structure. */ + FMOD_SOUND_TYPE_XWMA, /* Xbox360 XWMA */ + FMOD_SOUND_TYPE_BCWAV, /* 3DS BCWAV container format for DSP ADPCM and PCM */ + FMOD_SOUND_TYPE_AT9, /* NGP ATRAC 9 format */ + FMOD_SOUND_TYPE_VORBIS, /* Raw vorbis */ + FMOD_SOUND_TYPE_MEDIA_FOUNDATION,/* Microsoft Media Foundation wrappers, supports ASF/WMA */ + + FMOD_SOUND_TYPE_MAX, /* Maximum number of sound types supported. */ + FMOD_SOUND_TYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SOUND_TYPE; + + +/* +[ENUM] +[ + [DESCRIPTION] + These definitions describe the native format of the hardware or software buffer that will be used. + + [REMARKS] + This is the format the native hardware or software buffer will be or is created in. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createSound + Sound::getFormat +] +*/ +typedef enum +{ + FMOD_SOUND_FORMAT_NONE, /* Unitialized / unknown. */ + FMOD_SOUND_FORMAT_PCM8, /* 8bit integer PCM data. */ + FMOD_SOUND_FORMAT_PCM16, /* 16bit integer PCM data. */ + FMOD_SOUND_FORMAT_PCM24, /* 24bit integer PCM data. */ + FMOD_SOUND_FORMAT_PCM32, /* 32bit integer PCM data. */ + FMOD_SOUND_FORMAT_PCMFLOAT, /* 32bit floating point PCM data. */ + FMOD_SOUND_FORMAT_GCADPCM, /* Compressed Nintendo 3DS/Wii DSP data. */ + FMOD_SOUND_FORMAT_IMAADPCM, /* Compressed IMA ADPCM data. */ + FMOD_SOUND_FORMAT_VAG, /* Compressed PlayStation Portable ADPCM data. */ + FMOD_SOUND_FORMAT_HEVAG, /* Compressed PSVita ADPCM data. */ + FMOD_SOUND_FORMAT_XMA, /* Compressed Xbox360 XMA data. */ + FMOD_SOUND_FORMAT_MPEG, /* Compressed MPEG layer 2 or 3 data. */ + FMOD_SOUND_FORMAT_CELT, /* Compressed CELT data. */ + FMOD_SOUND_FORMAT_AT9, /* Compressed PSVita ATRAC9 data. */ + FMOD_SOUND_FORMAT_XWMA, /* Compressed Xbox360 xWMA data. */ + FMOD_SOUND_FORMAT_VORBIS, /* Compressed Vorbis data. */ + + FMOD_SOUND_FORMAT_MAX, /* Maximum number of sound formats supported. */ + FMOD_SOUND_FORMAT_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SOUND_FORMAT; + + +/* +[DEFINE] +[ + [NAME] + FMOD_MODE + + [DESCRIPTION] + Sound description bitfields, bitwise OR them together for loading and describing sounds. + + [REMARKS] + By default a sound will open as a static sound that is decompressed fully into memory to PCM. (ie equivalent of FMOD_CREATESAMPLE) + To have a sound stream instead, use FMOD_CREATESTREAM, or use the wrapper function System::createStream. + Some opening modes (ie FMOD_OPENUSER, FMOD_OPENMEMORY, FMOD_OPENMEMORY_POINT, FMOD_OPENRAW) will need extra information. + This can be provided using the FMOD_CREATESOUNDEXINFO structure. + + Specifying FMOD_OPENMEMORY_POINT will POINT to your memory rather allocating its own sound buffers and duplicating it internally. + This means you cannot free the memory while FMOD is using it, until after Sound::release is called. + With FMOD_OPENMEMORY_POINT, for PCM formats, only WAV, FSB, and RAW are supported. For compressed formats, only those formats supported by FMOD_CREATECOMPRESSEDSAMPLE are supported. + With FMOD_OPENMEMORY_POINT and FMOD_OPENRAW or PCM, if using them together, note that you must pad the data on each side by 16 bytes. This is so fmod can modify the ends of the data for looping/interpolation/mixing purposes. If a wav file, you will need to insert silence, and then reset loop points to stop the playback from playing that silence. + With FMOD_OPENMEMORY_POINT, For Wii/PSP FMOD_HARDWARE supports this flag for the GCADPCM/VAG formats. On other platforms FMOD_SOFTWARE must be used. + + Xbox 360 memory On Xbox 360 Specifying FMOD_OPENMEMORY_POINT to a virtual memory address will cause FMOD_ERR_INVALID_ADDRESS + to be returned. Use physical memory only for this functionality. + + FMOD_LOWMEM is used on a sound if you want to minimize the memory overhead, by having FMOD not allocate memory for certain + features that are not likely to be used in a game environment. These are : + 1. Sound::getName functionality is removed. 256 bytes per sound is saved. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createSound + System::createStream + Sound::setMode + Sound::getMode + Channel::setMode + Channel::getMode + Sound::set3DCustomRolloff + Channel::set3DCustomRolloff + Sound::getOpenState +] +*/ +#define FMOD_DEFAULT 0x00000000 /* Default for all modes listed below. FMOD_LOOP_OFF, FMOD_2D, FMOD_HARDWARE */ +#define FMOD_LOOP_OFF 0x00000001 /* For non looping sounds. (DEFAULT). Overrides FMOD_LOOP_NORMAL / FMOD_LOOP_BIDI. */ +#define FMOD_LOOP_NORMAL 0x00000002 /* For forward looping sounds. */ +#define FMOD_LOOP_BIDI 0x00000004 /* For bidirectional looping sounds. (only works on software mixed static sounds). */ +#define FMOD_2D 0x00000008 /* Ignores any 3d processing. (DEFAULT). */ +#define FMOD_3D 0x00000010 /* Makes the sound positionable in 3D. Overrides FMOD_2D. */ +#define FMOD_HARDWARE 0x00000020 /* Attempts to make sounds use hardware acceleration. (DEFAULT). Note on platforms that don't support FMOD_HARDWARE (only 3DS, PS Vita, PSP, Wii and Wii U support FMOD_HARDWARE), this will be internally treated as FMOD_SOFTWARE. */ +#define FMOD_SOFTWARE 0x00000040 /* Makes the sound be mixed by the FMOD CPU based software mixer. Overrides FMOD_HARDWARE. Use this for FFT, DSP, compressed sample support, 2D multi-speaker support and other software related features. */ +#define FMOD_CREATESTREAM 0x00000080 /* Decompress at runtime, streaming from the source provided (ie from disk). Overrides FMOD_CREATESAMPLE and FMOD_CREATECOMPRESSEDSAMPLE. Note a stream can only be played once at a time due to a stream only having 1 stream buffer and file handle. Open multiple streams to have them play concurrently. */ +#define FMOD_CREATESAMPLE 0x00000100 /* Decompress at loadtime, decompressing or decoding whole file into memory as the target sample format (ie PCM). Fastest for FMOD_SOFTWARE based playback and most flexible. */ +#define FMOD_CREATECOMPRESSEDSAMPLE 0x00000200 /* Load MP2/MP3/IMAADPCM/CELT/Vorbis/AT9 or XMA into memory and leave it compressed. CELT/Vorbis/AT9 encoding only supported in the FSB file format. During playback the FMOD software mixer will decode it in realtime as a 'compressed sample'. Can only be used in combination with FMOD_SOFTWARE. Overrides FMOD_CREATESAMPLE. If the sound data is not one of the supported formats, it will behave as if it was created with FMOD_CREATESAMPLE and decode the sound into PCM. */ +#define FMOD_OPENUSER 0x00000400 /* Opens a user created static sample or stream. Use FMOD_CREATESOUNDEXINFO to specify format and/or read callbacks. If a user created 'sample' is created with no read callback, the sample will be empty. Use Sound::lock and Sound::unlock to place sound data into the sound if this is the case. */ +#define FMOD_OPENMEMORY 0x00000800 /* "name_or_data" will be interpreted as a pointer to memory instead of filename for creating sounds. Use FMOD_CREATESOUNDEXINFO to specify length. If used with FMOD_CREATESAMPLE or FMOD_CREATECOMPRESSEDSAMPLE, FMOD duplicates the memory into its own buffers. Your own buffer can be freed after open. If used with FMOD_CREATESTREAM, FMOD will stream out of the buffer whose pointer you passed in. In this case, your own buffer should not be freed until you have finished with and released the stream.*/ +#define FMOD_OPENMEMORY_POINT 0x10000000 /* "name_or_data" will be interpreted as a pointer to memory instead of filename for creating sounds. Use FMOD_CREATESOUNDEXINFO to specify length. This differs to FMOD_OPENMEMORY in that it uses the memory as is, without duplicating the memory into its own buffers. For Wii/PSP FMOD_HARDWARE supports this flag for the GCADPCM/VAG formats. On other platforms FMOD_SOFTWARE must be used, as sound hardware on the other platforms (ie PC) cannot access main ram. Cannot be freed after open, only after Sound::release. Will not work if the data is compressed and FMOD_CREATECOMPRESSEDSAMPLE is not used. */ +#define FMOD_OPENRAW 0x00001000 /* Will ignore file format and treat as raw pcm. Use FMOD_CREATESOUNDEXINFO to specify format. Requires at least defaultfrequency, numchannels and format to be specified before it will open. Must be little endian data. */ +#define FMOD_OPENONLY 0x00002000 /* Just open the file, dont prebuffer or read. Good for fast opens for info, or when sound::readData is to be used. */ +#define FMOD_ACCURATETIME 0x00004000 /* For System::createSound - for accurate Sound::getLength/Channel::setPosition on VBR MP3, and MOD/S3M/XM/IT/MIDI files. Scans file first, so takes longer to open. FMOD_OPENONLY does not affect this. */ +#define FMOD_MPEGSEARCH 0x00008000 /* For corrupted / bad MP3 files. This will search all the way through the file until it hits a valid MPEG header. Normally only searches for 4k. */ +#define FMOD_NONBLOCKING 0x00010000 /* For opening sounds and getting streamed subsounds (seeking) asyncronously. Use Sound::getOpenState to poll the state of the sound as it opens or retrieves the subsound in the background. */ +#define FMOD_UNIQUE 0x00020000 /* Unique sound, can only be played one at a time */ +#define FMOD_3D_HEADRELATIVE 0x00040000 /* Make the sound's position, velocity and orientation relative to the listener. */ +#define FMOD_3D_WORLDRELATIVE 0x00080000 /* Make the sound's position, velocity and orientation absolute (relative to the world). (DEFAULT) */ +#define FMOD_3D_INVERSEROLLOFF 0x00100000 /* This sound will follow the inverse rolloff model where mindistance = full volume, maxdistance = where sound stops attenuating, and rolloff is fixed according to the global rolloff factor. (DEFAULT) */ +#define FMOD_3D_LINEARROLLOFF 0x00200000 /* This sound will follow a linear rolloff model where mindistance = full volume, maxdistance = silence. Rolloffscale is ignored. */ +#define FMOD_3D_LINEARSQUAREROLLOFF 0x00400000 /* This sound will follow a linear-square rolloff model where mindistance = full volume, maxdistance = silence. Rolloffscale is ignored. */ +#define FMOD_3D_CUSTOMROLLOFF 0x04000000 /* This sound will follow a rolloff model defined by Sound::set3DCustomRolloff / Channel::set3DCustomRolloff. */ +#define FMOD_3D_IGNOREGEOMETRY 0x40000000 /* Is not affect by geometry occlusion. If not specified in Sound::setMode, or Channel::setMode, the flag is cleared and it is affected by geometry again. */ +#define FMOD_UNICODE 0x01000000 /* Filename is double-byte unicode. */ +#define FMOD_IGNORETAGS 0x02000000 /* Skips id3v2/asf/etc tag checks when opening a sound, to reduce seek/read overhead when opening files (helps with CD performance). */ +#define FMOD_LOWMEM 0x08000000 /* Removes some features from samples to give a lower memory overhead, like Sound::getName. See remarks. */ +#define FMOD_LOADSECONDARYRAM 0x20000000 /* Load sound into the secondary RAM of supported platform. On PS3, sounds will be loaded into RSX/VRAM. */ +#define FMOD_VIRTUAL_PLAYFROMSTART 0x80000000 /* For sounds that start virtual (due to being quiet or low importance), instead of swapping back to audible, and playing at the correct offset according to time, this flag makes the sound play from the start. */ + +/* [DEFINE_END] */ + + +/* +[ENUM] +[ + [DESCRIPTION] + These values describe what state a sound is in after FMOD_NONBLOCKING has been used to open it. + + [REMARKS] + With streams, if you are using FMOD_NONBLOCKING, note that if the user calls Sound::getSubSound, a stream will go into FMOD_OPENSTATE_SEEKING state and sound related commands will return FMOD_ERR_NOTREADY. + With streams, if you are using FMOD_NONBLOCKING, note that if the user calls Channel::getPosition, a stream will go into FMOD_OPENSTATE_SETPOSITION state and sound related commands will return FMOD_ERR_NOTREADY. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getOpenState + FMOD_MODE +] +*/ +typedef enum +{ + FMOD_OPENSTATE_READY = 0, /* Opened and ready to play. */ + FMOD_OPENSTATE_LOADING, /* Initial load in progress. */ + FMOD_OPENSTATE_ERROR, /* Failed to open - file not found, out of memory etc. See return value of Sound::getOpenState for what happened. */ + FMOD_OPENSTATE_CONNECTING, /* Connecting to remote host (internet sounds only). */ + FMOD_OPENSTATE_BUFFERING, /* Buffering data. */ + FMOD_OPENSTATE_SEEKING, /* Seeking to subsound and re-flushing stream buffer. */ + FMOD_OPENSTATE_PLAYING, /* Ready and playing, but not possible to release at this time without stalling the main thread. */ + FMOD_OPENSTATE_SETPOSITION, /* Seeking within a stream to a different position. */ + + FMOD_OPENSTATE_MAX, /* Maximum number of open state types. */ + FMOD_OPENSTATE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_OPENSTATE; + + +/* +[ENUM] +[ + [DESCRIPTION] + These flags are used with SoundGroup::setMaxAudibleBehavior to determine what happens when more sounds + are played than are specified with SoundGroup::setMaxAudible. + + [REMARKS] + When using FMOD_SOUNDGROUP_BEHAVIOR_MUTE, SoundGroup::setMuteFadeSpeed can be used to stop a sudden transition. + Instead, the time specified will be used to cross fade between the sounds that go silent and the ones that become audible. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + SoundGroup::setMaxAudibleBehavior + SoundGroup::getMaxAudibleBehavior + SoundGroup::setMaxAudible + SoundGroup::getMaxAudible + SoundGroup::setMuteFadeSpeed + SoundGroup::getMuteFadeSpeed +] +*/ +typedef enum +{ + FMOD_SOUNDGROUP_BEHAVIOR_FAIL, /* Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will simply fail during System::playSound. */ + FMOD_SOUNDGROUP_BEHAVIOR_MUTE, /* Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will be silent, then if another sound in the group stops the sound that was silent before becomes audible again. */ + FMOD_SOUNDGROUP_BEHAVIOR_STEALLOWEST, /* Any sound played that puts the sound count over the SoundGroup::setMaxAudible setting, will steal the quietest / least important sound playing in the group. */ + + FMOD_SOUNDGROUP_BEHAVIOR_MAX, /* Maximum number of open state types. */ + FMOD_SOUNDGROUP_BEHAVIOR_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SOUNDGROUP_BEHAVIOR; + + +/* +[ENUM] +[ + [DESCRIPTION] + These callback types are used with Channel::setCallback. + + [REMARKS] + Each callback has commanddata parameters passed as int unique to the type of callback. + See reference to FMOD_CHANNEL_CALLBACK to determine what they might mean for each type of callback. + + Note! Currently the user must call System::update for these callbacks to trigger! + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Channel::setCallback + FMOD_CHANNEL_CALLBACK + System::update +] +*/ +typedef enum +{ + FMOD_CHANNEL_CALLBACKTYPE_END, /* Called when a sound ends. */ + FMOD_CHANNEL_CALLBACKTYPE_VIRTUALVOICE, /* Called when a voice is swapped out or swapped in. */ + FMOD_CHANNEL_CALLBACKTYPE_SYNCPOINT, /* Called when a syncpoint is encountered. Can be from wav file markers. */ + FMOD_CHANNEL_CALLBACKTYPE_OCCLUSION, /* Called when the channel has its geometry occlusion value calculated. Can be used to clamp or change the value. */ + + FMOD_CHANNEL_CALLBACKTYPE_MAX, /* Maximum number of callback types supported. */ + FMOD_CHANNEL_CALLBACKTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_CHANNEL_CALLBACKTYPE; + + +/* +[ENUM] +[ + [DESCRIPTION] + These callback types are used with System::setCallback. + + [REMARKS] + Each callback has commanddata parameters passed as void* unique to the type of callback. + See reference to FMOD_SYSTEM_CALLBACK to determine what they might mean for each type of callback. + + Note! Using FMOD_SYSTEM_CALLBACKTYPE_DEVICELISTCHANGED (on Mac only) requires the application to be running an event loop which will allow external changes to device list to be detected by FMOD. + + Note! The 'system' object pointer will be null for FMOD_SYSTEM_CALLBACKTYPE_MEMORYALLOCATIONFAILED callback. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setCallback + FMOD_SYSTEM_CALLBACK + System::update + DSP::addInput +] +*/ +typedef enum +{ + FMOD_SYSTEM_CALLBACKTYPE_DEVICELISTCHANGED, /* Called from System::update when the enumerated list of devices has changed. */ + FMOD_SYSTEM_CALLBACKTYPE_DEVICELOST, /* Called from System::update when an output device has been lost due to control panel parameter changes and FMOD cannot automatically recover. */ + FMOD_SYSTEM_CALLBACKTYPE_MEMORYALLOCATIONFAILED, /* Called directly when a memory allocation fails somewhere in FMOD. (NOTE - 'system' will be NULL in this callback type.)*/ + FMOD_SYSTEM_CALLBACKTYPE_THREADCREATED, /* Called directly when a thread is created. */ + FMOD_SYSTEM_CALLBACKTYPE_BADDSPCONNECTION, /* Called when a bad connection was made with DSP::addInput. Usually called from mixer thread because that is where the connections are made. */ + FMOD_SYSTEM_CALLBACKTYPE_BADDSPLEVEL, /* Called when too many effects were added exceeding the maximum tree depth of 128. This is most likely caused by accidentally adding too many DSP effects. Usually called from mixer thread because that is where the connections are made. */ + FMOD_SYSTEM_CALLBACKTYPE_THREADDESTROYED, /* Called directly when a thread is destroyed. */ + + FMOD_SYSTEM_CALLBACKTYPE_MAX, /* Maximum number of callback types supported. */ + FMOD_SYSTEM_CALLBACKTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_SYSTEM_CALLBACKTYPE; + + +/* + FMOD Callbacks +*/ +typedef FMOD_RESULT (F_CALLBACK *FMOD_SYSTEM_CALLBACK) (FMOD_SYSTEM *system, FMOD_SYSTEM_CALLBACKTYPE type, void *commanddata1, void *commanddata2); + +typedef FMOD_RESULT (F_CALLBACK *FMOD_CHANNEL_CALLBACK) (FMOD_CHANNEL *channel, FMOD_CHANNEL_CALLBACKTYPE type, void *commanddata1, void *commanddata2); + +typedef FMOD_RESULT (F_CALLBACK *FMOD_SOUND_NONBLOCKCALLBACK)(FMOD_SOUND *sound, FMOD_RESULT result); +typedef FMOD_RESULT (F_CALLBACK *FMOD_SOUND_PCMREADCALLBACK)(FMOD_SOUND *sound, void *data, unsigned int datalen); +typedef FMOD_RESULT (F_CALLBACK *FMOD_SOUND_PCMSETPOSCALLBACK)(FMOD_SOUND *sound, int subsound, unsigned int position, FMOD_TIMEUNIT postype); + +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_OPENCALLBACK) (const char *name, int unicode, unsigned int *filesize, void **handle, void **userdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_CLOSECALLBACK) (void *handle, void *userdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_READCALLBACK) (void *handle, void *buffer, unsigned int sizebytes, unsigned int *bytesread, void *userdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_SEEKCALLBACK) (void *handle, unsigned int pos, void *userdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_ASYNCREADCALLBACK)(FMOD_ASYNCREADINFO *info, void *userdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_FILE_ASYNCCANCELCALLBACK)(void *handle, void *userdata); + +typedef void * (F_CALLBACK *FMOD_MEMORY_ALLOCCALLBACK) (unsigned int size, FMOD_MEMORY_TYPE type, const char *sourcestr); +typedef void * (F_CALLBACK *FMOD_MEMORY_REALLOCCALLBACK)(void *ptr, unsigned int size, FMOD_MEMORY_TYPE type, const char *sourcestr); +typedef void (F_CALLBACK *FMOD_MEMORY_FREECALLBACK) (void *ptr, FMOD_MEMORY_TYPE type, const char *sourcestr); + +typedef float (F_CALLBACK *FMOD_3D_ROLLOFFCALLBACK) (FMOD_CHANNEL *channel, float distance); + + +/* +[ENUM] +[ + [DESCRIPTION] + List of windowing methods used in spectrum analysis to reduce leakage / transient signals intefering with the analysis. + This is a problem with analysis of continuous signals that only have a small portion of the signal sample (the fft window size). + Windowing the signal with a curve or triangle tapers the sides of the fft window to help alleviate this problem. + + [REMARKS] + Cyclic signals such as a sine wave that repeat their cycle in a multiple of the window size do not need windowing. + I.e. If the sine wave repeats every 1024, 512, 256 etc samples and the FMOD fft window is 1024, then the signal would not need windowing. + Not windowing is the same as FMOD_DSP_FFT_WINDOW_RECT, which is the default. + If the cycle of the signal (ie the sine wave) is not a multiple of the window size, it will cause frequency abnormalities, so a different windowing method is needed. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::getSpectrum + Channel::getSpectrum +] +*/ +typedef enum +{ + FMOD_DSP_FFT_WINDOW_RECT, /* w[n] = 1.0 */ + FMOD_DSP_FFT_WINDOW_TRIANGLE, /* w[n] = TRI(2n/N) */ + FMOD_DSP_FFT_WINDOW_HAMMING, /* w[n] = 0.54 - (0.46 * COS(n/N) ) */ + FMOD_DSP_FFT_WINDOW_HANNING, /* w[n] = 0.5 * (1.0 - COS(n/N) ) */ + FMOD_DSP_FFT_WINDOW_BLACKMAN, /* w[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) ) */ + FMOD_DSP_FFT_WINDOW_BLACKMANHARRIS, /* w[n] = 0.35875 - (0.48829 * COS(1.0 * n/N)) + (0.14128 * COS(2.0 * n/N)) - (0.01168 * COS(3.0 * n/N)) */ + + FMOD_DSP_FFT_WINDOW_MAX, /* Maximum number of FFT window types supported. */ + FMOD_DSP_FFT_WINDOW_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_DSP_FFT_WINDOW; + + +/* +[ENUM] +[ + [DESCRIPTION] + List of interpolation types that the FMOD Ex software mixer supports. + + [REMARKS] + The default resampler type is FMOD_DSP_RESAMPLER_LINEAR. + Use System::setSoftwareFormat to tell FMOD the resampling quality you require for FMOD_SOFTWARE based sounds. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setSoftwareFormat + System::getSoftwareFormat +] +*/ +typedef enum +{ + FMOD_DSP_RESAMPLER_NOINTERP, /* No interpolation. High frequency aliasing hiss will be audible depending on the sample rate of the sound. */ + FMOD_DSP_RESAMPLER_LINEAR, /* Linear interpolation (default method). Fast and good quality, causes very slight lowpass effect on low frequency sounds. */ + FMOD_DSP_RESAMPLER_CUBIC, /* Cubic interpolation. Slower than linear interpolation but better quality. */ + FMOD_DSP_RESAMPLER_SPLINE, /* 5 point spline interpolation. Slowest resampling method but best quality. */ + + FMOD_DSP_RESAMPLER_MAX, /* Maximum number of resample methods supported. */ + FMOD_DSP_RESAMPLER_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_DSP_RESAMPLER; + + +/* +[ENUM] +[ + [DESCRIPTION] + List of tag types that could be stored within a sound. These include id3 tags, metadata from netstreams and vorbis/asf data. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getTag +] +*/ +typedef enum +{ + FMOD_TAGTYPE_UNKNOWN = 0, + FMOD_TAGTYPE_ID3V1, + FMOD_TAGTYPE_ID3V2, + FMOD_TAGTYPE_VORBISCOMMENT, + FMOD_TAGTYPE_SHOUTCAST, + FMOD_TAGTYPE_ICECAST, + FMOD_TAGTYPE_ASF, + FMOD_TAGTYPE_MIDI, + FMOD_TAGTYPE_PLAYLIST, + FMOD_TAGTYPE_FMOD, + FMOD_TAGTYPE_USER, + + FMOD_TAGTYPE_MAX, /* Maximum number of tag types supported. */ + FMOD_TAGTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_TAGTYPE; + + +/* +[ENUM] +[ + [DESCRIPTION] + List of data types that can be returned by Sound::getTag + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getTag +] +*/ +typedef enum +{ + FMOD_TAGDATATYPE_BINARY = 0, + FMOD_TAGDATATYPE_INT, + FMOD_TAGDATATYPE_FLOAT, + FMOD_TAGDATATYPE_STRING, + FMOD_TAGDATATYPE_STRING_UTF16, + FMOD_TAGDATATYPE_STRING_UTF16BE, + FMOD_TAGDATATYPE_STRING_UTF8, + FMOD_TAGDATATYPE_CDTOC, + + FMOD_TAGDATATYPE_MAX, /* Maximum number of tag datatypes supported. */ + FMOD_TAGDATATYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_TAGDATATYPE; + + +/* +[ENUM] +[ + [DESCRIPTION] + Types of delay that can be used with Channel::setDelay / Channel::getDelay. + + [REMARKS] + If you haven't called Channel::setDelay yet, if you call Channel::getDelay with FMOD_DELAYTYPE_DSPCLOCK_START it will return the + equivalent global DSP clock value to determine when a channel started, so that you can use it for other channels to sync against. + + Use System::getDSPClock to also get the current dspclock time, a base for future calls to Channel::setDelay. + + Use FMOD_64BIT_ADD or FMOD_64BIT_SUB to add a hi/lo combination together and cope with wraparound. + + If FMOD_DELAYTYPE_END_MS is specified, the value is not treated as a 64 bit number, just the delayhi value is used and it is treated as milliseconds. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Channel::setDelay + Channel::getDelay + System::getDSPClock +] +*/ +typedef enum +{ + FMOD_DELAYTYPE_END_MS, /* Delay at the end of the sound in milliseconds. Use delayhi only. Channel::isPlaying will remain true until this delay has passed even though the sound itself has stopped playing.*/ + FMOD_DELAYTYPE_DSPCLOCK_START, /* Time the sound started if Channel::getDelay is used, or if Channel::setDelay is used, the sound will delay playing until this exact tick. */ + FMOD_DELAYTYPE_DSPCLOCK_END, /* Time the sound should end. If this is non-zero, the channel will go silent at this exact tick. */ + FMOD_DELAYTYPE_DSPCLOCK_PAUSE, /* Time the sound should pause. If this is non-zero, the channel will pause at this exact tick. */ + + FMOD_DELAYTYPE_MAX, /* Maximum number of tag datatypes supported. */ + FMOD_DELAYTYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_DELAYTYPE; + + +#define FMOD_64BIT_ADD(_hi1, _lo1, _hi2, _lo2) _hi1 += ((_hi2) + ((((_lo1) + (_lo2)) < (_lo1)) ? 1 : 0)); (_lo1) += (_lo2); +#define FMOD_64BIT_SUB(_hi1, _lo1, _hi2, _lo2) _hi1 -= ((_hi2) + ((((_lo1) - (_lo2)) > (_lo1)) ? 1 : 0)); (_lo1) -= (_lo2); + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure describing a piece of tag data. + + [REMARKS] + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getTag + FMOD_TAGTYPE + FMOD_TAGDATATYPE +] +*/ +typedef struct FMOD_TAG +{ + FMOD_TAGTYPE type; /* [r] The type of this tag. */ + FMOD_TAGDATATYPE datatype; /* [r] The type of data that this tag contains */ + char *name; /* [r] The name of this tag i.e. "TITLE", "ARTIST" etc. */ + void *data; /* [r] Pointer to the tag data - its format is determined by the datatype member */ + unsigned int datalen; /* [r] Length of the data contained in this tag */ + FMOD_BOOL updated; /* [r] True if this tag has been updated since last being accessed with Sound::getTag */ +} FMOD_TAG; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure describing a CD/DVD table of contents + + [REMARKS] + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getTag +] +*/ +typedef struct FMOD_CDTOC +{ + int numtracks; /* [r] The number of tracks on the CD */ + int min[100]; /* [r] The start offset of each track in minutes */ + int sec[100]; /* [r] The start offset of each track in seconds */ + int frame[100]; /* [r] The start offset of each track in frames */ +} FMOD_CDTOC; + + +/* +[DEFINE] +[ + [NAME] + FMOD_TIMEUNIT + + [DESCRIPTION] + List of time types that can be returned by Sound::getLength and used with Channel::setPosition or Channel::getPosition. + + [REMARKS] + FMOD_TIMEUNIT_SENTENCE_MS, FMOD_TIMEUNIT_SENTENCE_PCM, FMOD_TIMEUNIT_SENTENCE_PCMBYTES, FMOD_TIMEUNIT_SENTENCE and FMOD_TIMEUNIT_SENTENCE_SUBSOUND are only supported by Channel functions. + Do not combine flags except FMOD_TIMEUNIT_BUFFERED. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Sound::getLength + Channel::setPosition + Channel::getPosition +] +*/ +#define FMOD_TIMEUNIT_MS 0x00000001 /* Milliseconds. */ +#define FMOD_TIMEUNIT_PCM 0x00000002 /* PCM samples, related to milliseconds * samplerate / 1000. */ +#define FMOD_TIMEUNIT_PCMBYTES 0x00000004 /* Bytes, related to PCM samples * channels * datawidth (ie 16bit = 2 bytes). */ +#define FMOD_TIMEUNIT_RAWBYTES 0x00000008 /* Raw file bytes of (compressed) sound data (does not include headers). Only used by Sound::getLength and Channel::getPosition. */ +#define FMOD_TIMEUNIT_PCMFRACTION 0x00000010 /* Fractions of 1 PCM sample. Unsigned int range 0 to 0xFFFFFFFF. Used for sub-sample granularity for DSP purposes. */ +#define FMOD_TIMEUNIT_MODORDER 0x00000100 /* MOD/S3M/XM/IT. Order in a sequenced module format. Use Sound::getFormat to determine the PCM format being decoded to. */ +#define FMOD_TIMEUNIT_MODROW 0x00000200 /* MOD/S3M/XM/IT. Current row in a sequenced module format. Sound::getLength will return the number of rows in the currently playing or seeked to pattern. */ +#define FMOD_TIMEUNIT_MODPATTERN 0x00000400 /* MOD/S3M/XM/IT. Current pattern in a sequenced module format. Sound::getLength will return the number of patterns in the song and Channel::getPosition will return the currently playing pattern. */ +#define FMOD_TIMEUNIT_SENTENCE_MS 0x00010000 /* Currently playing subsound in a sentence time in milliseconds. */ +#define FMOD_TIMEUNIT_SENTENCE_PCM 0x00020000 /* Currently playing subsound in a sentence time in PCM Samples, related to milliseconds * samplerate / 1000. */ +#define FMOD_TIMEUNIT_SENTENCE_PCMBYTES 0x00040000 /* Currently playing subsound in a sentence time in bytes, related to PCM samples * channels * datawidth (ie 16bit = 2 bytes). */ +#define FMOD_TIMEUNIT_SENTENCE 0x00080000 /* Currently playing sentence index according to the channel. */ +#define FMOD_TIMEUNIT_SENTENCE_SUBSOUND 0x00100000 /* Currently playing subsound index in a sentence. */ +#define FMOD_TIMEUNIT_BUFFERED 0x10000000 /* Time value as seen by buffered stream. This is always ahead of audible time, and is only used for processing. */ +/* [DEFINE_END] */ + + +/* +[ENUM] +[ + [DESCRIPTION] + When creating a multichannel sound, FMOD will pan them to their default speaker locations, for example a 6 channel sound will default to one channel per 5.1 output speaker. + Another example is a stereo sound. It will default to left = front left, right = front right. + + This is for sounds that are not 'default'. For example you might have a sound that is 6 channels but actually made up of 3 stereo pairs, that should all be located in front left, front right only. + + [REMARKS] + For full flexibility of speaker assignments, use Channel::setSpeakerLevels. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_CREATESOUNDEXINFO + Channel::setSpeakerLevels +] +*/ +typedef enum +{ + FMOD_SPEAKERMAPTYPE_DEFAULT, /* This is the default, and just means FMOD decides which speakers it puts the source channels. */ + FMOD_SPEAKERMAPTYPE_ALLMONO, /* This means the sound is made up of all mono sounds. All voices will be panned to the front center by default in this case. */ + FMOD_SPEAKERMAPTYPE_ALLSTEREO, /* This means the sound is made up of all stereo sounds. All voices will be panned to front left and front right alternating every second channel. */ + FMOD_SPEAKERMAPTYPE_51_PROTOOLS /* Map a 5.1 sound to use protools L C R Ls Rs LFE mapping. Will return an error if not a 6 channel sound. */ +} FMOD_SPEAKERMAPTYPE; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Use this structure with System::createSound when more control is needed over loading. + The possible reasons to use this with System::createSound are: + - Loading a file from memory. + - Loading a file from within another larger (possibly wad/pak) file, by giving the loader an offset and length. + - To create a user created / non file based sound. + - To specify a starting subsound to seek to within a multi-sample sounds (ie FSB/DLS/SF2) when created as a stream. + - To specify which subsounds to load for multi-sample sounds (ie FSB/DLS/SF2) so that memory is saved and only a subset is actually loaded/read from disk. + - To specify 'piggyback' read and seek callbacks for capture of sound data as fmod reads and decodes it. Useful for ripping decoded PCM data from sounds as they are loaded / played. + - To specify a MIDI DLS/SF2 sample set file to load when opening a MIDI file. + See below on what members to fill for each of the above types of sound you want to create. + + [REMARKS] + This structure is optional! Specify 0 or NULL in System::createSound if you don't need it! + + Loading a file from memory. + - Create the sound using the FMOD_OPENMEMORY flag. + - Mandatory. Specify 'length' for the size of the memory block in bytes. + - Other flags are optional. + + + Loading a file from within another larger (possibly wad/pak) file, by giving the loader an offset and length. + - Mandatory. Specify 'fileoffset' and 'length'. + - Other flags are optional. + + + To create a user created / non file based sound. + - Create the sound using the FMOD_OPENUSER flag. + - Mandatory. Specify 'defaultfrequency, 'numchannels' and 'format'. + - Other flags are optional. + + + To specify a starting subsound to seek to and flush with, within a multi-sample stream (ie FSB/DLS/SF2). + + - Mandatory. Specify 'initialsubsound'. + + + To specify which subsounds to load for multi-sample sounds (ie FSB/DLS/SF2) so that memory is saved and only a subset is actually loaded/read from disk. + + - Mandatory. Specify 'inclusionlist' and 'inclusionlistnum'. + + + To specify 'piggyback' read and seek callbacks for capture of sound data as fmod reads and decodes it. Useful for ripping decoded PCM data from sounds as they are loaded / played. + + - Mandatory. Specify 'pcmreadcallback' and 'pcmseekcallback'. + + + To specify a MIDI DLS/SF2 sample set file to load when opening a MIDI file. + + - Mandatory. Specify 'dlsname'. + + + Setting the 'decodebuffersize' is for cpu intensive codecs that may be causing stuttering, not file intensive codecs (ie those from CD or netstreams) which are normally + altered with System::setStreamBufferSize. As an example of cpu intensive codecs, an mp3 file will take more cpu to decode than a PCM wav file. + If you have a stuttering effect, then it is using more cpu than the decode buffer playback rate can keep up with. Increasing the decode buffersize will most likely solve this problem. + + + FSB codec. If inclusionlist and numsubsounds are used together, this will trigger a special mode where subsounds are shuffled down to save memory. (useful for large FSB + files where you only want to load 1 sound). There will be no gaps, ie no null subsounds. As an example, if there are 10,000 subsounds and there is an inclusionlist with only 1 entry, + and numsubsounds = 1, then subsound 0 will be that entry, and there will only be the memory allocated for 1 subsound. Previously there would still be 10,000 subsound pointers and other + associated codec entries allocated along with it multiplied by 10,000. + + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createSound + System::setStreamBufferSize + FMOD_MODE + FMOD_SOUND_FORMAT + FMOD_SOUND_TYPE + FMOD_SPEAKERMAPTYPE +] +*/ +typedef struct FMOD_CREATESOUNDEXINFO +{ + int cbsize; /* [w] Size of this structure. This is used so the structure can be expanded in the future and still work on older versions of FMOD Ex. */ + unsigned int length; /* [w] Optional. Specify 0 to ignore. Size in bytes of file to load, or sound to create (in this case only if FMOD_OPENUSER is used). Required if loading from memory. If 0 is specified, then it will use the size of the file (unless loading from memory then an error will be returned). */ + unsigned int fileoffset; /* [w] Optional. Specify 0 to ignore. Offset from start of the file to start loading from. This is useful for loading files from inside big data files. */ + int numchannels; /* [w] Optional. Specify 0 to ignore. Number of channels in a sound mandatory if FMOD_OPENUSER or FMOD_OPENRAW is used. */ + int defaultfrequency; /* [w] Optional. Specify 0 to ignore. Default frequency of sound in a sound mandatory if FMOD_OPENUSER or FMOD_OPENRAW is used. Other formats use the frequency determined by the file format. */ + FMOD_SOUND_FORMAT format; /* [w] Optional. Specify 0 or FMOD_SOUND_FORMAT_NONE to ignore. Format of the sound mandatory if FMOD_OPENUSER or FMOD_OPENRAW is used. Other formats use the format determined by the file format. */ + unsigned int decodebuffersize; /* [w] Optional. Specify 0 to ignore. For streams. This determines the size of the double buffer (in PCM samples) that a stream uses. Use this for user created streams if you want to determine the size of the callback buffer passed to you. Specify 0 to use FMOD's default size which is currently equivalent to 400ms of the sound format created/loaded. */ + int initialsubsound; /* [w] Optional. Specify 0 to ignore. In a multi-sample file format such as .FSB/.DLS/.SF2, specify the initial subsound to seek to, only if FMOD_CREATESTREAM is used. */ + int numsubsounds; /* [w] Optional. Specify 0 to ignore or have no subsounds. In a sound created with FMOD_OPENUSER, specify the number of subsounds that are accessable with Sound::getSubSound. If not created with FMOD_OPENUSER, this will limit the number of subsounds loaded within a multi-subsound file. If using FSB, then if FMOD_CREATESOUNDEXINFO::inclusionlist is used, this will shuffle subsounds down so that there are not any gaps. It will mean that the indices of the sounds will be different. */ + int *inclusionlist; /* [w] Optional. Specify 0 to ignore. In a multi-sample format such as .FSB/.DLS/.SF2 it may be desirable to specify only a subset of sounds to be loaded out of the whole file. This is an array of subsound indices to load into memory when created. */ + int inclusionlistnum; /* [w] Optional. Specify 0 to ignore. This is the number of integers contained within the inclusionlist array. */ + FMOD_SOUND_PCMREADCALLBACK pcmreadcallback; /* [w] Optional. Specify 0 to ignore. Callback to 'piggyback' on FMOD's read functions and accept or even write PCM data while FMOD is opening the sound. Used for user sounds created with FMOD_OPENUSER or for capturing decoded data as FMOD reads it. */ + FMOD_SOUND_PCMSETPOSCALLBACK pcmsetposcallback; /* [w] Optional. Specify 0 to ignore. Callback for when the user calls a seeking function such as Channel::setTime or Channel::setPosition within a multi-sample sound, and for when it is opened.*/ + FMOD_SOUND_NONBLOCKCALLBACK nonblockcallback; /* [w] Optional. Specify 0 to ignore. Callback for successful completion, or error while loading a sound that used the FMOD_NONBLOCKING flag. Also called duing seeking, when setPosition is called or a stream is restarted. */ + const char *dlsname; /* [w] Optional. Specify 0 to ignore. Filename for a DLS or SF2 sample set when loading a MIDI file. If not specified, on Windows it will attempt to open /windows/system32/drivers/gm.dls or /windows/system32/drivers/etc/gm.dls, on Mac it will attempt to load /System/Library/Components/CoreAudio.component/Contents/Resources/gs_instruments.dls, otherwise the MIDI will fail to open. Current DLS support is for level 1 of the specification. */ + const char *encryptionkey; /* [w] Optional. Specify 0 to ignore. Key for encrypted FSB file. Without this key an encrypted FSB file will not load. */ + int maxpolyphony; /* [w] Optional. Specify 0 to ignore. For sequenced formats with dynamic channel allocation such as .MID and .IT, this specifies the maximum voice count allowed while playing. .IT defaults to 64. .MID defaults to 32. */ + void *userdata; /* [w] Optional. Specify 0 to ignore. This is user data to be attached to the sound during creation. Access via Sound::getUserData. Note: This is not passed to FMOD_FILE_OPENCALLBACK, that is a different userdata that is file specific. */ + FMOD_SOUND_TYPE suggestedsoundtype; /* [w] Optional. Specify 0 or FMOD_SOUND_TYPE_UNKNOWN to ignore. Instead of scanning all codec types, use this to speed up loading by making it jump straight to this codec. */ + FMOD_FILE_OPENCALLBACK useropen; /* [w] Optional. Specify 0 to ignore. Callback for opening this file. */ + FMOD_FILE_CLOSECALLBACK userclose; /* [w] Optional. Specify 0 to ignore. Callback for closing this file. */ + FMOD_FILE_READCALLBACK userread; /* [w] Optional. Specify 0 to ignore. Callback for reading from this file. */ + FMOD_FILE_SEEKCALLBACK userseek; /* [w] Optional. Specify 0 to ignore. Callback for seeking within this file. */ + FMOD_FILE_ASYNCREADCALLBACK userasyncread; /* [w] Optional. Specify 0 to ignore. Callback for seeking within this file. */ + FMOD_FILE_ASYNCCANCELCALLBACK userasynccancel; /* [w] Optional. Specify 0 to ignore. Callback for seeking within this file. */ + FMOD_SPEAKERMAPTYPE speakermap; /* [w] Optional. Specify 0 to ignore. Use this to differ the way fmod maps multichannel sounds to speakers. See FMOD_SPEAKERMAPTYPE for more. */ + FMOD_SOUNDGROUP *initialsoundgroup; /* [w] Optional. Specify 0 to ignore. Specify a sound group if required, to put sound in as it is created. */ + unsigned int initialseekposition;/* [w] Optional. Specify 0 to ignore. For streams. Specify an initial position to seek the stream to. */ + FMOD_TIMEUNIT initialseekpostype; /* [w] Optional. Specify 0 to ignore. For streams. Specify the time unit for the position set in initialseekposition. */ + int ignoresetfilesystem;/* [w] Optional. Specify 0 to ignore. Set to 1 to use fmod's built in file system. Ignores setFileSystem callbacks and also FMOD_CREATESOUNEXINFO file callbacks. Useful for specific cases where you don't want to use your own file system but want to use fmod's file system (ie net streaming). */ + int cddaforceaspi; /* [w] Optional. Specify 0 to ignore. For CDDA sounds only - if non-zero use ASPI instead of NTSCSI to access the specified CD/DVD device. */ + unsigned int audioqueuepolicy; /* [w] Optional. Specify 0 or FMOD_AUDIOQUEUE_CODECPOLICY_DEFAULT to ignore. Policy used to determine whether hardware or software is used for decoding, see FMOD_AUDIOQUEUE_CODECPOLICY for options (iOS >= 3.0 required, otherwise only hardware is available) */ + unsigned int minmidigranularity; /* [w] Optional. Specify 0 to ignore. Allows you to set a minimum desired MIDI mixer granularity. Values smaller than 512 give greater than default accuracy at the cost of more CPU and vice versa. Specify 0 for default (512 samples). */ + int nonblockthreadid; /* [w] Optional. Specify 0 to ignore. Specifies a thread index to execute non blocking load on. Allows for up to 5 threads to be used for loading at once. This is to avoid one load blocking another. Maximum value = 4. */ +} FMOD_CREATESOUNDEXINFO; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure defining a reverb environment. + + [REMARKS] + Note the default reverb properties are the same as the FMOD_PRESET_GENERIC preset. + Note that integer values that typically range from -10,000 to 1000 are represented in + decibels, and are of a logarithmic scale, not linear, wheras float values are always linear. + + The numerical values listed below are the maximum, minimum and default values for each variable respectively. + + SUPPORTED next to each parameter means the platform the parameter can be set on. Some platforms support all parameters and some don't. + WII means Nintendo Wii hardware reverb (must use FMOD_HARDWARE). + PSP means Playstation Portable hardware reverb (must use FMOD_HARDWARE). + SFX means FMOD SFX software reverb. This works on any platform that uses FMOD_SOFTWARE for loading sounds. + --- means unsupported/deprecated. Will either be removed or supported by SFX in the future. + + Nintendo Wii Notes: + This structure supports only limited parameters, and maps them to the Wii hardware reverb as follows. + DecayTime = 'time' + ReverbDelay = 'predelay' + ModulationDepth = 'damping' + Reflections = 'coloration' + EnvDiffusion = 'crosstalk' + Room = 'mix' + + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + Members marked with [r/w] are either read or write depending on if you are using System::setReverbProperties (w) or System::getReverbProperties (r). + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setReverbProperties + System::getReverbProperties + FMOD_REVERB_PRESETS + FMOD_REVERB_FLAGS +] +*/ +typedef struct FMOD_REVERB_PROPERTIES +{ /* MIN MAX DEFAULT DESCRIPTION */ + int Instance; /* [w] 0 3 0 Environment Instance. (SUPPORTED:SFX(4 instances) and Wii (3 instances)) */ + int Environment; /* [r/w] -1 25 -1 Sets all listener properties. -1 = OFF. (SUPPORTED:SFX(-1 only)/PSP) */ + float EnvDiffusion; /* [r/w] 0.0 1.0 1.0 Environment diffusion (SUPPORTED:WII) */ + int Room; /* [r/w] -10000 0 -1000 Room effect level (at mid frequencies) (SUPPORTED:SFX/WII/PSP) */ + int RoomHF; /* [r/w] -10000 0 -100 Relative room effect level at high frequencies (SUPPORTED:SFX) */ + int RoomLF; /* [r/w] -10000 0 0 Relative room effect level at low frequencies (SUPPORTED:SFX) */ + float DecayTime; /* [r/w] 0.1 20.0 1.49 Reverberation decay time at mid frequencies (SUPPORTED:SFX/WII) */ + float DecayHFRatio; /* [r/w] 0.1 2.0 0.83 High-frequency to mid-frequency decay time ratio (SUPPORTED:SFX) */ + float DecayLFRatio; /* [r/w] 0.1 2.0 1.0 Low-frequency to mid-frequency decay time ratio (SUPPORTED:---) */ + int Reflections; /* [r/w] -10000 1000 -2602 Early reflections level relative to room effect (SUPPORTED:SFX/WII) */ + float ReflectionsDelay; /* [r/w] 0.0 0.3 0.007 Initial reflection delay time (SUPPORTED:SFX) */ + int Reverb; /* [r/w] -10000 2000 200 Late reverberation level relative to room effect (SUPPORTED:SFX) */ + float ReverbDelay; /* [r/w] 0.0 0.1 0.011 Late reverberation delay time relative to initial reflection (SUPPORTED:SFX/WII) */ + float ModulationTime; /* [r/w] 0.04 4.0 0.25 Modulation time (SUPPORTED:---) */ + float ModulationDepth; /* [r/w] 0.0 1.0 0.0 Modulation depth (SUPPORTED:WII) */ + float HFReference; /* [r/w] 20.0 20000.0 5000.0 Reference high frequency (hz) (SUPPORTED:SFX) */ + float LFReference; /* [r/w] 20.0 1000.0 250.0 Reference low frequency (hz) (SUPPORTED:SFX) */ + float Diffusion; /* [r/w] 0.0 100.0 100.0 Value that controls the echo density in the late reverberation decay. (SUPPORTED:SFX) */ + float Density; /* [r/w] 0.0 100.0 100.0 Value that controls the modal density in the late reverberation decay (SUPPORTED:SFX) */ + unsigned int Flags; /* [r/w] FMOD_REVERB_FLAGS - modifies the behavior of above properties (SUPPORTED:WII) */ +} FMOD_REVERB_PROPERTIES; + + +/* +[DEFINE] +[ + [NAME] + FMOD_REVERB_FLAGS + + [DESCRIPTION] + Values for the Flags member of the FMOD_REVERB_PROPERTIES structure. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_REVERB_PROPERTIES +] +*/ +#define FMOD_REVERB_FLAGS_HIGHQUALITYREVERB 0x00000400 /* Wii. Use high quality reverb */ +#define FMOD_REVERB_FLAGS_HIGHQUALITYDPL2REVERB 0x00000800 /* Wii. Use high quality DPL2 reverb */ +#define FMOD_REVERB_FLAGS_HARDWAREONLY 0x00001000 /* Don't create an SFX reverb for FMOD_SOFTWARE channels, hardware reverb only */ +#define FMOD_REVERB_FLAGS_DEFAULT 0x00000000 +/* [DEFINE_END] */ + + +/* +[DEFINE] +[ + [NAME] + FMOD_REVERB_PRESETS + + [DESCRIPTION] + A set of predefined environment PARAMETERS. + These are used to initialize an FMOD_REVERB_PROPERTIES structure statically. + i.e. + FMOD_REVERB_PROPERTIES prop = FMOD_PRESET_GENERIC; + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setReverbProperties +] +*/ +/* Inst Env Diffus Room RoomHF RmLF DecTm DecHF DecLF Refl RefDel Revb RevDel ModTm ModDp HFRef LFRef Diffus Densty FLAGS */ +#define FMOD_PRESET_OFF { 0, -1, 1.00f, -10000, -10000, 0, 1.00f, 1.00f, 1.0f, -2602, 0.007f, 200, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 0.0f, 0.0f, 0x33f } +#define FMOD_PRESET_GENERIC { 0, 0, 1.00f, -1000, -100, 0, 1.49f, 0.83f, 1.0f, -2602, 0.007f, 200, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_PADDEDCELL { 0, 1, 1.00f, -1000, -6000, 0, 0.17f, 0.10f, 1.0f, -1204, 0.001f, 207, 0.002f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_ROOM { 0, 2, 1.00f, -1000, -454, 0, 0.40f, 0.83f, 1.0f, -1646, 0.002f, 53, 0.003f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_BATHROOM { 0, 3, 1.00f, -1000, -1200, 0, 1.49f, 0.54f, 1.0f, -370, 0.007f, 1030, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 60.0f, 0x3f } +#define FMOD_PRESET_LIVINGROOM { 0, 4, 1.00f, -1000, -6000, 0, 0.50f, 0.10f, 1.0f, -1376, 0.003f, -1104, 0.004f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_STONEROOM { 0, 5, 1.00f, -1000, -300, 0, 2.31f, 0.64f, 1.0f, -711, 0.012f, 83, 0.017f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_AUDITORIUM { 0, 6, 1.00f, -1000, -476, 0, 4.32f, 0.59f, 1.0f, -789, 0.020f, -289, 0.030f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_CONCERTHALL { 0, 7, 1.00f, -1000, -500, 0, 3.92f, 0.70f, 1.0f, -1230, 0.020f, -2, 0.029f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_CAVE { 0, 8, 1.00f, -1000, 0, 0, 2.91f, 1.30f, 1.0f, -602, 0.015f, -302, 0.022f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x1f } +#define FMOD_PRESET_ARENA { 0, 9, 1.00f, -1000, -698, 0, 7.24f, 0.33f, 1.0f, -1166, 0.020f, 16, 0.030f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_HANGAR { 0, 10, 1.00f, -1000, -1000, 0, 10.05f, 0.23f, 1.0f, -602, 0.020f, 198, 0.030f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_CARPETTEDHALLWAY { 0, 11, 1.00f, -1000, -4000, 0, 0.30f, 0.10f, 1.0f, -1831, 0.002f, -1630, 0.030f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_HALLWAY { 0, 12, 1.00f, -1000, -300, 0, 1.49f, 0.59f, 1.0f, -1219, 0.007f, 441, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_STONECORRIDOR { 0, 13, 1.00f, -1000, -237, 0, 2.70f, 0.79f, 1.0f, -1214, 0.013f, 395, 0.020f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_ALLEY { 0, 14, 0.30f, -1000, -270, 0, 1.49f, 0.86f, 1.0f, -1204, 0.007f, -4, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_FOREST { 0, 15, 0.30f, -1000, -3300, 0, 1.49f, 0.54f, 1.0f, -2560, 0.162f, -229, 0.088f, 0.25f, 0.000f, 5000.0f, 250.0f, 79.0f, 100.0f, 0x3f } +#define FMOD_PRESET_CITY { 0, 16, 0.50f, -1000, -800, 0, 1.49f, 0.67f, 1.0f, -2273, 0.007f, -1691, 0.011f, 0.25f, 0.000f, 5000.0f, 250.0f, 50.0f, 100.0f, 0x3f } +#define FMOD_PRESET_MOUNTAINS { 0, 17, 0.27f, -1000, -2500, 0, 1.49f, 0.21f, 1.0f, -2780, 0.300f, -1434, 0.100f, 0.25f, 0.000f, 5000.0f, 250.0f, 27.0f, 100.0f, 0x1f } +#define FMOD_PRESET_QUARRY { 0, 18, 1.00f, -1000, -1000, 0, 1.49f, 0.83f, 1.0f, -10000, 0.061f, 500, 0.025f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } +#define FMOD_PRESET_PLAIN { 0, 19, 0.21f, -1000, -2000, 0, 1.49f, 0.50f, 1.0f, -2466, 0.179f, -1926, 0.100f, 0.25f, 0.000f, 5000.0f, 250.0f, 21.0f, 100.0f, 0x3f } +#define FMOD_PRESET_PARKINGLOT { 0, 20, 1.00f, -1000, 0, 0, 1.65f, 1.50f, 1.0f, -1363, 0.008f, -1153, 0.012f, 0.25f, 0.000f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x1f } +#define FMOD_PRESET_SEWERPIPE { 0, 21, 0.80f, -1000, -1000, 0, 2.81f, 0.14f, 1.0f, 429, 0.014f, 1023, 0.021f, 0.25f, 0.000f, 5000.0f, 250.0f, 80.0f, 60.0f, 0x3f } +#define FMOD_PRESET_UNDERWATER { 0, 22, 1.00f, -1000, -4000, 0, 1.49f, 0.10f, 1.0f, -449, 0.007f, 1700, 0.011f, 1.18f, 0.348f, 5000.0f, 250.0f, 100.0f, 100.0f, 0x3f } + +/* PlayStation Portable Only presets */ +#define FMOD_PRESET_PSP_ROOM { 0, 1, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_STUDIO_A { 0, 2, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_STUDIO_B { 0, 3, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_STUDIO_C { 0, 4, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_HALL { 0, 5, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_SPACE { 0, 6, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_ECHO { 0, 7, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_DELAY { 0, 8, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +#define FMOD_PRESET_PSP_PIPE { 0, 9, 0, 0, 0, 0, 0.0f, 0.0f, 0.0f, 0, 0.000f, 0, 0.000f, 0.00f, 0.000f, 0000.0f, 0.0f, 0.0f, 0.0f, 0x31f } +/* [DEFINE_END] */ + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure defining the properties for a reverb source, related to a FMOD channel. + + Note the default reverb properties are the same as the FMOD_PRESET_GENERIC preset. + Note that integer values that typically range from -10,000 to 1000 are represented in + decibels, and are of a logarithmic scale, not linear, wheras float values are typically linear. + PORTABILITY: Each member has the platform it supports in braces ie (win32/wii). + + The numerical values listed below are the maximum, minimum and default values for each variable respectively. + + [REMARKS] + SUPPORTED next to each parameter means the platform the parameter can be set on. Some platforms support all parameters and some don't. + WII means Nintendo Wii hardware reverb (must use FMOD_HARDWARE). + PSP means Playstation Portable hardware reverb (must use FMOD_HARDWARE). + SFX means FMOD SFX software reverb. This works on any platform that uses FMOD_SOFTWARE for loading sounds. + --- means unsupported/deprecated. Will either be removed or supported by SFX in the future. + + + 'ConnectionPoint' Parameter. This parameter is for the FMOD software reverb only (known as SFX in the list above). + By default the dsp network connection for a channel and its reverb is between the 'SFX Reverb' unit, and the channel's wavetable/resampler/dspcodec/oscillator unit (the unit below the channel DSP head). NULL can be used for this parameter to make it use this default behaviour. + This parameter allows the user to connect the SFX reverb to somewhere else internally, for example the channel DSP head, or a related channelgroup. The event system uses this so that it can have the output of an event going to the reverb, instead of just the output of the event's channels (thereby ignoring event effects/submixes etc). + Do not use if you are unaware of DSP network connection issues. Leave it at the default of NULL instead. + + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + Members marked with [r/w] are either read or write depending on if you are using Channel::setReverbProperties (w) or Channel::getReverbProperties (r). + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + Channel::setReverbProperties + Channel::getReverbProperties + FMOD_REVERB_CHANNELFLAGS +] +*/ +typedef struct FMOD_REVERB_CHANNELPROPERTIES +{ /* MIN MAX DEFAULT DESCRIPTION */ + int Direct; /* [r/w] -10000 1000 0 Direct path level (SUPPORTED:SFX) */ + int Room; /* [r/w] -10000 1000 0 Room effect level (SUPPORTED:SFX) */ + unsigned int Flags; /* [r/w] FMOD_REVERB_CHANNELFLAGS - modifies the behavior of properties (SUPPORTED:SFX) */ + FMOD_DSP *ConnectionPoint; /* [r/w] See remarks. DSP network location to connect reverb for this channel. (SUPPORTED:SFX).*/ +} FMOD_REVERB_CHANNELPROPERTIES; + + +/* +[DEFINE] +[ + [NAME] + FMOD_REVERB_CHANNELFLAGS + + [DESCRIPTION] + Values for the Flags member of the FMOD_REVERB_CHANNELPROPERTIES structure. + + [REMARKS] + For SFX Reverb, there is support for multiple reverb environments. + Use FMOD_REVERB_CHANNELFLAGS_ENVIRONMENT0 to FMOD_REVERB_CHANNELFLAGS_ENVIRONMENT3 in the flags member + of FMOD_REVERB_CHANNELPROPERTIES to specify which environment instance(s) to target. + - If you do not specify any instance the first reverb instance will be used. + - If you specify more than one instance with getReverbProperties, the first instance will be used. + - If you specify more than one instance with setReverbProperties, it will set more than 1 instance at once. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_REVERB_CHANNELPROPERTIES +] +*/ +#define FMOD_REVERB_CHANNELFLAGS_INSTANCE0 0x00000010 /* SFX/Wii. Specify channel to target reverb instance 0. Default target. */ +#define FMOD_REVERB_CHANNELFLAGS_INSTANCE1 0x00000020 /* SFX/Wii. Specify channel to target reverb instance 1. */ +#define FMOD_REVERB_CHANNELFLAGS_INSTANCE2 0x00000040 /* SFX/Wii. Specify channel to target reverb instance 2. */ +#define FMOD_REVERB_CHANNELFLAGS_INSTANCE3 0x00000080 /* SFX. Specify channel to target reverb instance 3. */ + +#define FMOD_REVERB_CHANNELFLAGS_DEFAULT FMOD_REVERB_CHANNELFLAGS_INSTANCE0 +/* [DEFINE_END] */ + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Settings for advanced features like configuring memory and cpu usage for the FMOD_CREATECOMPRESSEDSAMPLE feature. + + [REMARKS] + maxMPEGcodecs / maxADPCMcodecs / maxXMAcodecs will determine the maximum cpu usage of playing realtime samples. Use this to lower potential excess cpu usage and also control memory usage. + + maxPCMcodecs is for use with PS3 only. It will determine the maximum number of PCM voices that can be played at once. This includes streams of any format and all sounds created + *without* the FMOD_CREATECOMPRESSEDSAMPLE flag. + + Memory will be allocated for codecs 'up front' (during System::init) if these values are specified as non zero. If any are zero, it allocates memory for the codec whenever a file of the type in question is loaded. So if maxMPEGcodecs is 0 for example, it will allocate memory for the mpeg codecs the first time an mp3 is loaded or an mp3 based .FSB file is loaded. + + Due to inefficient encoding techniques on certain .wav based ADPCM files, FMOD can can need an extra 29720 bytes per codec. This means for lowest memory consumption. Use FSB as it uses an optimal/small ADPCM block size. + + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + Members marked with [r/w] are either read or write depending on if you are using System::setAdvancedSettings (w) or System::getAdvancedSettings (r). + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::setAdvancedSettings + System::getAdvancedSettings + System::init + FMOD_MODE +] +*/ +typedef struct FMOD_ADVANCEDSETTINGS +{ + int cbsize; /* [w] Size of this structure. Use sizeof(FMOD_ADVANCEDSETTINGS) NOTE: This must be set before calling System::getAdvancedSettings! */ + int maxMPEGcodecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. Mpeg codecs consume 21,684 bytes per instance and this number will determine how many mpeg channels can be played simultaneously. Default = 32. */ + int maxADPCMcodecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. ADPCM codecs consume 2,136 bytes per instance and this number will determine how many ADPCM channels can be played simultaneously. Default = 32. */ + int maxXMAcodecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. XMA codecs consume 14,836 bytes per instance and this number will determine how many XMA channels can be played simultaneously. Default = 32. */ + int maxCELTcodecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. CELT codecs consume 11,500 bytes per instance and this number will determine how many CELT channels can be played simultaneously. Default = 32. */ + int maxVORBIScodecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. Vorbis codecs consume 12,000 bytes per instance and this number will determine how many Vorbis channels can be played simultaneously. Default = 32. */ + int maxAT9Codecs; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_CREATECOMPRESSEDSAMPLE only. AT9 codecs consume 8,720 bytes per instance and this number will determine how many AT9 channels can be played simultaneously. Default = 32. */ + int maxPCMcodecs; /* [r/w] Optional. Specify 0 to ignore. For use with PS3 only. PCM codecs consume 12,672 bytes per instance and this number will determine how many streams and PCM voices can be played simultaneously. Default = 16. */ + int ASIONumChannels; /* [r/w] Optional. Specify 0 to ignore. Number of channels available on the ASIO device. */ + char **ASIOChannelList; /* [r/w] Optional. Specify 0 to ignore. Pointer to an array of strings (number of entries defined by ASIONumChannels) with ASIO channel names. */ + FMOD_SPEAKER *ASIOSpeakerList; /* [r/w] Optional. Specify 0 to ignore. Pointer to a list of speakers that the ASIO channels map to. This can be called after System::init to remap ASIO output. */ + int max3DReverbDSPs; /* [r/w] Optional. Specify 0 to ignore. The max number of 3d reverb DSP's in the system. (NOTE: CURRENTLY DISABLED / UNUSED) */ + float HRTFMinAngle; /* [r/w] Optional. For use with FMOD_INIT_HRTF_LOWPASS. The angle range (0-360) of a 3D sound in relation to the listener, at which the HRTF function begins to have an effect. 0 = in front of the listener. 180 = from 90 degrees to the left of the listener to 90 degrees to the right. 360 = behind the listener. Default = 180.0. */ + float HRTFMaxAngle; /* [r/w] Optional. For use with FMOD_INIT_HRTF_LOWPASS. The angle range (0-360) of a 3D sound in relation to the listener, at which the HRTF function has maximum effect. 0 = front of the listener. 180 = from 90 degrees to the left of the listener to 90 degrees to the right. 360 = behind the listener. Default = 360.0. */ + float HRTFFreq; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_INIT_HRTF_LOWPASS. The cutoff frequency of the HRTF's lowpass filter function when at maximum effect. (i.e. at HRTFMaxAngle). Default = 4000.0. */ + float vol0virtualvol; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_INIT_VOL0_BECOMES_VIRTUAL. If this flag is used, and the volume is 0.0, then the sound will become virtual. Use this value to raise the threshold to a different point where a sound goes virtual. */ + int eventqueuesize; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD Event system only. Specifies the number of slots available for simultaneous non blocking loads, across all threads. Default = 32. */ + unsigned int defaultDecodeBufferSize; /* [r/w] Optional. Specify 0 to ignore. For streams. This determines the default size of the double buffer (in milliseconds) that a stream uses. Default = 400ms */ + char *debugLogFilename; /* [r/w] Optional. Specify 0 to ignore. Gives fmod's logging system a path/filename. Normally the log is placed in the same directory as the executable and called fmod.log. When using System::getAdvancedSettings, provide at least 256 bytes of memory to copy into. */ + unsigned short profileport; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_INIT_ENABLE_PROFILE. Specify the port to listen on for connections by the profiler application. */ + unsigned int geometryMaxFadeTime; /* [r/w] Optional. Specify 0 to ignore. The maximum time in miliseconds it takes for a channel to fade to the new level when its occlusion changes. */ + unsigned int maxSpectrumWaveDataBuffers; /* [r/w] Optional. Specify 0 to ignore. Tells System::init to allocate a pool of wavedata/spectrum buffers to prevent memory fragmentation, any additional buffers will be allocated normally. */ + unsigned int musicSystemCacheDelay; /* [r/w] Optional. Specify 0 to ignore. The delay the music system should allow for loading a sample from disk (in milliseconds). Default = 400 ms. */ + float distanceFilterCenterFreq; /* [r/w] Optional. Specify 0 to ignore. For use with FMOD_INIT_DISTANCE_FILTERING. The default center frequency in Hz for the distance filtering effect. Default = 1500.0. */ + unsigned int stackSizeStream; /* [r/w] Optional. Specify 0 to ignore. Specify the stack size for the FMOD Stream thread in bytes. Useful for custom codecs that use excess stack. Default 49,152 (48kb) */ + unsigned int stackSizeNonBlocking; /* [r/w] Optional. Specify 0 to ignore. Specify the stack size for the FMOD_NONBLOCKING loading thread. Useful for custom codecs that use excess stack. Default 65,536 (64kb) */ + unsigned int stackSizeMixer; /* [r/w] Optional. Specify 0 to ignore. Specify the stack size for the FMOD mixer thread. Useful for custom dsps that use excess stack. Default 49,152 (48kb) */ +} FMOD_ADVANCEDSETTINGS; + + +/* +[ENUM] +[ + [DESCRIPTION] + Special channel index values for FMOD functions. + + [REMARKS] + To get 'all' of the channels, use System::getMasterChannelGroup. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::playSound + System::playDSP + System::getChannel + System::getMasterChannelGroup +] +*/ +typedef enum +{ + FMOD_CHANNEL_FREE = -1, /* For a channel index, FMOD chooses a free voice using the priority system. */ + FMOD_CHANNEL_REUSE = -2 /* For a channel index, re-use the channel handle that was passed in. */ +} FMOD_CHANNELINDEX; + +#include "fmod_codec.h" +#include "fmod_dsp.h" +#include "fmod_memoryinfo.h" + +/* ========================================================================================== */ +/* FUNCTION PROTOTYPES */ +/* ========================================================================================== */ + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* + FMOD global system functions (optional). +*/ + +FMOD_RESULT F_API FMOD_Memory_Initialize (void *poolmem, int poollen, FMOD_MEMORY_ALLOCCALLBACK useralloc, FMOD_MEMORY_REALLOCCALLBACK userrealloc, FMOD_MEMORY_FREECALLBACK userfree, FMOD_MEMORY_TYPE memtypeflags); +FMOD_RESULT F_API FMOD_Memory_GetStats (int *currentalloced, int *maxalloced, FMOD_BOOL blocking); +FMOD_RESULT F_API FMOD_Debug_SetLevel (FMOD_DEBUGLEVEL level); +FMOD_RESULT F_API FMOD_Debug_GetLevel (FMOD_DEBUGLEVEL *level); +FMOD_RESULT F_API FMOD_File_SetDiskBusy (int busy); +FMOD_RESULT F_API FMOD_File_GetDiskBusy (int *busy); + +/* + FMOD System factory functions. Use this to create an FMOD System Instance. below you will see FMOD_System_Init/Close to get started. +*/ + +FMOD_RESULT F_API FMOD_System_Create (FMOD_SYSTEM **system); +FMOD_RESULT F_API FMOD_System_Release (FMOD_SYSTEM *system); + + +/* + 'System' API +*/ + +/* + Pre-init functions. +*/ + +FMOD_RESULT F_API FMOD_System_SetOutput (FMOD_SYSTEM *system, FMOD_OUTPUTTYPE output); +FMOD_RESULT F_API FMOD_System_GetOutput (FMOD_SYSTEM *system, FMOD_OUTPUTTYPE *output); +FMOD_RESULT F_API FMOD_System_GetNumDrivers (FMOD_SYSTEM *system, int *numdrivers); +FMOD_RESULT F_API FMOD_System_GetDriverInfo (FMOD_SYSTEM *system, int id, char *name, int namelen, FMOD_GUID *guid); +FMOD_RESULT F_API FMOD_System_GetDriverInfoW (FMOD_SYSTEM *system, int id, short *name, int namelen, FMOD_GUID *guid); +FMOD_RESULT F_API FMOD_System_GetDriverCaps (FMOD_SYSTEM *system, int id, FMOD_CAPS *caps, int *controlpaneloutputrate, FMOD_SPEAKERMODE *controlpanelspeakermode); +FMOD_RESULT F_API FMOD_System_SetDriver (FMOD_SYSTEM *system, int driver); +FMOD_RESULT F_API FMOD_System_GetDriver (FMOD_SYSTEM *system, int *driver); +FMOD_RESULT F_API FMOD_System_SetHardwareChannels (FMOD_SYSTEM *system, int numhardwarechannels); +FMOD_RESULT F_API FMOD_System_SetSoftwareChannels (FMOD_SYSTEM *system, int numsoftwarechannels); +FMOD_RESULT F_API FMOD_System_GetSoftwareChannels (FMOD_SYSTEM *system, int *numsoftwarechannels); +FMOD_RESULT F_API FMOD_System_SetSoftwareFormat (FMOD_SYSTEM *system, int samplerate, FMOD_SOUND_FORMAT format, int numoutputchannels, int maxinputchannels, FMOD_DSP_RESAMPLER resamplemethod); +FMOD_RESULT F_API FMOD_System_GetSoftwareFormat (FMOD_SYSTEM *system, int *samplerate, FMOD_SOUND_FORMAT *format, int *numoutputchannels, int *maxinputchannels, FMOD_DSP_RESAMPLER *resamplemethod, int *bits); +FMOD_RESULT F_API FMOD_System_SetDSPBufferSize (FMOD_SYSTEM *system, unsigned int bufferlength, int numbuffers); +FMOD_RESULT F_API FMOD_System_GetDSPBufferSize (FMOD_SYSTEM *system, unsigned int *bufferlength, int *numbuffers); +FMOD_RESULT F_API FMOD_System_SetFileSystem (FMOD_SYSTEM *system, FMOD_FILE_OPENCALLBACK useropen, FMOD_FILE_CLOSECALLBACK userclose, FMOD_FILE_READCALLBACK userread, FMOD_FILE_SEEKCALLBACK userseek, FMOD_FILE_ASYNCREADCALLBACK userasyncread, FMOD_FILE_ASYNCCANCELCALLBACK userasynccancel, int blockalign); +FMOD_RESULT F_API FMOD_System_AttachFileSystem (FMOD_SYSTEM *system, FMOD_FILE_OPENCALLBACK useropen, FMOD_FILE_CLOSECALLBACK userclose, FMOD_FILE_READCALLBACK userread, FMOD_FILE_SEEKCALLBACK userseek); +FMOD_RESULT F_API FMOD_System_SetAdvancedSettings (FMOD_SYSTEM *system, FMOD_ADVANCEDSETTINGS *settings); +FMOD_RESULT F_API FMOD_System_GetAdvancedSettings (FMOD_SYSTEM *system, FMOD_ADVANCEDSETTINGS *settings); +FMOD_RESULT F_API FMOD_System_SetSpeakerMode (FMOD_SYSTEM *system, FMOD_SPEAKERMODE speakermode); +FMOD_RESULT F_API FMOD_System_GetSpeakerMode (FMOD_SYSTEM *system, FMOD_SPEAKERMODE *speakermode); +FMOD_RESULT F_API FMOD_System_SetCallback (FMOD_SYSTEM *system, FMOD_SYSTEM_CALLBACK callback); + +/* + Plug-in support +*/ + +FMOD_RESULT F_API FMOD_System_SetPluginPath (FMOD_SYSTEM *system, const char *path); +FMOD_RESULT F_API FMOD_System_LoadPlugin (FMOD_SYSTEM *system, const char *filename, unsigned int *handle, unsigned int priority); +FMOD_RESULT F_API FMOD_System_UnloadPlugin (FMOD_SYSTEM *system, unsigned int handle); +FMOD_RESULT F_API FMOD_System_GetNumPlugins (FMOD_SYSTEM *system, FMOD_PLUGINTYPE plugintype, int *numplugins); +FMOD_RESULT F_API FMOD_System_GetPluginHandle (FMOD_SYSTEM *system, FMOD_PLUGINTYPE plugintype, int index, unsigned int *handle); +FMOD_RESULT F_API FMOD_System_GetPluginInfo (FMOD_SYSTEM *system, unsigned int handle, FMOD_PLUGINTYPE *plugintype, char *name, int namelen, unsigned int *version); +FMOD_RESULT F_API FMOD_System_SetOutputByPlugin (FMOD_SYSTEM *system, unsigned int handle); +FMOD_RESULT F_API FMOD_System_GetOutputByPlugin (FMOD_SYSTEM *system, unsigned int *handle); +FMOD_RESULT F_API FMOD_System_CreateDSPByPlugin (FMOD_SYSTEM *system, unsigned int handle, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_System_RegisterCodec (FMOD_SYSTEM *system, FMOD_CODEC_DESCRIPTION *description, unsigned int *handle, unsigned int priority); +FMOD_RESULT F_API FMOD_System_RegisterDSP (FMOD_SYSTEM *system, FMOD_DSP_DESCRIPTION *description, unsigned int *handle); + +/* + Init/Close +*/ + +FMOD_RESULT F_API FMOD_System_Init (FMOD_SYSTEM *system, int maxchannels, FMOD_INITFLAGS flags, void *extradriverdata); +FMOD_RESULT F_API FMOD_System_Close (FMOD_SYSTEM *system); + +/* + General post-init system functions +*/ + +FMOD_RESULT F_API FMOD_System_Update (FMOD_SYSTEM *system); + +FMOD_RESULT F_API FMOD_System_Set3DSettings (FMOD_SYSTEM *system, float dopplerscale, float distancefactor, float rolloffscale); +FMOD_RESULT F_API FMOD_System_Get3DSettings (FMOD_SYSTEM *system, float *dopplerscale, float *distancefactor, float *rolloffscale); +FMOD_RESULT F_API FMOD_System_Set3DNumListeners (FMOD_SYSTEM *system, int numlisteners); +FMOD_RESULT F_API FMOD_System_Get3DNumListeners (FMOD_SYSTEM *system, int *numlisteners); +FMOD_RESULT F_API FMOD_System_Set3DListenerAttributes(FMOD_SYSTEM *system, int listener, const FMOD_VECTOR *pos, const FMOD_VECTOR *vel, const FMOD_VECTOR *forward, const FMOD_VECTOR *up); +FMOD_RESULT F_API FMOD_System_Get3DListenerAttributes(FMOD_SYSTEM *system, int listener, FMOD_VECTOR *pos, FMOD_VECTOR *vel, FMOD_VECTOR *forward, FMOD_VECTOR *up); +FMOD_RESULT F_API FMOD_System_Set3DRolloffCallback (FMOD_SYSTEM *system, FMOD_3D_ROLLOFFCALLBACK callback); +FMOD_RESULT F_API FMOD_System_Set3DSpeakerPosition (FMOD_SYSTEM *system, FMOD_SPEAKER speaker, float x, float y, FMOD_BOOL active); +FMOD_RESULT F_API FMOD_System_Get3DSpeakerPosition (FMOD_SYSTEM *system, FMOD_SPEAKER speaker, float *x, float *y, FMOD_BOOL *active); + +FMOD_RESULT F_API FMOD_System_SetStreamBufferSize (FMOD_SYSTEM *system, unsigned int filebuffersize, FMOD_TIMEUNIT filebuffersizetype); +FMOD_RESULT F_API FMOD_System_GetStreamBufferSize (FMOD_SYSTEM *system, unsigned int *filebuffersize, FMOD_TIMEUNIT *filebuffersizetype); + +/* + System information functions. +*/ + +FMOD_RESULT F_API FMOD_System_GetVersion (FMOD_SYSTEM *system, unsigned int *version); +FMOD_RESULT F_API FMOD_System_GetOutputHandle (FMOD_SYSTEM *system, void **handle); +FMOD_RESULT F_API FMOD_System_GetChannelsPlaying (FMOD_SYSTEM *system, int *channels); +FMOD_RESULT F_API FMOD_System_GetHardwareChannels (FMOD_SYSTEM *system, int *numhardwarechannels); +FMOD_RESULT F_API FMOD_System_GetCPUUsage (FMOD_SYSTEM *system, float *dsp, float *stream, float *geometry, float *update, float *total); +FMOD_RESULT F_API FMOD_System_GetSoundRAM (FMOD_SYSTEM *system, int *currentalloced, int *maxalloced, int *total); +FMOD_RESULT F_API FMOD_System_GetNumCDROMDrives (FMOD_SYSTEM *system, int *numdrives); +FMOD_RESULT F_API FMOD_System_GetCDROMDriveName (FMOD_SYSTEM *system, int drive, char *drivename, int drivenamelen, char *scsiname, int scsinamelen, char *devicename, int devicenamelen); +FMOD_RESULT F_API FMOD_System_GetSpectrum (FMOD_SYSTEM *system, float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); +FMOD_RESULT F_API FMOD_System_GetWaveData (FMOD_SYSTEM *system, float *wavearray, int numvalues, int channeloffset); + +/* + Sound/DSP/Channel/FX creation and retrieval. +*/ + +FMOD_RESULT F_API FMOD_System_CreateSound (FMOD_SYSTEM *system, const char *name_or_data, FMOD_MODE mode, FMOD_CREATESOUNDEXINFO *exinfo, FMOD_SOUND **sound); +FMOD_RESULT F_API FMOD_System_CreateStream (FMOD_SYSTEM *system, const char *name_or_data, FMOD_MODE mode, FMOD_CREATESOUNDEXINFO *exinfo, FMOD_SOUND **sound); +FMOD_RESULT F_API FMOD_System_CreateDSP (FMOD_SYSTEM *system, FMOD_DSP_DESCRIPTION *description, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_System_CreateDSPByType (FMOD_SYSTEM *system, FMOD_DSP_TYPE type, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_System_CreateChannelGroup (FMOD_SYSTEM *system, const char *name, FMOD_CHANNELGROUP **channelgroup); +FMOD_RESULT F_API FMOD_System_CreateSoundGroup (FMOD_SYSTEM *system, const char *name, FMOD_SOUNDGROUP **soundgroup); +FMOD_RESULT F_API FMOD_System_CreateReverb (FMOD_SYSTEM *system, FMOD_REVERB **reverb); + +FMOD_RESULT F_API FMOD_System_PlaySound (FMOD_SYSTEM *system, FMOD_CHANNELINDEX channelid, FMOD_SOUND *sound, FMOD_BOOL paused, FMOD_CHANNEL **channel); +FMOD_RESULT F_API FMOD_System_PlayDSP (FMOD_SYSTEM *system, FMOD_CHANNELINDEX channelid, FMOD_DSP *dsp, FMOD_BOOL paused, FMOD_CHANNEL **channel); +FMOD_RESULT F_API FMOD_System_GetChannel (FMOD_SYSTEM *system, int channelid, FMOD_CHANNEL **channel); +FMOD_RESULT F_API FMOD_System_GetMasterChannelGroup (FMOD_SYSTEM *system, FMOD_CHANNELGROUP **channelgroup); +FMOD_RESULT F_API FMOD_System_GetMasterSoundGroup (FMOD_SYSTEM *system, FMOD_SOUNDGROUP **soundgroup); + +/* + Reverb API +*/ + +FMOD_RESULT F_API FMOD_System_SetReverbProperties (FMOD_SYSTEM *system, const FMOD_REVERB_PROPERTIES *prop); +FMOD_RESULT F_API FMOD_System_GetReverbProperties (FMOD_SYSTEM *system, FMOD_REVERB_PROPERTIES *prop); +FMOD_RESULT F_API FMOD_System_SetReverbAmbientProperties(FMOD_SYSTEM *system, FMOD_REVERB_PROPERTIES *prop); +FMOD_RESULT F_API FMOD_System_GetReverbAmbientProperties(FMOD_SYSTEM *system, FMOD_REVERB_PROPERTIES *prop); + +/* + System level DSP access. +*/ + +FMOD_RESULT F_API FMOD_System_GetDSPHead (FMOD_SYSTEM *system, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_System_AddDSP (FMOD_SYSTEM *system, FMOD_DSP *dsp, FMOD_DSPCONNECTION **connection); +FMOD_RESULT F_API FMOD_System_LockDSP (FMOD_SYSTEM *system); +FMOD_RESULT F_API FMOD_System_UnlockDSP (FMOD_SYSTEM *system); +FMOD_RESULT F_API FMOD_System_GetDSPClock (FMOD_SYSTEM *system, unsigned int *hi, unsigned int *lo); + +/* + Recording API. +*/ + +FMOD_RESULT F_API FMOD_System_GetRecordNumDrivers (FMOD_SYSTEM *system, int *numdrivers); +FMOD_RESULT F_API FMOD_System_GetRecordDriverInfo (FMOD_SYSTEM *system, int id, char *name, int namelen, FMOD_GUID *guid); +FMOD_RESULT F_API FMOD_System_GetRecordDriverInfoW (FMOD_SYSTEM *system, int id, short *name, int namelen, FMOD_GUID *guid); +FMOD_RESULT F_API FMOD_System_GetRecordDriverCaps (FMOD_SYSTEM *system, int id, FMOD_CAPS *caps, int *minfrequency, int *maxfrequency); +FMOD_RESULT F_API FMOD_System_GetRecordPosition (FMOD_SYSTEM *system, int id, unsigned int *position); + +FMOD_RESULT F_API FMOD_System_RecordStart (FMOD_SYSTEM *system, int id, FMOD_SOUND *sound, FMOD_BOOL loop); +FMOD_RESULT F_API FMOD_System_RecordStop (FMOD_SYSTEM *system, int id); +FMOD_RESULT F_API FMOD_System_IsRecording (FMOD_SYSTEM *system, int id, FMOD_BOOL *recording); + +/* + Geometry API. +*/ + +FMOD_RESULT F_API FMOD_System_CreateGeometry (FMOD_SYSTEM *system, int maxpolygons, int maxvertices, FMOD_GEOMETRY **geometry); +FMOD_RESULT F_API FMOD_System_SetGeometrySettings (FMOD_SYSTEM *system, float maxworldsize); +FMOD_RESULT F_API FMOD_System_GetGeometrySettings (FMOD_SYSTEM *system, float *maxworldsize); +FMOD_RESULT F_API FMOD_System_LoadGeometry (FMOD_SYSTEM *system, const void *data, int datasize, FMOD_GEOMETRY **geometry); +FMOD_RESULT F_API FMOD_System_GetGeometryOcclusion (FMOD_SYSTEM *system, const FMOD_VECTOR *listener, const FMOD_VECTOR *source, float *direct, float *reverb); + +/* + Network functions. +*/ + +FMOD_RESULT F_API FMOD_System_SetNetworkProxy (FMOD_SYSTEM *system, const char *proxy); +FMOD_RESULT F_API FMOD_System_GetNetworkProxy (FMOD_SYSTEM *system, char *proxy, int proxylen); +FMOD_RESULT F_API FMOD_System_SetNetworkTimeout (FMOD_SYSTEM *system, int timeout); +FMOD_RESULT F_API FMOD_System_GetNetworkTimeout (FMOD_SYSTEM *system, int *timeout); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_System_SetUserData (FMOD_SYSTEM *system, void *userdata); +FMOD_RESULT F_API FMOD_System_GetUserData (FMOD_SYSTEM *system, void **userdata); + +FMOD_RESULT F_API FMOD_System_GetMemoryInfo (FMOD_SYSTEM *system, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'Sound' API +*/ + +FMOD_RESULT F_API FMOD_Sound_Release (FMOD_SOUND *sound); +FMOD_RESULT F_API FMOD_Sound_GetSystemObject (FMOD_SOUND *sound, FMOD_SYSTEM **system); + +/* + Standard sound manipulation functions. +*/ + +FMOD_RESULT F_API FMOD_Sound_Lock (FMOD_SOUND *sound, unsigned int offset, unsigned int length, void **ptr1, void **ptr2, unsigned int *len1, unsigned int *len2); +FMOD_RESULT F_API FMOD_Sound_Unlock (FMOD_SOUND *sound, void *ptr1, void *ptr2, unsigned int len1, unsigned int len2); +FMOD_RESULT F_API FMOD_Sound_SetDefaults (FMOD_SOUND *sound, float frequency, float volume, float pan, int priority); +FMOD_RESULT F_API FMOD_Sound_GetDefaults (FMOD_SOUND *sound, float *frequency, float *volume, float *pan, int *priority); +FMOD_RESULT F_API FMOD_Sound_SetVariations (FMOD_SOUND *sound, float frequencyvar, float volumevar, float panvar); +FMOD_RESULT F_API FMOD_Sound_GetVariations (FMOD_SOUND *sound, float *frequencyvar, float *volumevar, float *panvar); +FMOD_RESULT F_API FMOD_Sound_Set3DMinMaxDistance (FMOD_SOUND *sound, float min, float max); +FMOD_RESULT F_API FMOD_Sound_Get3DMinMaxDistance (FMOD_SOUND *sound, float *min, float *max); +FMOD_RESULT F_API FMOD_Sound_Set3DConeSettings (FMOD_SOUND *sound, float insideconeangle, float outsideconeangle, float outsidevolume); +FMOD_RESULT F_API FMOD_Sound_Get3DConeSettings (FMOD_SOUND *sound, float *insideconeangle, float *outsideconeangle, float *outsidevolume); +FMOD_RESULT F_API FMOD_Sound_Set3DCustomRolloff (FMOD_SOUND *sound, FMOD_VECTOR *points, int numpoints); +FMOD_RESULT F_API FMOD_Sound_Get3DCustomRolloff (FMOD_SOUND *sound, FMOD_VECTOR **points, int *numpoints); +FMOD_RESULT F_API FMOD_Sound_SetSubSound (FMOD_SOUND *sound, int index, FMOD_SOUND *subsound); +FMOD_RESULT F_API FMOD_Sound_GetSubSound (FMOD_SOUND *sound, int index, FMOD_SOUND **subsound); +FMOD_RESULT F_API FMOD_Sound_SetSubSoundSentence (FMOD_SOUND *sound, int *subsoundlist, int numsubsounds); +FMOD_RESULT F_API FMOD_Sound_GetName (FMOD_SOUND *sound, char *name, int namelen); +FMOD_RESULT F_API FMOD_Sound_GetLength (FMOD_SOUND *sound, unsigned int *length, FMOD_TIMEUNIT lengthtype); +FMOD_RESULT F_API FMOD_Sound_GetFormat (FMOD_SOUND *sound, FMOD_SOUND_TYPE *type, FMOD_SOUND_FORMAT *format, int *channels, int *bits); +FMOD_RESULT F_API FMOD_Sound_GetNumSubSounds (FMOD_SOUND *sound, int *numsubsounds); +FMOD_RESULT F_API FMOD_Sound_GetNumTags (FMOD_SOUND *sound, int *numtags, int *numtagsupdated); +FMOD_RESULT F_API FMOD_Sound_GetTag (FMOD_SOUND *sound, const char *name, int index, FMOD_TAG *tag); +FMOD_RESULT F_API FMOD_Sound_GetOpenState (FMOD_SOUND *sound, FMOD_OPENSTATE *openstate, unsigned int *percentbuffered, FMOD_BOOL *starving, FMOD_BOOL *diskbusy); +FMOD_RESULT F_API FMOD_Sound_ReadData (FMOD_SOUND *sound, void *buffer, unsigned int lenbytes, unsigned int *read); +FMOD_RESULT F_API FMOD_Sound_SeekData (FMOD_SOUND *sound, unsigned int pcm); + +FMOD_RESULT F_API FMOD_Sound_SetSoundGroup (FMOD_SOUND *sound, FMOD_SOUNDGROUP *soundgroup); +FMOD_RESULT F_API FMOD_Sound_GetSoundGroup (FMOD_SOUND *sound, FMOD_SOUNDGROUP **soundgroup); + +/* + Synchronization point API. These points can come from markers embedded in wav files, and can also generate channel callbacks. +*/ + +FMOD_RESULT F_API FMOD_Sound_GetNumSyncPoints (FMOD_SOUND *sound, int *numsyncpoints); +FMOD_RESULT F_API FMOD_Sound_GetSyncPoint (FMOD_SOUND *sound, int index, FMOD_SYNCPOINT **point); +FMOD_RESULT F_API FMOD_Sound_GetSyncPointInfo (FMOD_SOUND *sound, FMOD_SYNCPOINT *point, char *name, int namelen, unsigned int *offset, FMOD_TIMEUNIT offsettype); +FMOD_RESULT F_API FMOD_Sound_AddSyncPoint (FMOD_SOUND *sound, unsigned int offset, FMOD_TIMEUNIT offsettype, const char *name, FMOD_SYNCPOINT **point); +FMOD_RESULT F_API FMOD_Sound_DeleteSyncPoint (FMOD_SOUND *sound, FMOD_SYNCPOINT *point); + +/* + Functions also in Channel class but here they are the 'default' to save having to change it in Channel all the time. +*/ + +FMOD_RESULT F_API FMOD_Sound_SetMode (FMOD_SOUND *sound, FMOD_MODE mode); +FMOD_RESULT F_API FMOD_Sound_GetMode (FMOD_SOUND *sound, FMOD_MODE *mode); +FMOD_RESULT F_API FMOD_Sound_SetLoopCount (FMOD_SOUND *sound, int loopcount); +FMOD_RESULT F_API FMOD_Sound_GetLoopCount (FMOD_SOUND *sound, int *loopcount); +FMOD_RESULT F_API FMOD_Sound_SetLoopPoints (FMOD_SOUND *sound, unsigned int loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int loopend, FMOD_TIMEUNIT loopendtype); +FMOD_RESULT F_API FMOD_Sound_GetLoopPoints (FMOD_SOUND *sound, unsigned int *loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int *loopend, FMOD_TIMEUNIT loopendtype); + +/* + For MOD/S3M/XM/IT/MID sequenced formats only. +*/ + +FMOD_RESULT F_API FMOD_Sound_GetMusicNumChannels (FMOD_SOUND *sound, int *numchannels); +FMOD_RESULT F_API FMOD_Sound_SetMusicChannelVolume (FMOD_SOUND *sound, int channel, float volume); +FMOD_RESULT F_API FMOD_Sound_GetMusicChannelVolume (FMOD_SOUND *sound, int channel, float *volume); +FMOD_RESULT F_API FMOD_Sound_SetMusicSpeed (FMOD_SOUND *sound, float speed); +FMOD_RESULT F_API FMOD_Sound_GetMusicSpeed (FMOD_SOUND *sound, float *speed); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_Sound_SetUserData (FMOD_SOUND *sound, void *userdata); +FMOD_RESULT F_API FMOD_Sound_GetUserData (FMOD_SOUND *sound, void **userdata); + +FMOD_RESULT F_API FMOD_Sound_GetMemoryInfo (FMOD_SOUND *sound, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'Channel' API +*/ + +FMOD_RESULT F_API FMOD_Channel_GetSystemObject (FMOD_CHANNEL *channel, FMOD_SYSTEM **system); + +FMOD_RESULT F_API FMOD_Channel_Stop (FMOD_CHANNEL *channel); +FMOD_RESULT F_API FMOD_Channel_SetPaused (FMOD_CHANNEL *channel, FMOD_BOOL paused); +FMOD_RESULT F_API FMOD_Channel_GetPaused (FMOD_CHANNEL *channel, FMOD_BOOL *paused); +FMOD_RESULT F_API FMOD_Channel_SetVolume (FMOD_CHANNEL *channel, float volume); +FMOD_RESULT F_API FMOD_Channel_GetVolume (FMOD_CHANNEL *channel, float *volume); +FMOD_RESULT F_API FMOD_Channel_SetFrequency (FMOD_CHANNEL *channel, float frequency); +FMOD_RESULT F_API FMOD_Channel_GetFrequency (FMOD_CHANNEL *channel, float *frequency); +FMOD_RESULT F_API FMOD_Channel_SetPan (FMOD_CHANNEL *channel, float pan); +FMOD_RESULT F_API FMOD_Channel_GetPan (FMOD_CHANNEL *channel, float *pan); +FMOD_RESULT F_API FMOD_Channel_SetDelay (FMOD_CHANNEL *channel, FMOD_DELAYTYPE delaytype, unsigned int delayhi, unsigned int delaylo); +FMOD_RESULT F_API FMOD_Channel_GetDelay (FMOD_CHANNEL *channel, FMOD_DELAYTYPE delaytype, unsigned int *delayhi, unsigned int *delaylo); +FMOD_RESULT F_API FMOD_Channel_SetSpeakerMix (FMOD_CHANNEL *channel, float frontleft, float frontright, float center, float lfe, float backleft, float backright, float sideleft, float sideright); +FMOD_RESULT F_API FMOD_Channel_GetSpeakerMix (FMOD_CHANNEL *channel, float *frontleft, float *frontright, float *center, float *lfe, float *backleft, float *backright, float *sideleft, float *sideright); +FMOD_RESULT F_API FMOD_Channel_SetSpeakerLevels (FMOD_CHANNEL *channel, FMOD_SPEAKER speaker, float *levels, int numlevels); +FMOD_RESULT F_API FMOD_Channel_GetSpeakerLevels (FMOD_CHANNEL *channel, FMOD_SPEAKER speaker, float *levels, int numlevels); +FMOD_RESULT F_API FMOD_Channel_SetInputChannelMix (FMOD_CHANNEL *channel, float *levels, int numlevels); +FMOD_RESULT F_API FMOD_Channel_GetInputChannelMix (FMOD_CHANNEL *channel, float *levels, int numlevels); +FMOD_RESULT F_API FMOD_Channel_SetMute (FMOD_CHANNEL *channel, FMOD_BOOL mute); +FMOD_RESULT F_API FMOD_Channel_GetMute (FMOD_CHANNEL *channel, FMOD_BOOL *mute); +FMOD_RESULT F_API FMOD_Channel_SetPriority (FMOD_CHANNEL *channel, int priority); +FMOD_RESULT F_API FMOD_Channel_GetPriority (FMOD_CHANNEL *channel, int *priority); +FMOD_RESULT F_API FMOD_Channel_SetPosition (FMOD_CHANNEL *channel, unsigned int position, FMOD_TIMEUNIT postype); +FMOD_RESULT F_API FMOD_Channel_GetPosition (FMOD_CHANNEL *channel, unsigned int *position, FMOD_TIMEUNIT postype); +FMOD_RESULT F_API FMOD_Channel_SetReverbProperties (FMOD_CHANNEL *channel, const FMOD_REVERB_CHANNELPROPERTIES *prop); +FMOD_RESULT F_API FMOD_Channel_GetReverbProperties (FMOD_CHANNEL *channel, FMOD_REVERB_CHANNELPROPERTIES *prop); +FMOD_RESULT F_API FMOD_Channel_SetLowPassGain (FMOD_CHANNEL *channel, float gain); +FMOD_RESULT F_API FMOD_Channel_GetLowPassGain (FMOD_CHANNEL *channel, float *gain); + +FMOD_RESULT F_API FMOD_Channel_SetChannelGroup (FMOD_CHANNEL *channel, FMOD_CHANNELGROUP *channelgroup); +FMOD_RESULT F_API FMOD_Channel_GetChannelGroup (FMOD_CHANNEL *channel, FMOD_CHANNELGROUP **channelgroup); +FMOD_RESULT F_API FMOD_Channel_SetCallback (FMOD_CHANNEL *channel, FMOD_CHANNEL_CALLBACK callback); + +/* + 3D functionality. +*/ + +FMOD_RESULT F_API FMOD_Channel_Set3DAttributes (FMOD_CHANNEL *channel, const FMOD_VECTOR *pos, const FMOD_VECTOR *vel); +FMOD_RESULT F_API FMOD_Channel_Get3DAttributes (FMOD_CHANNEL *channel, FMOD_VECTOR *pos, FMOD_VECTOR *vel); +FMOD_RESULT F_API FMOD_Channel_Set3DMinMaxDistance (FMOD_CHANNEL *channel, float mindistance, float maxdistance); +FMOD_RESULT F_API FMOD_Channel_Get3DMinMaxDistance (FMOD_CHANNEL *channel, float *mindistance, float *maxdistance); +FMOD_RESULT F_API FMOD_Channel_Set3DConeSettings (FMOD_CHANNEL *channel, float insideconeangle, float outsideconeangle, float outsidevolume); +FMOD_RESULT F_API FMOD_Channel_Get3DConeSettings (FMOD_CHANNEL *channel, float *insideconeangle, float *outsideconeangle, float *outsidevolume); +FMOD_RESULT F_API FMOD_Channel_Set3DConeOrientation (FMOD_CHANNEL *channel, FMOD_VECTOR *orientation); +FMOD_RESULT F_API FMOD_Channel_Get3DConeOrientation (FMOD_CHANNEL *channel, FMOD_VECTOR *orientation); +FMOD_RESULT F_API FMOD_Channel_Set3DCustomRolloff (FMOD_CHANNEL *channel, FMOD_VECTOR *points, int numpoints); +FMOD_RESULT F_API FMOD_Channel_Get3DCustomRolloff (FMOD_CHANNEL *channel, FMOD_VECTOR **points, int *numpoints); +FMOD_RESULT F_API FMOD_Channel_Set3DOcclusion (FMOD_CHANNEL *channel, float directocclusion, float reverbocclusion); +FMOD_RESULT F_API FMOD_Channel_Get3DOcclusion (FMOD_CHANNEL *channel, float *directocclusion, float *reverbocclusion); +FMOD_RESULT F_API FMOD_Channel_Set3DSpread (FMOD_CHANNEL *channel, float angle); +FMOD_RESULT F_API FMOD_Channel_Get3DSpread (FMOD_CHANNEL *channel, float *angle); +FMOD_RESULT F_API FMOD_Channel_Set3DPanLevel (FMOD_CHANNEL *channel, float level); +FMOD_RESULT F_API FMOD_Channel_Get3DPanLevel (FMOD_CHANNEL *channel, float *level); +FMOD_RESULT F_API FMOD_Channel_Set3DDopplerLevel (FMOD_CHANNEL *channel, float level); +FMOD_RESULT F_API FMOD_Channel_Get3DDopplerLevel (FMOD_CHANNEL *channel, float *level); +FMOD_RESULT F_API FMOD_Channel_Set3DDistanceFilter (FMOD_CHANNEL *channel, FMOD_BOOL custom, float customLevel, float centerFreq); +FMOD_RESULT F_API FMOD_Channel_Get3DDistanceFilter (FMOD_CHANNEL *channel, FMOD_BOOL *custom, float *customLevel, float *centerFreq); + +/* + DSP functionality only for channels playing sounds created with FMOD_SOFTWARE. +*/ + +FMOD_RESULT F_API FMOD_Channel_GetDSPHead (FMOD_CHANNEL *channel, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_Channel_AddDSP (FMOD_CHANNEL *channel, FMOD_DSP *dsp, FMOD_DSPCONNECTION **connection); + +/* + Information only functions. +*/ + +FMOD_RESULT F_API FMOD_Channel_IsPlaying (FMOD_CHANNEL *channel, FMOD_BOOL *isplaying); +FMOD_RESULT F_API FMOD_Channel_IsVirtual (FMOD_CHANNEL *channel, FMOD_BOOL *isvirtual); +FMOD_RESULT F_API FMOD_Channel_GetAudibility (FMOD_CHANNEL *channel, float *audibility); +FMOD_RESULT F_API FMOD_Channel_GetCurrentSound (FMOD_CHANNEL *channel, FMOD_SOUND **sound); +FMOD_RESULT F_API FMOD_Channel_GetSpectrum (FMOD_CHANNEL *channel, float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); +FMOD_RESULT F_API FMOD_Channel_GetWaveData (FMOD_CHANNEL *channel, float *wavearray, int numvalues, int channeloffset); +FMOD_RESULT F_API FMOD_Channel_GetIndex (FMOD_CHANNEL *channel, int *index); + +/* + Functions also found in Sound class but here they can be set per channel. +*/ + +FMOD_RESULT F_API FMOD_Channel_SetMode (FMOD_CHANNEL *channel, FMOD_MODE mode); +FMOD_RESULT F_API FMOD_Channel_GetMode (FMOD_CHANNEL *channel, FMOD_MODE *mode); +FMOD_RESULT F_API FMOD_Channel_SetLoopCount (FMOD_CHANNEL *channel, int loopcount); +FMOD_RESULT F_API FMOD_Channel_GetLoopCount (FMOD_CHANNEL *channel, int *loopcount); +FMOD_RESULT F_API FMOD_Channel_SetLoopPoints (FMOD_CHANNEL *channel, unsigned int loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int loopend, FMOD_TIMEUNIT loopendtype); +FMOD_RESULT F_API FMOD_Channel_GetLoopPoints (FMOD_CHANNEL *channel, unsigned int *loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int *loopend, FMOD_TIMEUNIT loopendtype); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_Channel_SetUserData (FMOD_CHANNEL *channel, void *userdata); +FMOD_RESULT F_API FMOD_Channel_GetUserData (FMOD_CHANNEL *channel, void **userdata); + +FMOD_RESULT F_API FMOD_Channel_GetMemoryInfo (FMOD_CHANNEL *channel, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'ChannelGroup' API +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_Release (FMOD_CHANNELGROUP *channelgroup); +FMOD_RESULT F_API FMOD_ChannelGroup_GetSystemObject (FMOD_CHANNELGROUP *channelgroup, FMOD_SYSTEM **system); + +/* + Channelgroup scale values. (changes attributes relative to the channels, doesn't overwrite them) +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_SetVolume (FMOD_CHANNELGROUP *channelgroup, float volume); +FMOD_RESULT F_API FMOD_ChannelGroup_GetVolume (FMOD_CHANNELGROUP *channelgroup, float *volume); +FMOD_RESULT F_API FMOD_ChannelGroup_SetPitch (FMOD_CHANNELGROUP *channelgroup, float pitch); +FMOD_RESULT F_API FMOD_ChannelGroup_GetPitch (FMOD_CHANNELGROUP *channelgroup, float *pitch); +FMOD_RESULT F_API FMOD_ChannelGroup_Set3DOcclusion (FMOD_CHANNELGROUP *channelgroup, float directocclusion, float reverbocclusion); +FMOD_RESULT F_API FMOD_ChannelGroup_Get3DOcclusion (FMOD_CHANNELGROUP *channelgroup, float *directocclusion, float *reverbocclusion); +FMOD_RESULT F_API FMOD_ChannelGroup_SetPaused (FMOD_CHANNELGROUP *channelgroup, FMOD_BOOL paused); +FMOD_RESULT F_API FMOD_ChannelGroup_GetPaused (FMOD_CHANNELGROUP *channelgroup, FMOD_BOOL *paused); +FMOD_RESULT F_API FMOD_ChannelGroup_SetMute (FMOD_CHANNELGROUP *channelgroup, FMOD_BOOL mute); +FMOD_RESULT F_API FMOD_ChannelGroup_GetMute (FMOD_CHANNELGROUP *channelgroup, FMOD_BOOL *mute); + +/* + Channelgroup override values. (recursively overwrites whatever settings the channels had) +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_Stop (FMOD_CHANNELGROUP *channelgroup); +FMOD_RESULT F_API FMOD_ChannelGroup_OverrideVolume (FMOD_CHANNELGROUP *channelgroup, float volume); +FMOD_RESULT F_API FMOD_ChannelGroup_OverrideFrequency(FMOD_CHANNELGROUP *channelgroup, float frequency); +FMOD_RESULT F_API FMOD_ChannelGroup_OverridePan (FMOD_CHANNELGROUP *channelgroup, float pan); +FMOD_RESULT F_API FMOD_ChannelGroup_OverrideReverbProperties(FMOD_CHANNELGROUP *channelgroup, const FMOD_REVERB_CHANNELPROPERTIES *prop); +FMOD_RESULT F_API FMOD_ChannelGroup_Override3DAttributes(FMOD_CHANNELGROUP *channelgroup, const FMOD_VECTOR *pos, const FMOD_VECTOR *vel); +FMOD_RESULT F_API FMOD_ChannelGroup_OverrideSpeakerMix(FMOD_CHANNELGROUP *channelgroup, float frontleft, float frontright, float center, float lfe, float backleft, float backright, float sideleft, float sideright); + +/* + Nested channel groups. +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_AddGroup (FMOD_CHANNELGROUP *channelgroup, FMOD_CHANNELGROUP *group); +FMOD_RESULT F_API FMOD_ChannelGroup_GetNumGroups (FMOD_CHANNELGROUP *channelgroup, int *numgroups); +FMOD_RESULT F_API FMOD_ChannelGroup_GetGroup (FMOD_CHANNELGROUP *channelgroup, int index, FMOD_CHANNELGROUP **group); +FMOD_RESULT F_API FMOD_ChannelGroup_GetParentGroup (FMOD_CHANNELGROUP *channelgroup, FMOD_CHANNELGROUP **group); + +/* + DSP functionality only for channel groups playing sounds created with FMOD_SOFTWARE. +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_GetDSPHead (FMOD_CHANNELGROUP *channelgroup, FMOD_DSP **dsp); +FMOD_RESULT F_API FMOD_ChannelGroup_AddDSP (FMOD_CHANNELGROUP *channelgroup, FMOD_DSP *dsp, FMOD_DSPCONNECTION **connection); + +/* + Information only functions. +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_GetName (FMOD_CHANNELGROUP *channelgroup, char *name, int namelen); +FMOD_RESULT F_API FMOD_ChannelGroup_GetNumChannels (FMOD_CHANNELGROUP *channelgroup, int *numchannels); +FMOD_RESULT F_API FMOD_ChannelGroup_GetChannel (FMOD_CHANNELGROUP *channelgroup, int index, FMOD_CHANNEL **channel); +FMOD_RESULT F_API FMOD_ChannelGroup_GetSpectrum (FMOD_CHANNELGROUP *channelgroup, float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); +FMOD_RESULT F_API FMOD_ChannelGroup_GetWaveData (FMOD_CHANNELGROUP *channelgroup, float *wavearray, int numvalues, int channeloffset); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_ChannelGroup_SetUserData (FMOD_CHANNELGROUP *channelgroup, void *userdata); +FMOD_RESULT F_API FMOD_ChannelGroup_GetUserData (FMOD_CHANNELGROUP *channelgroup, void **userdata); + +FMOD_RESULT F_API FMOD_ChannelGroup_GetMemoryInfo (FMOD_CHANNELGROUP *channelgroup, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'SoundGroup' API +*/ + +FMOD_RESULT F_API FMOD_SoundGroup_Release (FMOD_SOUNDGROUP *soundgroup); +FMOD_RESULT F_API FMOD_SoundGroup_GetSystemObject (FMOD_SOUNDGROUP *soundgroup, FMOD_SYSTEM **system); + +/* + SoundGroup control functions. +*/ + +FMOD_RESULT F_API FMOD_SoundGroup_SetMaxAudible (FMOD_SOUNDGROUP *soundgroup, int maxaudible); +FMOD_RESULT F_API FMOD_SoundGroup_GetMaxAudible (FMOD_SOUNDGROUP *soundgroup, int *maxaudible); +FMOD_RESULT F_API FMOD_SoundGroup_SetMaxAudibleBehavior(FMOD_SOUNDGROUP *soundgroup, FMOD_SOUNDGROUP_BEHAVIOR behavior); +FMOD_RESULT F_API FMOD_SoundGroup_GetMaxAudibleBehavior(FMOD_SOUNDGROUP *soundgroup, FMOD_SOUNDGROUP_BEHAVIOR *behavior); +FMOD_RESULT F_API FMOD_SoundGroup_SetMuteFadeSpeed (FMOD_SOUNDGROUP *soundgroup, float speed); +FMOD_RESULT F_API FMOD_SoundGroup_GetMuteFadeSpeed (FMOD_SOUNDGROUP *soundgroup, float *speed); +FMOD_RESULT F_API FMOD_SoundGroup_SetVolume (FMOD_SOUNDGROUP *soundgroup, float volume); +FMOD_RESULT F_API FMOD_SoundGroup_GetVolume (FMOD_SOUNDGROUP *soundgroup, float *volume); +FMOD_RESULT F_API FMOD_SoundGroup_Stop (FMOD_SOUNDGROUP *soundgroup); + +/* + Information only functions. +*/ + +FMOD_RESULT F_API FMOD_SoundGroup_GetName (FMOD_SOUNDGROUP *soundgroup, char *name, int namelen); +FMOD_RESULT F_API FMOD_SoundGroup_GetNumSounds (FMOD_SOUNDGROUP *soundgroup, int *numsounds); +FMOD_RESULT F_API FMOD_SoundGroup_GetSound (FMOD_SOUNDGROUP *soundgroup, int index, FMOD_SOUND **sound); +FMOD_RESULT F_API FMOD_SoundGroup_GetNumPlaying (FMOD_SOUNDGROUP *soundgroup, int *numplaying); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_SoundGroup_SetUserData (FMOD_SOUNDGROUP *soundgroup, void *userdata); +FMOD_RESULT F_API FMOD_SoundGroup_GetUserData (FMOD_SOUNDGROUP *soundgroup, void **userdata); + +FMOD_RESULT F_API FMOD_SoundGroup_GetMemoryInfo (FMOD_SOUNDGROUP *soundgroup, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'DSP' API +*/ + +FMOD_RESULT F_API FMOD_DSP_Release (FMOD_DSP *dsp); +FMOD_RESULT F_API FMOD_DSP_GetSystemObject (FMOD_DSP *dsp, FMOD_SYSTEM **system); + +/* + Connection / disconnection / input and output enumeration. +*/ + +FMOD_RESULT F_API FMOD_DSP_AddInput (FMOD_DSP *dsp, FMOD_DSP *target, FMOD_DSPCONNECTION **connection); +FMOD_RESULT F_API FMOD_DSP_DisconnectFrom (FMOD_DSP *dsp, FMOD_DSP *target); +FMOD_RESULT F_API FMOD_DSP_DisconnectAll (FMOD_DSP *dsp, FMOD_BOOL inputs, FMOD_BOOL outputs); +FMOD_RESULT F_API FMOD_DSP_Remove (FMOD_DSP *dsp); +FMOD_RESULT F_API FMOD_DSP_GetNumInputs (FMOD_DSP *dsp, int *numinputs); +FMOD_RESULT F_API FMOD_DSP_GetNumOutputs (FMOD_DSP *dsp, int *numoutputs); +FMOD_RESULT F_API FMOD_DSP_GetInput (FMOD_DSP *dsp, int index, FMOD_DSP **input, FMOD_DSPCONNECTION **inputconnection); +FMOD_RESULT F_API FMOD_DSP_GetOutput (FMOD_DSP *dsp, int index, FMOD_DSP **output, FMOD_DSPCONNECTION **outputconnection); + +/* + DSP unit control. +*/ + +FMOD_RESULT F_API FMOD_DSP_SetActive (FMOD_DSP *dsp, FMOD_BOOL active); +FMOD_RESULT F_API FMOD_DSP_GetActive (FMOD_DSP *dsp, FMOD_BOOL *active); +FMOD_RESULT F_API FMOD_DSP_SetBypass (FMOD_DSP *dsp, FMOD_BOOL bypass); +FMOD_RESULT F_API FMOD_DSP_GetBypass (FMOD_DSP *dsp, FMOD_BOOL *bypass); +FMOD_RESULT F_API FMOD_DSP_SetSpeakerActive (FMOD_DSP *dsp, FMOD_SPEAKER speaker, FMOD_BOOL active); +FMOD_RESULT F_API FMOD_DSP_GetSpeakerActive (FMOD_DSP *dsp, FMOD_SPEAKER speaker, FMOD_BOOL *active); +FMOD_RESULT F_API FMOD_DSP_Reset (FMOD_DSP *dsp); + +/* + DSP parameter control. +*/ + +FMOD_RESULT F_API FMOD_DSP_SetParameter (FMOD_DSP *dsp, int index, float value); +FMOD_RESULT F_API FMOD_DSP_GetParameter (FMOD_DSP *dsp, int index, float *value, char *valuestr, int valuestrlen); +FMOD_RESULT F_API FMOD_DSP_GetNumParameters (FMOD_DSP *dsp, int *numparams); +FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, char *name, char *label, char *description, int descriptionlen, float *min, float *max); +FMOD_RESULT F_API FMOD_DSP_ShowConfigDialog (FMOD_DSP *dsp, void *hwnd, FMOD_BOOL show); + +/* + DSP attributes. +*/ + +FMOD_RESULT F_API FMOD_DSP_GetInfo (FMOD_DSP *dsp, char *name, unsigned int *version, int *channels, int *configwidth, int *configheight); +FMOD_RESULT F_API FMOD_DSP_GetType (FMOD_DSP *dsp, FMOD_DSP_TYPE *type); +FMOD_RESULT F_API FMOD_DSP_SetDefaults (FMOD_DSP *dsp, float frequency, float volume, float pan, int priority); +FMOD_RESULT F_API FMOD_DSP_GetDefaults (FMOD_DSP *dsp, float *frequency, float *volume, float *pan, int *priority); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_DSP_SetUserData (FMOD_DSP *dsp, void *userdata); +FMOD_RESULT F_API FMOD_DSP_GetUserData (FMOD_DSP *dsp, void **userdata); + +FMOD_RESULT F_API FMOD_DSP_GetMemoryInfo (FMOD_DSP *dsp, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'DSPConnection' API +*/ + +FMOD_RESULT F_API FMOD_DSPConnection_GetInput (FMOD_DSPCONNECTION *dspconnection, FMOD_DSP **input); +FMOD_RESULT F_API FMOD_DSPConnection_GetOutput (FMOD_DSPCONNECTION *dspconnection, FMOD_DSP **output); +FMOD_RESULT F_API FMOD_DSPConnection_SetMix (FMOD_DSPCONNECTION *dspconnection, float volume); +FMOD_RESULT F_API FMOD_DSPConnection_GetMix (FMOD_DSPCONNECTION *dspconnection, float *volume); +FMOD_RESULT F_API FMOD_DSPConnection_SetLevels (FMOD_DSPCONNECTION *dspconnection, FMOD_SPEAKER speaker, float *levels, int numlevels); +FMOD_RESULT F_API FMOD_DSPConnection_GetLevels (FMOD_DSPCONNECTION *dspconnection, FMOD_SPEAKER speaker, float *levels, int numlevels); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_DSPConnection_SetUserData (FMOD_DSPCONNECTION *dspconnection, void *userdata); +FMOD_RESULT F_API FMOD_DSPConnection_GetUserData (FMOD_DSPCONNECTION *dspconnection, void **userdata); + +FMOD_RESULT F_API FMOD_DSPConnection_GetMemoryInfo (FMOD_DSPCONNECTION *dspconnection, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'Geometry' API +*/ + +FMOD_RESULT F_API FMOD_Geometry_Release (FMOD_GEOMETRY *geometry); + +/* + Polygon manipulation. +*/ + +FMOD_RESULT F_API FMOD_Geometry_AddPolygon (FMOD_GEOMETRY *geometry, float directocclusion, float reverbocclusion, FMOD_BOOL doublesided, int numvertices, const FMOD_VECTOR *vertices, int *polygonindex); +FMOD_RESULT F_API FMOD_Geometry_GetNumPolygons (FMOD_GEOMETRY *geometry, int *numpolygons); +FMOD_RESULT F_API FMOD_Geometry_GetMaxPolygons (FMOD_GEOMETRY *geometry, int *maxpolygons, int *maxvertices); +FMOD_RESULT F_API FMOD_Geometry_GetPolygonNumVertices(FMOD_GEOMETRY *geometry, int index, int *numvertices); +FMOD_RESULT F_API FMOD_Geometry_SetPolygonVertex (FMOD_GEOMETRY *geometry, int index, int vertexindex, const FMOD_VECTOR *vertex); +FMOD_RESULT F_API FMOD_Geometry_GetPolygonVertex (FMOD_GEOMETRY *geometry, int index, int vertexindex, FMOD_VECTOR *vertex); +FMOD_RESULT F_API FMOD_Geometry_SetPolygonAttributes (FMOD_GEOMETRY *geometry, int index, float directocclusion, float reverbocclusion, FMOD_BOOL doublesided); +FMOD_RESULT F_API FMOD_Geometry_GetPolygonAttributes (FMOD_GEOMETRY *geometry, int index, float *directocclusion, float *reverbocclusion, FMOD_BOOL *doublesided); + +/* + Object manipulation. +*/ + +FMOD_RESULT F_API FMOD_Geometry_SetActive (FMOD_GEOMETRY *geometry, FMOD_BOOL active); +FMOD_RESULT F_API FMOD_Geometry_GetActive (FMOD_GEOMETRY *geometry, FMOD_BOOL *active); +FMOD_RESULT F_API FMOD_Geometry_SetRotation (FMOD_GEOMETRY *geometry, const FMOD_VECTOR *forward, const FMOD_VECTOR *up); +FMOD_RESULT F_API FMOD_Geometry_GetRotation (FMOD_GEOMETRY *geometry, FMOD_VECTOR *forward, FMOD_VECTOR *up); +FMOD_RESULT F_API FMOD_Geometry_SetPosition (FMOD_GEOMETRY *geometry, const FMOD_VECTOR *position); +FMOD_RESULT F_API FMOD_Geometry_GetPosition (FMOD_GEOMETRY *geometry, FMOD_VECTOR *position); +FMOD_RESULT F_API FMOD_Geometry_SetScale (FMOD_GEOMETRY *geometry, const FMOD_VECTOR *scale); +FMOD_RESULT F_API FMOD_Geometry_GetScale (FMOD_GEOMETRY *geometry, FMOD_VECTOR *scale); +FMOD_RESULT F_API FMOD_Geometry_Save (FMOD_GEOMETRY *geometry, void *data, int *datasize); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_Geometry_SetUserData (FMOD_GEOMETRY *geometry, void *userdata); +FMOD_RESULT F_API FMOD_Geometry_GetUserData (FMOD_GEOMETRY *geometry, void **userdata); + +FMOD_RESULT F_API FMOD_Geometry_GetMemoryInfo (FMOD_GEOMETRY *geometry, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +/* + 'Reverb' API +*/ + +FMOD_RESULT F_API FMOD_Reverb_Release (FMOD_REVERB *reverb); + +/* + Reverb manipulation. +*/ + +FMOD_RESULT F_API FMOD_Reverb_Set3DAttributes (FMOD_REVERB *reverb, const FMOD_VECTOR *position, float mindistance, float maxdistance); +FMOD_RESULT F_API FMOD_Reverb_Get3DAttributes (FMOD_REVERB *reverb, FMOD_VECTOR *position, float *mindistance, float *maxdistance); +FMOD_RESULT F_API FMOD_Reverb_SetProperties (FMOD_REVERB *reverb, const FMOD_REVERB_PROPERTIES *properties); +FMOD_RESULT F_API FMOD_Reverb_GetProperties (FMOD_REVERB *reverb, FMOD_REVERB_PROPERTIES *properties); +FMOD_RESULT F_API FMOD_Reverb_SetActive (FMOD_REVERB *reverb, FMOD_BOOL active); +FMOD_RESULT F_API FMOD_Reverb_GetActive (FMOD_REVERB *reverb, FMOD_BOOL *active); + +/* + Userdata set/get. +*/ + +FMOD_RESULT F_API FMOD_Reverb_SetUserData (FMOD_REVERB *reverb, void *userdata); +FMOD_RESULT F_API FMOD_Reverb_GetUserData (FMOD_REVERB *reverb, void **userdata); + +FMOD_RESULT F_API FMOD_Reverb_GetMemoryInfo (FMOD_REVERB *reverb, unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/libs/FMOD/inc/fmod.hpp b/libs/FMOD/inc/fmod.hpp new file mode 100644 index 0000000..04d5edb --- /dev/null +++ b/libs/FMOD/inc/fmod.hpp @@ -0,0 +1,608 @@ +/* ========================================================================================== */ +/* FMOD Ex - C++ header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* Use this header in conjunction with fmod.h (which contains all the constants / callbacks) */ +/* to develop using C++ classes. */ +/* ========================================================================================== */ + +#ifndef _FMOD_HPP +#define _FMOD_HPP + +#include "fmod.h" + +/* + Constant and defines +*/ + +/* + FMOD Namespace +*/ +namespace FMOD +{ + class System; + class Sound; + class Channel; + class ChannelGroup; + class SoundGroup; + class Reverb; + class DSP; + class DSPConnection; + class Geometry; + + /* + FMOD global system functions (optional). + */ + inline FMOD_RESULT Memory_Initialize(void *poolmem, int poollen, FMOD_MEMORY_ALLOCCALLBACK useralloc, FMOD_MEMORY_REALLOCCALLBACK userrealloc, FMOD_MEMORY_FREECALLBACK userfree, FMOD_MEMORY_TYPE memtypeflags = FMOD_MEMORY_ALL) { return FMOD_Memory_Initialize(poolmem, poollen, useralloc, userrealloc, userfree, memtypeflags); } + inline FMOD_RESULT Memory_GetStats (int *currentalloced, int *maxalloced, bool blocking = true) { return FMOD_Memory_GetStats(currentalloced, maxalloced, blocking); } + inline FMOD_RESULT Debug_SetLevel(FMOD_DEBUGLEVEL level) { return FMOD_Debug_SetLevel(level); } + inline FMOD_RESULT Debug_GetLevel(FMOD_DEBUGLEVEL *level) { return FMOD_Debug_GetLevel(level); } + inline FMOD_RESULT File_SetDiskBusy(int busy) { return FMOD_File_SetDiskBusy(busy); } + inline FMOD_RESULT File_GetDiskBusy(int *busy) { return FMOD_File_GetDiskBusy(busy); } + + /* + FMOD System factory functions. + */ + inline FMOD_RESULT System_Create(System **system) { return FMOD_System_Create((FMOD_SYSTEM **)system); } + + /* + 'System' API + */ + + class System + { + private: + + System(); /* Constructor made private so user cannot statically instance a System class. + System_Create must be used. */ + public: + + FMOD_RESULT F_API release (); + + // Pre-init functions. + FMOD_RESULT F_API setOutput (FMOD_OUTPUTTYPE output); + FMOD_RESULT F_API getOutput (FMOD_OUTPUTTYPE *output); + FMOD_RESULT F_API getNumDrivers (int *numdrivers); + FMOD_RESULT F_API getDriverInfo (int id, char *name, int namelen, FMOD_GUID *guid); + FMOD_RESULT F_API getDriverInfoW (int id, short *name, int namelen, FMOD_GUID *guid); + FMOD_RESULT F_API getDriverCaps (int id, FMOD_CAPS *caps, int *controlpaneloutputrate, FMOD_SPEAKERMODE *controlpanelspeakermode); + FMOD_RESULT F_API setDriver (int driver); + FMOD_RESULT F_API getDriver (int *driver); + FMOD_RESULT F_API setHardwareChannels (int numhardwarechannels); + FMOD_RESULT F_API setSoftwareChannels (int numsoftwarechannels); + FMOD_RESULT F_API getSoftwareChannels (int *numsoftwarechannels); + FMOD_RESULT F_API setSoftwareFormat (int samplerate, FMOD_SOUND_FORMAT format, int numoutputchannels, int maxinputchannels, FMOD_DSP_RESAMPLER resamplemethod); + FMOD_RESULT F_API getSoftwareFormat (int *samplerate, FMOD_SOUND_FORMAT *format, int *numoutputchannels, int *maxinputchannels, FMOD_DSP_RESAMPLER *resamplemethod, int *bits); + FMOD_RESULT F_API setDSPBufferSize (unsigned int bufferlength, int numbuffers); + FMOD_RESULT F_API getDSPBufferSize (unsigned int *bufferlength, int *numbuffers); + FMOD_RESULT F_API setFileSystem (FMOD_FILE_OPENCALLBACK useropen, FMOD_FILE_CLOSECALLBACK userclose, FMOD_FILE_READCALLBACK userread, FMOD_FILE_SEEKCALLBACK userseek, FMOD_FILE_ASYNCREADCALLBACK userasyncread, FMOD_FILE_ASYNCCANCELCALLBACK userasynccancel, int blockalign); + FMOD_RESULT F_API attachFileSystem (FMOD_FILE_OPENCALLBACK useropen, FMOD_FILE_CLOSECALLBACK userclose, FMOD_FILE_READCALLBACK userread, FMOD_FILE_SEEKCALLBACK userseek); + FMOD_RESULT F_API setAdvancedSettings (FMOD_ADVANCEDSETTINGS *settings); + FMOD_RESULT F_API getAdvancedSettings (FMOD_ADVANCEDSETTINGS *settings); + FMOD_RESULT F_API setSpeakerMode (FMOD_SPEAKERMODE speakermode); + FMOD_RESULT F_API getSpeakerMode (FMOD_SPEAKERMODE *speakermode); + FMOD_RESULT F_API setCallback (FMOD_SYSTEM_CALLBACK callback); + + // Plug-in support + FMOD_RESULT F_API setPluginPath (const char *path); + FMOD_RESULT F_API loadPlugin (const char *filename, unsigned int *handle, unsigned int priority = 0); + FMOD_RESULT F_API unloadPlugin (unsigned int handle); + FMOD_RESULT F_API getNumPlugins (FMOD_PLUGINTYPE plugintype, int *numplugins); + FMOD_RESULT F_API getPluginHandle (FMOD_PLUGINTYPE plugintype, int index, unsigned int *handle); + FMOD_RESULT F_API getPluginInfo (unsigned int handle, FMOD_PLUGINTYPE *plugintype, char *name, int namelen, unsigned int *version); + FMOD_RESULT F_API setOutputByPlugin (unsigned int handle); + FMOD_RESULT F_API getOutputByPlugin (unsigned int *handle); + FMOD_RESULT F_API createDSPByPlugin (unsigned int handle, DSP **dsp); + FMOD_RESULT F_API registerCodec (FMOD_CODEC_DESCRIPTION *description, unsigned int *handle, unsigned int priority = 0); + FMOD_RESULT F_API registerDSP (FMOD_DSP_DESCRIPTION *description, unsigned int *handle); + + // Init/Close + FMOD_RESULT F_API init (int maxchannels, FMOD_INITFLAGS flags, void *extradriverdata); + FMOD_RESULT F_API close (); + + // General post-init system functions + FMOD_RESULT F_API update (); /* IMPORTANT! CALL THIS ONCE PER FRAME! */ + + FMOD_RESULT F_API set3DSettings (float dopplerscale, float distancefactor, float rolloffscale); + FMOD_RESULT F_API get3DSettings (float *dopplerscale, float *distancefactor, float *rolloffscale); + FMOD_RESULT F_API set3DNumListeners (int numlisteners); + FMOD_RESULT F_API get3DNumListeners (int *numlisteners); + FMOD_RESULT F_API set3DListenerAttributes(int listener, const FMOD_VECTOR *pos, const FMOD_VECTOR *vel, const FMOD_VECTOR *forward, const FMOD_VECTOR *up); + FMOD_RESULT F_API get3DListenerAttributes(int listener, FMOD_VECTOR *pos, FMOD_VECTOR *vel, FMOD_VECTOR *forward, FMOD_VECTOR *up); + FMOD_RESULT F_API set3DRolloffCallback (FMOD_3D_ROLLOFFCALLBACK callback); + FMOD_RESULT F_API set3DSpeakerPosition (FMOD_SPEAKER speaker, float x, float y, bool active); + FMOD_RESULT F_API get3DSpeakerPosition (FMOD_SPEAKER speaker, float *x, float *y, bool *active); + + FMOD_RESULT F_API setStreamBufferSize (unsigned int filebuffersize, FMOD_TIMEUNIT filebuffersizetype); + FMOD_RESULT F_API getStreamBufferSize (unsigned int *filebuffersize, FMOD_TIMEUNIT *filebuffersizetype); + + // System information functions. + FMOD_RESULT F_API getVersion (unsigned int *version); + FMOD_RESULT F_API getOutputHandle (void **handle); + FMOD_RESULT F_API getChannelsPlaying (int *channels); + FMOD_RESULT F_API getHardwareChannels (int *numhardwarechannels); + FMOD_RESULT F_API getCPUUsage (float *dsp, float *stream, float *geometry, float *update, float *total); + FMOD_RESULT F_API getSoundRAM (int *currentalloced, int *maxalloced, int *total); + FMOD_RESULT F_API getNumCDROMDrives (int *numdrives); + FMOD_RESULT F_API getCDROMDriveName (int drive, char *drivename, int drivenamelen, char *scsiname, int scsinamelen, char *devicename, int devicenamelen); + FMOD_RESULT F_API getSpectrum (float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); + FMOD_RESULT F_API getWaveData (float *wavearray, int numvalues, int channeloffset); + + // Sound/DSP/Channel/FX creation and retrieval. + FMOD_RESULT F_API createSound (const char *name_or_data, FMOD_MODE mode, FMOD_CREATESOUNDEXINFO *exinfo, Sound **sound); + FMOD_RESULT F_API createStream (const char *name_or_data, FMOD_MODE mode, FMOD_CREATESOUNDEXINFO *exinfo, Sound **sound); + FMOD_RESULT F_API createDSP (FMOD_DSP_DESCRIPTION *description, DSP **dsp); + FMOD_RESULT F_API createDSPByType (FMOD_DSP_TYPE type, DSP **dsp); + FMOD_RESULT F_API createChannelGroup (const char *name, ChannelGroup **channelgroup); + FMOD_RESULT F_API createSoundGroup (const char *name, SoundGroup **soundgroup); + FMOD_RESULT F_API createReverb (Reverb **reverb); + + FMOD_RESULT F_API playSound (FMOD_CHANNELINDEX channelid, Sound *sound, bool paused, Channel **channel); + FMOD_RESULT F_API playDSP (FMOD_CHANNELINDEX channelid, DSP *dsp, bool paused, Channel **channel); + FMOD_RESULT F_API getChannel (int channelid, Channel **channel); + FMOD_RESULT F_API getMasterChannelGroup (ChannelGroup **channelgroup); + FMOD_RESULT F_API getMasterSoundGroup (SoundGroup **soundgroup); + + // Reverb API + FMOD_RESULT F_API setReverbProperties (const FMOD_REVERB_PROPERTIES *prop); + FMOD_RESULT F_API getReverbProperties (FMOD_REVERB_PROPERTIES *prop); + FMOD_RESULT F_API setReverbAmbientProperties(FMOD_REVERB_PROPERTIES *prop); + FMOD_RESULT F_API getReverbAmbientProperties(FMOD_REVERB_PROPERTIES *prop); + + // System level DSP access. + FMOD_RESULT F_API getDSPHead (DSP **dsp); + FMOD_RESULT F_API addDSP (DSP *dsp, DSPConnection **connection); + FMOD_RESULT F_API lockDSP (); + FMOD_RESULT F_API unlockDSP (); + FMOD_RESULT F_API getDSPClock (unsigned int *hi, unsigned int *lo); + + // Recording API. + FMOD_RESULT F_API getRecordNumDrivers (int *numdrivers); + FMOD_RESULT F_API getRecordDriverInfo (int id, char *name, int namelen, FMOD_GUID *guid); + FMOD_RESULT F_API getRecordDriverInfoW (int id, short *name, int namelen, FMOD_GUID *guid); + FMOD_RESULT F_API getRecordDriverCaps (int id, FMOD_CAPS *caps, int *minfrequency, int *maxfrequency); + FMOD_RESULT F_API getRecordPosition (int id, unsigned int *position); + + FMOD_RESULT F_API recordStart (int id, Sound *sound, bool loop); + FMOD_RESULT F_API recordStop (int id); + FMOD_RESULT F_API isRecording (int id, bool *recording); + + // Geometry API. + FMOD_RESULT F_API createGeometry (int maxpolygons, int maxvertices, Geometry **geometry); + FMOD_RESULT F_API setGeometrySettings (float maxworldsize); + FMOD_RESULT F_API getGeometrySettings (float *maxworldsize); + FMOD_RESULT F_API loadGeometry (const void *data, int datasize, Geometry **geometry); + FMOD_RESULT F_API getGeometryOcclusion (const FMOD_VECTOR *listener, const FMOD_VECTOR *source, float *direct, float *reverb); + + // Network functions. + FMOD_RESULT F_API setNetworkProxy (const char *proxy); + FMOD_RESULT F_API getNetworkProxy (char *proxy, int proxylen); + FMOD_RESULT F_API setNetworkTimeout (int timeout); + FMOD_RESULT F_API getNetworkTimeout (int *timeout); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + /* + 'Sound' API + */ + class Sound + { + private: + + Sound(); /* Constructor made private so user cannot statically instance a Sound class. + Appropriate Sound creation or retrieval function must be used. */ + public: + + FMOD_RESULT F_API release (); + FMOD_RESULT F_API getSystemObject (System **system); + + // Standard sound manipulation functions. + FMOD_RESULT F_API lock (unsigned int offset, unsigned int length, void **ptr1, void **ptr2, unsigned int *len1, unsigned int *len2); + FMOD_RESULT F_API unlock (void *ptr1, void *ptr2, unsigned int len1, unsigned int len2); + FMOD_RESULT F_API setDefaults (float frequency, float volume, float pan, int priority); + FMOD_RESULT F_API getDefaults (float *frequency, float *volume, float *pan, int *priority); + FMOD_RESULT F_API setVariations (float frequencyvar, float volumevar, float panvar); + FMOD_RESULT F_API getVariations (float *frequencyvar, float *volumevar, float *panvar); + FMOD_RESULT F_API set3DMinMaxDistance (float min, float max); + FMOD_RESULT F_API get3DMinMaxDistance (float *min, float *max); + FMOD_RESULT F_API set3DConeSettings (float insideconeangle, float outsideconeangle, float outsidevolume); + FMOD_RESULT F_API get3DConeSettings (float *insideconeangle, float *outsideconeangle, float *outsidevolume); + FMOD_RESULT F_API set3DCustomRolloff (FMOD_VECTOR *points, int numpoints); + FMOD_RESULT F_API get3DCustomRolloff (FMOD_VECTOR **points, int *numpoints); + FMOD_RESULT F_API setSubSound (int index, Sound *subsound); + FMOD_RESULT F_API getSubSound (int index, Sound **subsound); + FMOD_RESULT F_API setSubSoundSentence (int *subsoundlist, int numsubsounds); + FMOD_RESULT F_API getName (char *name, int namelen); + FMOD_RESULT F_API getLength (unsigned int *length, FMOD_TIMEUNIT lengthtype); + FMOD_RESULT F_API getFormat (FMOD_SOUND_TYPE *type, FMOD_SOUND_FORMAT *format, int *channels, int *bits); + FMOD_RESULT F_API getNumSubSounds (int *numsubsounds); + FMOD_RESULT F_API getNumTags (int *numtags, int *numtagsupdated); + FMOD_RESULT F_API getTag (const char *name, int index, FMOD_TAG *tag); + FMOD_RESULT F_API getOpenState (FMOD_OPENSTATE *openstate, unsigned int *percentbuffered, bool *starving, bool *diskbusy); + FMOD_RESULT F_API readData (void *buffer, unsigned int lenbytes, unsigned int *read); + FMOD_RESULT F_API seekData (unsigned int pcm); + + FMOD_RESULT F_API setSoundGroup (SoundGroup *soundgroup); + FMOD_RESULT F_API getSoundGroup (SoundGroup **soundgroup); + + // Synchronization point API. These points can come from markers embedded in wav files, and can also generate channel callbacks. + FMOD_RESULT F_API getNumSyncPoints (int *numsyncpoints); + FMOD_RESULT F_API getSyncPoint (int index, FMOD_SYNCPOINT **point); + FMOD_RESULT F_API getSyncPointInfo (FMOD_SYNCPOINT *point, char *name, int namelen, unsigned int *offset, FMOD_TIMEUNIT offsettype); + FMOD_RESULT F_API addSyncPoint (unsigned int offset, FMOD_TIMEUNIT offsettype, const char *name, FMOD_SYNCPOINT **point); + FMOD_RESULT F_API deleteSyncPoint (FMOD_SYNCPOINT *point); + + // Functions also in Channel class but here they are the 'default' to save having to change it in Channel all the time. + FMOD_RESULT F_API setMode (FMOD_MODE mode); + FMOD_RESULT F_API getMode (FMOD_MODE *mode); + FMOD_RESULT F_API setLoopCount (int loopcount); + FMOD_RESULT F_API getLoopCount (int *loopcount); + FMOD_RESULT F_API setLoopPoints (unsigned int loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int loopend, FMOD_TIMEUNIT loopendtype); + FMOD_RESULT F_API getLoopPoints (unsigned int *loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int *loopend, FMOD_TIMEUNIT loopendtype); + + // For MOD/S3M/XM/IT/MID sequenced formats only. + FMOD_RESULT F_API getMusicNumChannels (int *numchannels); + FMOD_RESULT F_API setMusicChannelVolume (int channel, float volume); + FMOD_RESULT F_API getMusicChannelVolume (int channel, float *volume); + FMOD_RESULT F_API setMusicSpeed (float speed); + FMOD_RESULT F_API getMusicSpeed (float *speed); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + /* + 'Channel' API. + */ + class Channel + { + private: + + Channel(); /* Constructor made private so user cannot statically instance a Channel class. + Appropriate Channel creation or retrieval function must be used. */ + public: + + FMOD_RESULT F_API getSystemObject (System **system); + + FMOD_RESULT F_API stop (); + FMOD_RESULT F_API setPaused (bool paused); + FMOD_RESULT F_API getPaused (bool *paused); + FMOD_RESULT F_API setVolume (float volume); + FMOD_RESULT F_API getVolume (float *volume); + FMOD_RESULT F_API setFrequency (float frequency); + FMOD_RESULT F_API getFrequency (float *frequency); + FMOD_RESULT F_API setPan (float pan); + FMOD_RESULT F_API getPan (float *pan); + FMOD_RESULT F_API setDelay (FMOD_DELAYTYPE delaytype, unsigned int delayhi, unsigned int delaylo); + FMOD_RESULT F_API getDelay (FMOD_DELAYTYPE delaytype, unsigned int *delayhi, unsigned int *delaylo); + FMOD_RESULT F_API setSpeakerMix (float frontleft, float frontright, float center, float lfe, float backleft, float backright, float sideleft, float sideright); + FMOD_RESULT F_API getSpeakerMix (float *frontleft, float *frontright, float *center, float *lfe, float *backleft, float *backright, float *sideleft, float *sideright); + FMOD_RESULT F_API setSpeakerLevels (FMOD_SPEAKER speaker, float *levels, int numlevels); + FMOD_RESULT F_API getSpeakerLevels (FMOD_SPEAKER speaker, float *levels, int numlevels); + FMOD_RESULT F_API setInputChannelMix (float *levels, int numlevels); + FMOD_RESULT F_API getInputChannelMix (float *levels, int numlevels); + FMOD_RESULT F_API setMute (bool mute); + FMOD_RESULT F_API getMute (bool *mute); + FMOD_RESULT F_API setPriority (int priority); + FMOD_RESULT F_API getPriority (int *priority); + FMOD_RESULT F_API setPosition (unsigned int position, FMOD_TIMEUNIT postype); + FMOD_RESULT F_API getPosition (unsigned int *position, FMOD_TIMEUNIT postype); + FMOD_RESULT F_API setReverbProperties (const FMOD_REVERB_CHANNELPROPERTIES *prop); + FMOD_RESULT F_API getReverbProperties (FMOD_REVERB_CHANNELPROPERTIES *prop); + FMOD_RESULT F_API setLowPassGain (float gain); + FMOD_RESULT F_API getLowPassGain (float *gain); + + FMOD_RESULT F_API setChannelGroup (ChannelGroup *channelgroup); + FMOD_RESULT F_API getChannelGroup (ChannelGroup **channelgroup); + FMOD_RESULT F_API setCallback (FMOD_CHANNEL_CALLBACK callback); + + // 3D functionality. + FMOD_RESULT F_API set3DAttributes (const FMOD_VECTOR *pos, const FMOD_VECTOR *vel); + FMOD_RESULT F_API get3DAttributes (FMOD_VECTOR *pos, FMOD_VECTOR *vel); + FMOD_RESULT F_API set3DMinMaxDistance (float mindistance, float maxdistance); + FMOD_RESULT F_API get3DMinMaxDistance (float *mindistance, float *maxdistance); + FMOD_RESULT F_API set3DConeSettings (float insideconeangle, float outsideconeangle, float outsidevolume); + FMOD_RESULT F_API get3DConeSettings (float *insideconeangle, float *outsideconeangle, float *outsidevolume); + FMOD_RESULT F_API set3DConeOrientation (FMOD_VECTOR *orientation); + FMOD_RESULT F_API get3DConeOrientation (FMOD_VECTOR *orientation); + FMOD_RESULT F_API set3DCustomRolloff (FMOD_VECTOR *points, int numpoints); + FMOD_RESULT F_API get3DCustomRolloff (FMOD_VECTOR **points, int *numpoints); + FMOD_RESULT F_API set3DOcclusion (float directocclusion, float reverbocclusion); + FMOD_RESULT F_API get3DOcclusion (float *directocclusion, float *reverbocclusion); + FMOD_RESULT F_API set3DSpread (float angle); + FMOD_RESULT F_API get3DSpread (float *angle); + FMOD_RESULT F_API set3DPanLevel (float level); + FMOD_RESULT F_API get3DPanLevel (float *level); + FMOD_RESULT F_API set3DDopplerLevel (float level); + FMOD_RESULT F_API get3DDopplerLevel (float *level); + FMOD_RESULT F_API set3DDistanceFilter (bool custom, float customLevel, float centerFreq); + FMOD_RESULT F_API get3DDistanceFilter (bool *custom, float *customLevel, float *centerFreq); + + // DSP functionality only for channels playing sounds created with FMOD_SOFTWARE. + FMOD_RESULT F_API getDSPHead (DSP **dsp); + FMOD_RESULT F_API addDSP (DSP *dsp, DSPConnection **connection); + + // Information only functions. + FMOD_RESULT F_API isPlaying (bool *isplaying); + FMOD_RESULT F_API isVirtual (bool *isvirtual); + FMOD_RESULT F_API getAudibility (float *audibility); + FMOD_RESULT F_API getCurrentSound (Sound **sound); + FMOD_RESULT F_API getSpectrum (float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); + FMOD_RESULT F_API getWaveData (float *wavearray, int numvalues, int channeloffset); + FMOD_RESULT F_API getIndex (int *index); + + // Functions also found in Sound class but here they can be set per channel. + FMOD_RESULT F_API setMode (FMOD_MODE mode); + FMOD_RESULT F_API getMode (FMOD_MODE *mode); + FMOD_RESULT F_API setLoopCount (int loopcount); + FMOD_RESULT F_API getLoopCount (int *loopcount); + FMOD_RESULT F_API setLoopPoints (unsigned int loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int loopend, FMOD_TIMEUNIT loopendtype); + FMOD_RESULT F_API getLoopPoints (unsigned int *loopstart, FMOD_TIMEUNIT loopstarttype, unsigned int *loopend, FMOD_TIMEUNIT loopendtype); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + /* + 'ChannelGroup' API + */ + class ChannelGroup + { + private: + + ChannelGroup(); /* Constructor made private so user cannot statically instance a ChannelGroup class. + Appropriate ChannelGroup creation or retrieval function must be used. */ + public: + + FMOD_RESULT F_API release (); + FMOD_RESULT F_API getSystemObject (System **system); + + // Channelgroup scale values. (changes attributes relative to the channels, doesn't overwrite them) + FMOD_RESULT F_API setVolume (float volume); + FMOD_RESULT F_API getVolume (float *volume); + FMOD_RESULT F_API setPitch (float pitch); + FMOD_RESULT F_API getPitch (float *pitch); + FMOD_RESULT F_API set3DOcclusion (float directocclusion, float reverbocclusion); + FMOD_RESULT F_API get3DOcclusion (float *directocclusion, float *reverbocclusion); + FMOD_RESULT F_API setPaused (bool paused); + FMOD_RESULT F_API getPaused (bool *paused); + FMOD_RESULT F_API setMute (bool mute); + FMOD_RESULT F_API getMute (bool *mute); + + // Channelgroup override values. (recursively overwrites whatever settings the channels had) + FMOD_RESULT F_API stop (); + FMOD_RESULT F_API overrideVolume (float volume); + FMOD_RESULT F_API overrideFrequency (float frequency); + FMOD_RESULT F_API overridePan (float pan); + FMOD_RESULT F_API overrideReverbProperties(const FMOD_REVERB_CHANNELPROPERTIES *prop); + FMOD_RESULT F_API override3DAttributes (const FMOD_VECTOR *pos, const FMOD_VECTOR *vel); + FMOD_RESULT F_API overrideSpeakerMix (float frontleft, float frontright, float center, float lfe, float backleft, float backright, float sideleft, float sideright); + + // Nested channel groups. + FMOD_RESULT F_API addGroup (ChannelGroup *group); + FMOD_RESULT F_API getNumGroups (int *numgroups); + FMOD_RESULT F_API getGroup (int index, ChannelGroup **group); + FMOD_RESULT F_API getParentGroup (ChannelGroup **group); + + // DSP functionality only for channel groups playing sounds created with FMOD_SOFTWARE. + FMOD_RESULT F_API getDSPHead (DSP **dsp); + FMOD_RESULT F_API addDSP (DSP *dsp, DSPConnection **connection); + + // Information only functions. + FMOD_RESULT F_API getName (char *name, int namelen); + FMOD_RESULT F_API getNumChannels (int *numchannels); + FMOD_RESULT F_API getChannel (int index, Channel **channel); + FMOD_RESULT F_API getSpectrum (float *spectrumarray, int numvalues, int channeloffset, FMOD_DSP_FFT_WINDOW windowtype); + FMOD_RESULT F_API getWaveData (float *wavearray, int numvalues, int channeloffset); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + /* + 'SoundGroup' API + */ + class SoundGroup + { + private: + + SoundGroup(); /* Constructor made private so user cannot statically instance a SoundGroup class. + Appropriate SoundGroup creation or retrieval function must be used. */ + public: + + FMOD_RESULT F_API release (); + FMOD_RESULT F_API getSystemObject (System **system); + + // SoundGroup control functions. + FMOD_RESULT F_API setMaxAudible (int maxaudible); + FMOD_RESULT F_API getMaxAudible (int *maxaudible); + FMOD_RESULT F_API setMaxAudibleBehavior (FMOD_SOUNDGROUP_BEHAVIOR behavior); + FMOD_RESULT F_API getMaxAudibleBehavior (FMOD_SOUNDGROUP_BEHAVIOR *behavior); + FMOD_RESULT F_API setMuteFadeSpeed (float speed); + FMOD_RESULT F_API getMuteFadeSpeed (float *speed); + FMOD_RESULT F_API setVolume (float volume); + FMOD_RESULT F_API getVolume (float *volume); + FMOD_RESULT F_API stop (); + + // Information only functions. + FMOD_RESULT F_API getName (char *name, int namelen); + FMOD_RESULT F_API getNumSounds (int *numsounds); + FMOD_RESULT F_API getSound (int index, Sound **sound); + FMOD_RESULT F_API getNumPlaying (int *numplaying); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + /* + 'DSP' API + */ + class DSP + { + private: + + DSP(); /* Constructor made private so user cannot statically instance a DSP class. + Appropriate DSP creation or retrieval function must be used. */ + public: + + FMOD_RESULT F_API release (); + FMOD_RESULT F_API getSystemObject (System **system); + + // Connection / disconnection / input and output enumeration. + FMOD_RESULT F_API addInput (DSP *target, DSPConnection **connection); + FMOD_RESULT F_API disconnectFrom (DSP *target); + FMOD_RESULT F_API disconnectAll (bool inputs, bool outputs); + FMOD_RESULT F_API remove (); + FMOD_RESULT F_API getNumInputs (int *numinputs); + FMOD_RESULT F_API getNumOutputs (int *numoutputs); + FMOD_RESULT F_API getInput (int index, DSP **input, DSPConnection **inputconnection); + FMOD_RESULT F_API getOutput (int index, DSP **output, DSPConnection **outputconnection); + + // DSP unit control. + FMOD_RESULT F_API setActive (bool active); + FMOD_RESULT F_API getActive (bool *active); + FMOD_RESULT F_API setBypass (bool bypass); + FMOD_RESULT F_API getBypass (bool *bypass); + FMOD_RESULT F_API setSpeakerActive (FMOD_SPEAKER speaker, bool active); + FMOD_RESULT F_API getSpeakerActive (FMOD_SPEAKER speaker, bool *active); + FMOD_RESULT F_API reset (); + + + // DSP parameter control. + FMOD_RESULT F_API setParameter (int index, float value); + FMOD_RESULT F_API getParameter (int index, float *value, char *valuestr, int valuestrlen); + FMOD_RESULT F_API getNumParameters (int *numparams); + FMOD_RESULT F_API getParameterInfo (int index, char *name, char *label, char *description, int descriptionlen, float *min, float *max); + FMOD_RESULT F_API showConfigDialog (void *hwnd, bool show); + + // DSP attributes. + FMOD_RESULT F_API getInfo (char *name, unsigned int *version, int *channels, int *configwidth, int *configheight); + FMOD_RESULT F_API getType (FMOD_DSP_TYPE *type); + FMOD_RESULT F_API setDefaults (float frequency, float volume, float pan, int priority); + FMOD_RESULT F_API getDefaults (float *frequency, float *volume, float *pan, int *priority); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + + /* + 'DSPConnection' API + */ + class DSPConnection + { + private: + + DSPConnection(); /* Constructor made private so user cannot statically instance a DSPConnection class. + Appropriate DSPConnection creation or retrieval function must be used. */ + + public: + + FMOD_RESULT F_API getInput (DSP **input); + FMOD_RESULT F_API getOutput (DSP **output); + FMOD_RESULT F_API setMix (float volume); + FMOD_RESULT F_API getMix (float *volume); + FMOD_RESULT F_API setLevels (FMOD_SPEAKER speaker, float *levels, int numlevels); + FMOD_RESULT F_API getLevels (FMOD_SPEAKER speaker, float *levels, int numlevels); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + + /* + 'Geometry' API + */ + class Geometry + { + private: + + Geometry(); /* Constructor made private so user cannot statically instance a Geometry class. + Appropriate Geometry creation or retrieval function must be used. */ + + public: + + FMOD_RESULT F_API release (); + + // Polygon manipulation. + FMOD_RESULT F_API addPolygon (float directocclusion, float reverbocclusion, bool doublesided, int numvertices, const FMOD_VECTOR *vertices, int *polygonindex); + FMOD_RESULT F_API getNumPolygons (int *numpolygons); + FMOD_RESULT F_API getMaxPolygons (int *maxpolygons, int *maxvertices); + FMOD_RESULT F_API getPolygonNumVertices (int index, int *numvertices); + FMOD_RESULT F_API setPolygonVertex (int index, int vertexindex, const FMOD_VECTOR *vertex); + FMOD_RESULT F_API getPolygonVertex (int index, int vertexindex, FMOD_VECTOR *vertex); + FMOD_RESULT F_API setPolygonAttributes (int index, float directocclusion, float reverbocclusion, bool doublesided); + FMOD_RESULT F_API getPolygonAttributes (int index, float *directocclusion, float *reverbocclusion, bool *doublesided); + + // Object manipulation. + FMOD_RESULT F_API setActive (bool active); + FMOD_RESULT F_API getActive (bool *active); + FMOD_RESULT F_API setRotation (const FMOD_VECTOR *forward, const FMOD_VECTOR *up); + FMOD_RESULT F_API getRotation (FMOD_VECTOR *forward, FMOD_VECTOR *up); + FMOD_RESULT F_API setPosition (const FMOD_VECTOR *position); + FMOD_RESULT F_API getPosition (FMOD_VECTOR *position); + FMOD_RESULT F_API setScale (const FMOD_VECTOR *scale); + FMOD_RESULT F_API getScale (FMOD_VECTOR *scale); + FMOD_RESULT F_API save (void *data, int *datasize); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; + + + /* + 'Reverb' API + */ + class Reverb + { + private: + + Reverb(); /* Constructor made private so user cannot statically instance a Reverb class. + Appropriate Reverb creation or retrieval function must be used. */ + + public: + + FMOD_RESULT F_API release (); + + // Reverb manipulation. + FMOD_RESULT F_API set3DAttributes (const FMOD_VECTOR *position, float mindistance, float maxdistance); + FMOD_RESULT F_API get3DAttributes (FMOD_VECTOR *position, float *mindistance,float *maxdistance); + FMOD_RESULT F_API setProperties (const FMOD_REVERB_PROPERTIES *properties); + FMOD_RESULT F_API getProperties (FMOD_REVERB_PROPERTIES *properties); + FMOD_RESULT F_API setActive (bool active); + FMOD_RESULT F_API getActive (bool *active); + + // Userdata set/get. + FMOD_RESULT F_API setUserData (void *userdata); + FMOD_RESULT F_API getUserData (void **userdata); + + FMOD_RESULT F_API getMemoryInfo (unsigned int memorybits, unsigned int event_memorybits, unsigned int *memoryused, FMOD_MEMORY_USAGE_DETAILS *memoryused_details); + }; +} + +#endif diff --git a/libs/FMOD/inc/fmod_codec.h b/libs/FMOD/inc/fmod_codec.h new file mode 100644 index 0000000..5ff69ca --- /dev/null +++ b/libs/FMOD/inc/fmod_codec.h @@ -0,0 +1,159 @@ +/* ==================================================================================================== */ +/* FMOD Ex - codec development header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* Use this header if you are wanting to develop your own file format plugin to use with */ +/* FMOD's codec system. With this header you can make your own fileformat plugin that FMOD */ +/* can register and use. See the documentation and examples on how to make a working plugin. */ +/* */ +/* ==================================================================================================== */ + +#ifndef _FMOD_CODEC_H +#define _FMOD_CODEC_H + +typedef struct FMOD_CODEC_STATE FMOD_CODEC_STATE; +typedef struct FMOD_CODEC_WAVEFORMAT FMOD_CODEC_WAVEFORMAT; + +/* + Codec callbacks +*/ +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_OPENCALLBACK) (FMOD_CODEC_STATE *codec_state, FMOD_MODE usermode, FMOD_CREATESOUNDEXINFO *userexinfo); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_CLOSECALLBACK) (FMOD_CODEC_STATE *codec_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_READCALLBACK) (FMOD_CODEC_STATE *codec_state, void *buffer, unsigned int sizebytes, unsigned int *bytesread); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_GETLENGTHCALLBACK) (FMOD_CODEC_STATE *codec_state, unsigned int *length, FMOD_TIMEUNIT lengthtype); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_SETPOSITIONCALLBACK) (FMOD_CODEC_STATE *codec_state, int subsound, unsigned int position, FMOD_TIMEUNIT postype); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_GETPOSITIONCALLBACK) (FMOD_CODEC_STATE *codec_state, unsigned int *position, FMOD_TIMEUNIT postype); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_SOUNDCREATECALLBACK) (FMOD_CODEC_STATE *codec_state, int subsound, FMOD_SOUND *sound); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_METADATACALLBACK) (FMOD_CODEC_STATE *codec_state, FMOD_TAGTYPE tagtype, char *name, void *data, unsigned int datalen, FMOD_TAGDATATYPE datatype, int unique); +typedef FMOD_RESULT (F_CALLBACK *FMOD_CODEC_GETWAVEFORMAT) (FMOD_CODEC_STATE *codec_state, int index, FMOD_CODEC_WAVEFORMAT *waveformat); + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + When creating a codec, declare one of these and provide the relevant callbacks and name for FMOD to use when it opens and reads a file. + + [REMARKS] + Members marked with [in] mean the variable can be written to. The user can set the value. + Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_CODEC_STATE +] +*/ +typedef struct FMOD_CODEC_DESCRIPTION +{ + const char *name; /* [in] Name of the codec. */ + unsigned int version; /* [in] Plugin writer's version number. */ + int defaultasstream; /* [in] Tells FMOD to open the file as a stream when calling System::createSound, and not a static sample. Should normally be 0 (FALSE), because generally the user wants to decode the file into memory when using System::createSound. Mainly used for formats that decode for a very long time, or could use large amounts of memory when decoded. Usually sequenced formats such as mod/s3m/xm/it/midi fall into this category. It is mainly to stop users that don't know what they're doing from getting FMOD_ERR_MEMORY returned from createSound when they should have in fact called System::createStream or used FMOD_CREATESTREAM in System::createSound. */ + FMOD_TIMEUNIT timeunits; /* [in] When setposition codec is called, only these time formats will be passed to the codec. Use bitwise OR to accumulate different types. */ + FMOD_CODEC_OPENCALLBACK open; /* [in] Open callback for the codec for when FMOD tries to open a sound using this codec. */ + FMOD_CODEC_CLOSECALLBACK close; /* [in] Close callback for the codec for when FMOD tries to close a sound using this codec. */ + FMOD_CODEC_READCALLBACK read; /* [in] Read callback for the codec for when FMOD tries to read some data from the file to the destination format (specified in the open callback). */ + FMOD_CODEC_GETLENGTHCALLBACK getlength; /* [in] Callback to return the length of the song in whatever format required when Sound::getLength is called. */ + FMOD_CODEC_SETPOSITIONCALLBACK setposition; /* [in] Seek callback for the codec for when FMOD tries to seek within the file with Channel::setPosition. */ + FMOD_CODEC_GETPOSITIONCALLBACK getposition; /* [in] Tell callback for the codec for when FMOD tries to get the current position within the with Channel::getPosition. */ + FMOD_CODEC_SOUNDCREATECALLBACK soundcreate; /* [in] Sound creation callback for the codec when FMOD finishes creating the sound. (So the codec can set more parameters for the related created sound, ie loop points/mode or 3D attributes etc). */ + FMOD_CODEC_GETWAVEFORMAT getwaveformat; /* [in] Callback to tell FMOD about the waveformat of a particular subsound. This is to save memory, rather than saving 1000 FMOD_CODEC_WAVEFORMAT structures in the codec, the codec might have a more optimal way of storing this information. */ +} FMOD_CODEC_DESCRIPTION; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Set these values marked 'in' to tell fmod what sort of sound to create. + The format, channels and frequency tell FMOD what sort of hardware buffer to create when you initialize your code. So if you wrote an MP3 codec that decoded to stereo 16bit integer PCM, you would specify FMOD_SOUND_FORMAT_PCM16, and channels would be equal to 2. + Members marked as 'out' are set by fmod. Do not modify these. Simply specify 0 for these values when declaring the structure, FMOD will fill in the values for you after creation with the correct function pointers. + + [REMARKS] + Members marked with [in] mean the variable can be written to. The user can set the value. + Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + + An FMOD file might be from disk, memory or network, however the file may be opened by the user. + + 'numsubsounds' should be 0 if the file is a normal single sound stream or sound. Examples of this would be .WAV, .WMA, .MP3, .AIFF. + 'numsubsounds' should be 1+ if the file is a container format, and does not contain wav data itself. Examples of these types would be CDDA (multiple CD tracks), FSB (contains multiple sounds), MIDI/MOD/S3M/XM/IT (contain instruments). + The arrays of format, channel, frequency, length and blockalign should point to arrays of information based on how many subsounds are in the format. If the number of subsounds is 0 then it should point to 1 of each attribute, the same as if the number of subsounds was 1. If subsounds was 100 for example, each pointer should point to an array of 100 of each attribute. + When a sound has 1 or more subsounds, you must play the individual sounds specified by first obtaining the subsound with Sound::getSubSound. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_SOUND_FORMAT + FMOD_FILE_READCALLBACK + FMOD_FILE_SEEKCALLBACK + FMOD_CODEC_METADATACALLBACK + Sound::getSubSound + Sound::getNumSubSounds +] +*/ +struct FMOD_CODEC_WAVEFORMAT +{ + char name[256]; /* [in] Name of sound.*/ + FMOD_SOUND_FORMAT format; /* [in] Format for (decompressed) codec output, ie FMOD_SOUND_FORMAT_PCM8, FMOD_SOUND_FORMAT_PCM16.*/ + int channels; /* [in] Number of channels used by codec, ie mono = 1, stereo = 2. */ + int frequency; /* [in] Default frequency in hz of the codec, ie 44100. */ + unsigned int lengthbytes; /* [in] Length in bytes of the source data. */ + unsigned int lengthpcm; /* [in] Length in decompressed, PCM samples of the file, ie length in seconds * frequency. Used for Sound::getLength and for memory allocation of static decompressed sample data. */ + int blockalign; /* [in] Blockalign in decompressed, PCM samples of the optimal decode chunk size for this format. The codec read callback will be called in multiples of this value. */ + int loopstart; /* [in] Loopstart in decompressed, PCM samples of file. */ + int loopend; /* [in] Loopend in decompressed, PCM samples of file. */ + FMOD_MODE mode; /* [in] Mode to determine whether the sound should by default load as looping, non looping, 2d or 3d. */ + unsigned int channelmask; /* [in] Microsoft speaker channel mask, as defined for WAVEFORMATEXTENSIBLE and is found in ksmedia.h. Leave at 0 to play in natural speaker order. */ +}; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Codec plugin structure that is passed into each callback. + + Set these numsubsounds and waveformat members when called in FMOD_CODEC_OPENCALLBACK to tell fmod what sort of sound to create. + + The format, channels and frequency tell FMOD what sort of hardware buffer to create when you initialize your code. So if you wrote an MP3 codec that decoded to stereo 16bit integer PCM, you would specify FMOD_SOUND_FORMAT_PCM16, and channels would be equal to 2. + + [REMARKS] + Members marked with [in] mean the variable can be written to. The user can set the value. + Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + + An FMOD file might be from disk, memory or internet, however the file may be opened by the user. + + 'numsubsounds' should be 0 if the file is a normal single sound stream or sound. Examples of this would be .WAV, .WMA, .MP3, .AIFF. + 'numsubsounds' should be 1+ if the file is a container format, and does not contain wav data itself. Examples of these types would be CDDA (multiple CD tracks), FSB (contains multiple sounds), DLS (contain instruments). + The arrays of format, channel, frequency, length and blockalign should point to arrays of information based on how many subsounds are in the format. If the number of subsounds is 0 then it should point to 1 of each attribute, the same as if the number of subsounds was 1. If subsounds was 100 for example, each pointer should point to an array of 100 of each attribute. + When a sound has 1 or more subsounds, you must play the individual sounds specified by first obtaining the subsound with Sound::getSubSound. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_SOUND_FORMAT + FMOD_FILE_READCALLBACK + FMOD_FILE_SEEKCALLBACK + FMOD_CODEC_METADATACALLBACK + Sound::getSubSound + Sound::getNumSubSounds +] +*/ +struct FMOD_CODEC_STATE +{ + int numsubsounds; /* [in] Number of 'subsounds' in this sound. Anything other than 0 makes it a 'container' format (ie CDDA/DLS/FSB etc which contain 1 or more su bsounds). For most normal, single sound codec such as WAV/AIFF/MP3, this should be 0 as they are not a container for subsounds, they are the sound by itself. */ + FMOD_CODEC_WAVEFORMAT *waveformat; /* [in] Pointer to an array of format structures containing information about each sample. Can be 0 or NULL if FMOD_CODEC_GETWAVEFORMAT callback is preferred. The number of entries here must equal the number of subsounds defined in the subsound parameter. If numsubsounds = 0 then there should be 1 instance of this structure. */ + void *plugindata; /* [in] Plugin writer created data the codec author wants to attach to this object. */ + + void *filehandle; /* [out] This will return an internal FMOD file handle to use with the callbacks provided. */ + unsigned int filesize; /* [out] This will contain the size of the file in bytes. */ + FMOD_FILE_READCALLBACK fileread; /* [out] This will return a callable FMOD file function to use from codec. */ + FMOD_FILE_SEEKCALLBACK fileseek; /* [out] This will return a callable FMOD file function to use from codec. */ + FMOD_CODEC_METADATACALLBACK metadata; /* [out] This will return a callable FMOD metadata function to use from codec. */ +}; + +#endif + + diff --git a/libs/FMOD/inc/fmod_dsp.h b/libs/FMOD/inc/fmod_dsp.h new file mode 100644 index 0000000..1638a9e --- /dev/null +++ b/libs/FMOD/inc/fmod_dsp.h @@ -0,0 +1,745 @@ +/* ========================================================================================== */ +/* FMOD Ex - DSP header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* Use this header if you are interested in delving deeper into the FMOD software mixing / */ +/* DSP engine. In this header you can find parameter structures for FMOD system reigstered */ +/* DSP effects and generators. */ +/* Also use this header if you are wanting to develop your own DSP plugin to use with FMOD's */ +/* dsp system. With this header you can make your own DSP plugin that FMOD can */ +/* register and use. See the documentation and examples on how to make a working plugin. */ +/* */ +/* ========================================================================================== */ + +#ifndef _FMOD_DSP_H +#define _FMOD_DSP_H + +typedef struct FMOD_DSP_STATE FMOD_DSP_STATE; + +/* + DSP callbacks +*/ +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_CREATECALLBACK) (FMOD_DSP_STATE *dsp_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_RELEASECALLBACK) (FMOD_DSP_STATE *dsp_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_RESETCALLBACK) (FMOD_DSP_STATE *dsp_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_READCALLBACK) (FMOD_DSP_STATE *dsp_state, float *inbuffer, float *outbuffer, unsigned int length, int inchannels, int outchannels); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_SETPOSITIONCALLBACK)(FMOD_DSP_STATE *dsp_state, unsigned int pos); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_SETPARAMCALLBACK) (FMOD_DSP_STATE *dsp_state, int index, float value); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_GETPARAMCALLBACK) (FMOD_DSP_STATE *dsp_state, int index, float *value, char *valuestr); +typedef FMOD_RESULT (F_CALLBACK *FMOD_DSP_DIALOGCALLBACK) (FMOD_DSP_STATE *dsp_state, void *hwnd, int show); + +/* +[ENUM] +[ + [DESCRIPTION] + These definitions can be used for creating FMOD defined special effects or DSP units. + + [REMARKS] + To get them to be active, first create the unit, then add it somewhere into the DSP network, either at the front of the network near the soundcard unit to affect the global output (by using System::getDSPHead), or on a single channel (using Channel::getDSPHead). + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createDSPByType +] +*/ +typedef enum +{ + FMOD_DSP_TYPE_UNKNOWN, /* This unit was created via a non FMOD plugin so has an unknown purpose. */ + FMOD_DSP_TYPE_MIXER, /* This unit does nothing but take inputs and mix them together then feed the result to the soundcard unit. */ + FMOD_DSP_TYPE_OSCILLATOR, /* This unit generates sine/square/saw/triangle or noise tones. */ + FMOD_DSP_TYPE_LOWPASS, /* This unit filters sound using a high quality, resonant lowpass filter algorithm but consumes more CPU time. */ + FMOD_DSP_TYPE_ITLOWPASS, /* This unit filters sound using a resonant lowpass filter algorithm that is used in Impulse Tracker, but with limited cutoff range (0 to 8060hz). */ + FMOD_DSP_TYPE_HIGHPASS, /* This unit filters sound using a resonant highpass filter algorithm. */ + FMOD_DSP_TYPE_ECHO, /* This unit produces an echo on the sound and fades out at the desired rate. */ + FMOD_DSP_TYPE_FLANGE, /* This unit produces a flange effect on the sound. */ + FMOD_DSP_TYPE_DISTORTION, /* This unit distorts the sound. */ + FMOD_DSP_TYPE_NORMALIZE, /* This unit normalizes or amplifies the sound to a certain level. */ + FMOD_DSP_TYPE_PARAMEQ, /* This unit attenuates or amplifies a selected frequency range. */ + FMOD_DSP_TYPE_PITCHSHIFT, /* This unit bends the pitch of a sound without changing the speed of playback. */ + FMOD_DSP_TYPE_CHORUS, /* This unit produces a chorus effect on the sound. */ + FMOD_DSP_TYPE_VSTPLUGIN, /* This unit allows the use of Steinberg VST plugins */ + FMOD_DSP_TYPE_WINAMPPLUGIN, /* This unit allows the use of Nullsoft Winamp plugins */ + FMOD_DSP_TYPE_ITECHO, /* This unit produces an echo on the sound and fades out at the desired rate as is used in Impulse Tracker. */ + FMOD_DSP_TYPE_COMPRESSOR, /* This unit implements dynamic compression (linked multichannel, wideband) */ + FMOD_DSP_TYPE_SFXREVERB, /* This unit implements SFX reverb */ + FMOD_DSP_TYPE_LOWPASS_SIMPLE, /* This unit filters sound using a simple lowpass with no resonance, but has flexible cutoff and is fast. */ + FMOD_DSP_TYPE_DELAY, /* This unit produces different delays on individual channels of the sound. */ + FMOD_DSP_TYPE_TREMOLO, /* This unit produces a tremolo / chopper effect on the sound. */ + FMOD_DSP_TYPE_LADSPAPLUGIN, /* This unit allows the use of LADSPA standard plugins. */ + FMOD_DSP_TYPE_HIGHPASS_SIMPLE, /* This unit filters sound using a simple highpass with no resonance, but has flexible cutoff and is fast. */ + FMOD_DSP_TYPE_HARDWARE = 1000, /* Offset that platform specific FMOD_HARDWARE DSPs will start at. */ + FMOD_DSP_TYPE_FORCEINT = 65536 /* Makes sure this enum is signed 32bit. */ +} FMOD_DSP_TYPE; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure to define a parameter for a DSP unit. + + [REMARKS] + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createDSP + DSP::setParameter +] +*/ +typedef struct FMOD_DSP_PARAMETERDESC +{ + float min; /* [w] Minimum value of the parameter (ie 100.0). */ + float max; /* [w] Maximum value of the parameter (ie 22050.0). */ + float defaultval; /* [w] Default value of parameter. */ + char name[16]; /* [w] Name of the parameter to be displayed (ie "Cutoff frequency"). */ + char label[16]; /* [w] Short string to be put next to value to denote the unit type (ie "hz"). */ + const char *description; /* [w] Description of the parameter to be displayed as a help item / tooltip for this parameter. */ +} FMOD_DSP_PARAMETERDESC; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + When creating a DSP unit, declare one of these and provide the relevant callbacks and name for FMOD to use when it creates and uses a DSP unit of this type. + + [REMARKS] + Some members of this structure are referenced directly inside FMOD so the structure should be allocated statically or at least remain in memory for the lifetime of the system. + + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + There are 2 different ways to change a parameter in this architecture. + One is to use DSP::setParameter / DSP::getParameter. This is platform independant and is dynamic, so new unknown plugins can have their parameters enumerated and used. + The other is to use DSP::showConfigDialog. This is platform specific and requires a GUI, and will display a dialog box to configure the plugin. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::createDSP + FMOD_DSP_STATE +] +*/ +typedef struct FMOD_DSP_DESCRIPTION +{ + char name[32]; /* [w] Name of the unit to be displayed in the network. */ + unsigned int version; /* [w] Plugin writer's version number. */ + int channels; /* [w] Number of channels. Use 0 to process whatever number of channels is currently in the network. >0 would be mostly used if the unit is a unit that only generates sound. */ + FMOD_DSP_CREATECALLBACK create; /* [w] Create callback. This is called when DSP unit is created. Can be null. */ + FMOD_DSP_RELEASECALLBACK release; /* [w] Release callback. This is called just before the unit is freed so the user can do any cleanup needed for the unit. Can be null. */ + FMOD_DSP_RESETCALLBACK reset; /* [w] Reset callback. This is called by the user to reset any history buffers that may need resetting for a filter, when it is to be used or re-used for the first time to its initial clean state. Use to avoid clicks or artifacts. */ + FMOD_DSP_READCALLBACK read; /* [w] Read callback. Processing is done here. Can be null. */ + FMOD_DSP_SETPOSITIONCALLBACK setposition; /* [w] Set position callback. This is called if the unit wants to update its position info but not process data, or reset a cursor position internally if it is reading data from a certain source. Can be null. */ + + int numparameters; /* [w] Number of parameters used in this filter. The user finds this with DSP::getNumParameters */ + FMOD_DSP_PARAMETERDESC *paramdesc; /* [w] Variable number of parameter structures. */ + FMOD_DSP_SETPARAMCALLBACK setparameter; /* [w] This is called when the user calls DSP::setParameter. Can be null. */ + FMOD_DSP_GETPARAMCALLBACK getparameter; /* [w] This is called when the user calls DSP::getParameter. Can be null. */ + FMOD_DSP_DIALOGCALLBACK config; /* [w] This is called when the user calls DSP::showConfigDialog. Can be used to display a dialog to configure the filter. Can be null. */ + int configwidth; /* [w] Width of config dialog graphic if there is one. 0 otherwise.*/ + int configheight; /* [w] Height of config dialog graphic if there is one. 0 otherwise.*/ + void *userdata; /* [w] Optional. Specify 0 to ignore. This is user data to be attached to the DSP unit during creation. Access via DSP::getUserData. */ +} FMOD_DSP_DESCRIPTION; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + DSP plugin structure that is passed into each callback. + + [REMARKS] + Members marked with [r] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + Members marked with [w] mean the variable can be written to. The user can set the value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_DSP_DESCRIPTION +] +*/ +struct FMOD_DSP_STATE +{ + FMOD_DSP *instance; /* [r] Handle to the DSP hand the user created. Not to be modified. C++ users cast to FMOD::DSP to use. */ + void *plugindata; /* [w] Plugin writer created data the output author wants to attach to this object. */ + unsigned short speakermask; /* [w] Specifies which speakers the DSP effect is active on */ +}; + + +/* + =================================================================================================== + + FMOD built in effect parameters. + Use DSP::setParameter with these enums for the 'index' parameter. + + =================================================================================================== +*/ + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_OSCILLATOR filter. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_OSCILLATOR_TYPE, /* Waveform type. 0 = sine. 1 = square. 2 = sawup. 3 = sawdown. 4 = triangle. 5 = noise. */ + FMOD_DSP_OSCILLATOR_RATE /* Frequency of the sinewave in hz. 1.0 to 22000.0. Default = 220.0. */ +} FMOD_DSP_OSCILLATOR; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_LOWPASS filter. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_LOWPASS_CUTOFF, /* Lowpass cutoff frequency in hz. 10.0 to 22000.0. Default = 5000.0. */ + FMOD_DSP_LOWPASS_RESONANCE /* Lowpass resonance Q value. 1.0 to 10.0. Default = 1.0. */ +} FMOD_DSP_LOWPASS; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_ITLOWPASS filter. + This is different to the default FMOD_DSP_TYPE_ITLOWPASS filter in that it uses a different quality algorithm and is + the filter used to produce the correct sounding playback in .IT files. + FMOD Ex's .IT playback uses this filter. + + [REMARKS] + Note! This filter actually has a limited cutoff frequency below the specified maximum, due to its limited design, + so for a more open range filter use FMOD_DSP_LOWPASS or if you don't mind not having resonance, + FMOD_DSP_LOWPASS_SIMPLE. + The effective maximum cutoff is about 8060hz. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_ITLOWPASS_CUTOFF, /* Lowpass cutoff frequency in hz. 1.0 to 22000.0. Default = 5000.0/ */ + FMOD_DSP_ITLOWPASS_RESONANCE /* Lowpass resonance Q value. 0.0 to 127.0. Default = 1.0. */ +} FMOD_DSP_ITLOWPASS; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_HIGHPASS filter. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_HIGHPASS_CUTOFF, /* Highpass cutoff frequency in hz. 1.0 to output 22000.0. Default = 5000.0. */ + FMOD_DSP_HIGHPASS_RESONANCE /* Highpass resonance Q value. 1.0 to 10.0. Default = 1.0. */ +} FMOD_DSP_HIGHPASS; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_ECHO filter. + + [REMARKS] + Note. Every time the delay is changed, the plugin re-allocates the echo buffer. This means the echo will dissapear at that time while it refills its new buffer. + Larger echo delays result in larger amounts of memory allocated. + + 'maxchannels' also dictates the amount of memory allocated. By default, the maxchannels value is 0. If FMOD is set to stereo, the echo unit will allocate enough memory for 2 channels. If it is 5.1, it will allocate enough memory for a 6 channel echo, etc. + If the echo effect is only ever applied to the global mix (ie it was added with System::addDSP), then 0 is the value to set as it will be enough to handle all speaker modes. + When the echo is added to a channel (ie Channel::addDSP) then the channel count that comes in could be anything from 1 to 8 possibly. It is only in this case where you might want to increase the channel count above the output's channel count. + If a channel echo is set to a lower number than the sound's channel count that is coming in, it will not echo the sound. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_ECHO_DELAY, /* Echo delay in ms. 10 to 5000. Default = 500. */ + FMOD_DSP_ECHO_DECAYRATIO, /* Echo decay per delay. 0 to 1. 1.0 = No decay, 0.0 = total decay (ie simple 1 line delay). Default = 0.5. */ + FMOD_DSP_ECHO_MAXCHANNELS, /* Maximum channels supported. 0 to 16. 0 = same as fmod's default output polyphony, 1 = mono, 2 = stereo etc. See remarks for more. Default = 0. It is suggested to leave at 0! */ + FMOD_DSP_ECHO_DRYMIX, /* Volume of original signal to pass to output. 0.0 to 1.0. Default = 1.0. */ + FMOD_DSP_ECHO_WETMIX /* Volume of echo signal to pass to output. 0.0 to 1.0. Default = 1.0. */ +} FMOD_DSP_ECHO; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_DELAY filter. + + [REMARKS] + Note. Every time MaxDelay is changed, the plugin re-allocates the delay buffer. This means the delay will dissapear at that time while it refills its new buffer. + A larger MaxDelay results in larger amounts of memory allocated. + Channel delays above MaxDelay will be clipped to MaxDelay and the delay buffer will not be resized. + + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_DELAY_CH0, /* Channel #0 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH1, /* Channel #1 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH2, /* Channel #2 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH3, /* Channel #3 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH4, /* Channel #4 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH5, /* Channel #5 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH6, /* Channel #6 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH7, /* Channel #7 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH8, /* Channel #8 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH9, /* Channel #9 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH10, /* Channel #10 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH11, /* Channel #11 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH12, /* Channel #12 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH13, /* Channel #13 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH14, /* Channel #14 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_CH15, /* Channel #15 Delay in ms. 0 to 10000. Default = 0. */ + FMOD_DSP_DELAY_MAXDELAY /* Maximum delay in ms. 0 to 10000. Default = 10. */ +} FMOD_DSP_DELAY; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_FLANGE filter. + + [REMARKS] + Flange is an effect where the signal is played twice at the same time, and one copy slides back and forth creating a whooshing or flanging effect. + As there are 2 copies of the same signal, by default each signal is given 50% mix, so that the total is not louder than the original unaffected signal. + + Flange depth is a percentage of a 10ms shift from the original signal. Anything above 10ms is not considered flange because to the ear it begins to 'echo' so 10ms is the highest value possible. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_FLANGE_DRYMIX, /* Volume of original signal to pass to output. 0.0 to 1.0. Default = 0.45. */ + FMOD_DSP_FLANGE_WETMIX, /* Volume of flange signal to pass to output. 0.0 to 1.0. Default = 0.55. */ + FMOD_DSP_FLANGE_DEPTH, /* Flange depth (percentage of 40ms delay). 0.01 to 1.0. Default = 1.0. */ + FMOD_DSP_FLANGE_RATE /* Flange speed in hz. 0.0 to 20.0. Default = 0.1. */ +} FMOD_DSP_FLANGE; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_TREMOLO filter. + + [REMARKS] + The tremolo effect varies the amplitude of a sound. Depending on the settings, this unit can produce a tremolo, chopper or auto-pan effect. + + The shape of the LFO (low freq. oscillator) can morphed between sine, triangle and sawtooth waves using the FMOD_DSP_TREMOLO_SHAPE and FMOD_DSP_TREMOLO_SKEW parameters. + FMOD_DSP_TREMOLO_DUTY and FMOD_DSP_TREMOLO_SQUARE are useful for a chopper-type effect where the first controls the on-time duration and second controls the flatness of the envelope. + FMOD_DSP_TREMOLO_SPREAD varies the LFO phase between channels to get an auto-pan effect. This works best with a sine shape LFO. + The LFO can be synchronized using the FMOD_DSP_TREMOLO_PHASE parameter which sets its instantaneous phase. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_TREMOLO_FREQUENCY, /* LFO frequency in Hz. 0.1 to 20. Default = 4. */ + FMOD_DSP_TREMOLO_DEPTH, /* Tremolo depth. 0 to 1. Default = 0. */ + FMOD_DSP_TREMOLO_SHAPE, /* LFO shape morph between triangle and sine. 0 to 1. Default = 0. */ + FMOD_DSP_TREMOLO_SKEW, /* Time-skewing of LFO cycle. -1 to 1. Default = 0. */ + FMOD_DSP_TREMOLO_DUTY, /* LFO on-time. 0 to 1. Default = 0.5. */ + FMOD_DSP_TREMOLO_SQUARE, /* Flatness of the LFO shape. 0 to 1. Default = 0. */ + FMOD_DSP_TREMOLO_PHASE, /* Instantaneous LFO phase. 0 to 1. Default = 0. */ + FMOD_DSP_TREMOLO_SPREAD /* Rotation / auto-pan effect. -1 to 1. Default = 0. */ +} FMOD_DSP_TREMOLO; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_DISTORTION filter. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_DISTORTION_LEVEL /* Distortion value. 0.0 to 1.0. Default = 0.5. */ +} FMOD_DSP_DISTORTION; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_NORMALIZE filter. + + [REMARKS] + Normalize amplifies the sound based on the maximum peaks within the signal. + For example if the maximum peaks in the signal were 50% of the bandwidth, it would scale the whole sound by 2. + The lower threshold value makes the normalizer ignores peaks below a certain point, to avoid over-amplification if a loud signal suddenly came in, and also to avoid amplifying to maximum things like background hiss. + + Because FMOD is a realtime audio processor, it doesn't have the luxury of knowing the peak for the whole sound (ie it can't see into the future), so it has to process data as it comes in. + To avoid very sudden changes in volume level based on small samples of new data, fmod fades towards the desired amplification which makes for smooth gain control. The fadetime parameter can control this. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_NORMALIZE_FADETIME, /* Time to ramp the silence to full in ms. 0.0 to 20000.0. Default = 5000.0. */ + FMOD_DSP_NORMALIZE_THRESHHOLD, /* Lower volume range threshold to ignore. 0.0 to 1.0. Default = 0.1. Raise higher to stop amplification of very quiet signals. */ + FMOD_DSP_NORMALIZE_MAXAMP /* Maximum amplification allowed. 1.0 to 100000.0. Default = 20.0. 1.0 = no amplifaction, higher values allow more boost. */ +} FMOD_DSP_NORMALIZE; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_PARAMEQ filter. + + [REMARKS] + Parametric EQ is a bandpass filter that attenuates or amplifies a selected frequency and its neighbouring frequencies. + + To create a multi-band EQ create multiple FMOD_DSP_TYPE_PARAMEQ units and set each unit to different frequencies, for example 1000hz, 2000hz, 4000hz, 8000hz, 16000hz with a range of 1 octave each. + + When a frequency has its gain set to 1.0, the sound will be unaffected and represents the original signal exactly. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_PARAMEQ_CENTER, /* Frequency center. 20.0 to 22000.0. Default = 8000.0. */ + FMOD_DSP_PARAMEQ_BANDWIDTH, /* Octave range around the center frequency to filter. 0.2 to 5.0. Default = 1.0. */ + FMOD_DSP_PARAMEQ_GAIN /* Frequency Gain. 0.05 to 3.0. Default = 1.0. */ +} FMOD_DSP_PARAMEQ; + + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_PITCHSHIFT filter. + + [REMARKS] + This pitch shifting unit can be used to change the pitch of a sound without speeding it up or slowing it down. + It can also be used for time stretching or scaling, for example if the pitch was doubled, and the frequency of the sound was halved, the pitch of the sound would sound correct but it would be twice as slow. + + Warning! This filter is very computationally expensive! Similar to a vocoder, it requires several overlapping FFT and IFFT's to produce smooth output, and can require around 440mhz for 1 stereo 48khz signal using the default settings. + Reducing the signal to mono will half the cpu usage. + Reducing this will lower audio quality, but what settings to use are largely dependant on the sound being played. A noisy polyphonic signal will need higher fft size compared to a speaking voice for example. + + This pitch shifter is based on the pitch shifter code at http://www.dspdimension.com, written by Stephan M. Bernsee. + The original code is COPYRIGHT 1999-2003 Stephan M. Bernsee . + + 'maxchannels' dictates the amount of memory allocated. By default, the maxchannels value is 0. If FMOD is set to stereo, the pitch shift unit will allocate enough memory for 2 channels. If it is 5.1, it will allocate enough memory for a 6 channel pitch shift, etc. + If the pitch shift effect is only ever applied to the global mix (ie it was added with System::addDSP), then 0 is the value to set as it will be enough to handle all speaker modes. + When the pitch shift is added to a channel (ie Channel::addDSP) then the channel count that comes in could be anything from 1 to 8 possibly. It is only in this case where you might want to increase the channel count above the output's channel count. + If a channel pitch shift is set to a lower number than the sound's channel count that is coming in, it will not pitch shift the sound. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_PITCHSHIFT_PITCH, /* Pitch value. 0.5 to 2.0. Default = 1.0. 0.5 = one octave down, 2.0 = one octave up. 1.0 does not change the pitch. */ + FMOD_DSP_PITCHSHIFT_FFTSIZE, /* FFT window size. 256, 512, 1024, 2048, 4096. Default = 1024. Increase this to reduce 'smearing'. This effect is a warbling sound similar to when an mp3 is encoded at very low bitrates. */ + FMOD_DSP_PITCHSHIFT_OVERLAP, /* Removed. Do not use. FMOD now uses 4 overlaps and cannot be changed. */ + FMOD_DSP_PITCHSHIFT_MAXCHANNELS /* Maximum channels supported. 0 to 16. 0 = same as fmod's default output polyphony, 1 = mono, 2 = stereo etc. See remarks for more. Default = 0. It is suggested to leave at 0! */ +} FMOD_DSP_PITCHSHIFT; + + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_CHORUS filter. + + [REMARKS] + Chrous is an effect where the sound is more 'spacious' due to 1 to 3 versions of the sound being played along side the original signal but with the pitch of each copy modulating on a sine wave. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_CHORUS_DRYMIX, /* Volume of original signal to pass to output. 0.0 to 1.0. Default = 0.5. */ + FMOD_DSP_CHORUS_WETMIX1, /* Volume of 1st chorus tap. 0.0 to 1.0. Default = 0.5. */ + FMOD_DSP_CHORUS_WETMIX2, /* Volume of 2nd chorus tap. This tap is 90 degrees out of phase of the first tap. 0.0 to 1.0. Default = 0.5. */ + FMOD_DSP_CHORUS_WETMIX3, /* Volume of 3rd chorus tap. This tap is 90 degrees out of phase of the second tap. 0.0 to 1.0. Default = 0.5. */ + FMOD_DSP_CHORUS_DELAY, /* Chorus delay in ms. 0.1 to 100.0. Default = 40.0 ms. */ + FMOD_DSP_CHORUS_RATE, /* Chorus modulation rate in hz. 0.0 to 20.0. Default = 0.8 hz. */ + FMOD_DSP_CHORUS_DEPTH /* Chorus modulation depth. 0.0 to 1.0. Default = 0.03. */ +} FMOD_DSP_CHORUS; + + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_ITECHO filter. + This is effectively a software based echo filter that emulates the DirectX DMO echo effect. Impulse tracker files can support this, and FMOD will produce the effect on ANY platform, not just those that support DirectX effects! + + [REMARKS] + Note. Every time the delay is changed, the plugin re-allocates the echo buffer. This means the echo will dissapear at that time while it refills its new buffer. + Larger echo delays result in larger amounts of memory allocated. + + As this is a stereo filter made mainly for IT playback, it is targeted for stereo signals. + With mono signals only the FMOD_DSP_ITECHO_LEFTDELAY is used. + For multichannel signals (>2) there will be no echo on those channels. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::SetParameter + DSP::GetParameter + FMOD_DSP_TYPE + System::addDSP +] +*/ +typedef enum +{ + FMOD_DSP_ITECHO_WETDRYMIX, /* Ratio of wet (processed) signal to dry (unprocessed) signal. Must be in the range from 0.0 through 100.0 (all wet). The default value is 50. */ + FMOD_DSP_ITECHO_FEEDBACK, /* Percentage of output fed back into input, in the range from 0.0 through 100.0. The default value is 50. */ + FMOD_DSP_ITECHO_LEFTDELAY, /* Delay for left channel, in milliseconds, in the range from 1.0 through 2000.0. The default value is 500 ms. */ + FMOD_DSP_ITECHO_RIGHTDELAY, /* Delay for right channel, in milliseconds, in the range from 1.0 through 2000.0. The default value is 500 ms. */ + FMOD_DSP_ITECHO_PANDELAY /* Value that specifies whether to swap left and right delays with each successive echo. The default value is zero, meaning no swap. Possible values are defined as 0.0 (equivalent to FALSE) and 1.0 (equivalent to TRUE). CURRENTLY NOT SUPPORTED. */ +} FMOD_DSP_ITECHO; + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_COMPRESSOR unit. + This is a simple linked multichannel software limiter that is uniform across the whole spectrum. + + [REMARKS] + The limiter is not guaranteed to catch every peak above the threshold level, + because it cannot apply gain reduction instantaneously - the time delay is + determined by the attack time. However setting the attack time too short will + distort the sound, so it is a compromise. High level peaks can be avoided by + using a short attack time - but not too short, and setting the threshold a few + decibels below the critical level. + + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::SetParameter + DSP::GetParameter + FMOD_DSP_TYPE + System::addDSP +] +*/ +typedef enum +{ + FMOD_DSP_COMPRESSOR_THRESHOLD, /* Threshold level (dB) in the range from -60 through 0. The default value is 0. */ + FMOD_DSP_COMPRESSOR_ATTACK, /* Gain reduction attack time (milliseconds), in the range from 10 through 200. The default value is 50. */ + FMOD_DSP_COMPRESSOR_RELEASE, /* Gain reduction release time (milliseconds), in the range from 20 through 1000. The default value is 50. */ + FMOD_DSP_COMPRESSOR_GAINMAKEUP /* Make-up gain (dB) applied after limiting, in the range from 0 through 30. The default value is 0. */ +} FMOD_DSP_COMPRESSOR; + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_SFXREVERB unit. + + [REMARKS] + This is a high quality I3DL2 based reverb. + On top of the I3DL2 property set, "Dry Level" is also included to allow the dry mix to be changed. + + These properties can be set with presets in FMOD_REVERB_PRESETS. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::SetParameter + DSP::GetParameter + FMOD_DSP_TYPE + System::addDSP + FMOD_REVERB_PRESETS +] +*/ +typedef enum +{ + FMOD_DSP_SFXREVERB_DRYLEVEL, /* Dry Level : Mix level of dry signal in output in mB. Ranges from -10000.0 to 0.0. Default is 0. */ + FMOD_DSP_SFXREVERB_ROOM, /* Room : Room effect level at low frequencies in mB. Ranges from -10000.0 to 0.0. Default is -10000.0. */ + FMOD_DSP_SFXREVERB_ROOMHF, /* Room HF : Room effect high-frequency level re. low frequency level in mB. Ranges from -10000.0 to 0.0. Default is 0.0. */ + FMOD_DSP_SFXREVERB_DECAYTIME, /* Decay Time : Reverberation decay time at low-frequencies in seconds. Ranges from 0.1 to 20.0. Default is 1.0. */ + FMOD_DSP_SFXREVERB_DECAYHFRATIO, /* Decay HF Ratio : High-frequency to low-frequency decay time ratio. Ranges from 0.1 to 2.0. Default is 0.5. */ + FMOD_DSP_SFXREVERB_REFLECTIONSLEVEL, /* Reflections : Early reflections level relative to room effect in mB. Ranges from -10000.0 to 1000.0. Default is -10000.0. */ + FMOD_DSP_SFXREVERB_REFLECTIONSDELAY, /* Reflect Delay : Delay time of first reflection in seconds. Ranges from 0.0 to 0.3. Default is 0.02. */ + FMOD_DSP_SFXREVERB_REVERBLEVEL, /* Reverb : Late reverberation level relative to room effect in mB. Ranges from -10000.0 to 2000.0. Default is 0.0. */ + FMOD_DSP_SFXREVERB_REVERBDELAY, /* Reverb Delay : Late reverberation delay time relative to first reflection in seconds. Ranges from 0.0 to 0.1. Default is 0.04. */ + FMOD_DSP_SFXREVERB_DIFFUSION, /* Diffusion : Reverberation diffusion (echo density) in percent. Ranges from 0.0 to 100.0. Default is 100.0. */ + FMOD_DSP_SFXREVERB_DENSITY, /* Density : Reverberation density (modal density) in percent. Ranges from 0.0 to 100.0. Default is 100.0. */ + FMOD_DSP_SFXREVERB_HFREFERENCE, /* HF Reference : Reference high frequency in Hz. Ranges from 20.0 to 20000.0. Default is 5000.0. */ + FMOD_DSP_SFXREVERB_ROOMLF, /* Room LF : Room effect low-frequency level in mB. Ranges from -10000.0 to 0.0. Default is 0.0. */ + FMOD_DSP_SFXREVERB_LFREFERENCE /* LF Reference : Reference low-frequency in Hz. Ranges from 20.0 to 1000.0. Default is 250.0. */ +} FMOD_DSP_SFXREVERB; + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_LOWPASS_SIMPLE filter. + This is a very simple low pass filter, based on two single-pole RC time-constant modules. + The emphasis is on speed rather than accuracy, so this should not be used for task requiring critical filtering. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_LOWPASS_SIMPLE_CUTOFF /* Lowpass cutoff frequency in hz. 10.0 to 22000.0. Default = 5000.0 */ +} FMOD_DSP_LOWPASS_SIMPLE; + +/* +[ENUM] +[ + [DESCRIPTION] + Parameter types for the FMOD_DSP_TYPE_HIGHPASS_SIMPLE filter. + This is a very simple single-order high pass filter. + The emphasis is on speed rather than accuracy, so this should not be used for task requiring critical filtering. + + [REMARKS] + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + DSP::setParameter + DSP::getParameter + FMOD_DSP_TYPE +] +*/ +typedef enum +{ + FMOD_DSP_HIGHPASS_SIMPLE_CUTOFF /* Highpass cutoff frequency in hz. 10.0 to 22000.0. Default = 1000.0 */ +} FMOD_DSP_HIGHPASS_SIMPLE; + +#endif + diff --git a/libs/FMOD/inc/fmod_errors.h b/libs/FMOD/inc/fmod_errors.h new file mode 100644 index 0000000..30b01de --- /dev/null +++ b/libs/FMOD/inc/fmod_errors.h @@ -0,0 +1,123 @@ + +/* ============================================================================================== */ +/* FMOD Ex - Error string header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* Use this header if you want to store or display a string version / english explanation of */ +/* the FMOD error codes. */ +/* */ +/* ============================================================================================== */ + +#ifndef _FMOD_ERRORS_H +#define _FMOD_ERRORS_H + +#include "fmod.h" + +#ifdef __GNUC__ +static const char *FMOD_ErrorString(FMOD_RESULT errcode) __attribute__((unused)); +#endif + +static const char *FMOD_ErrorString(FMOD_RESULT errcode) +{ + switch (errcode) + { + case FMOD_ERR_ALREADYLOCKED: return "Tried to call lock a second time before unlock was called. "; + case FMOD_ERR_BADCOMMAND: return "Tried to call a function on a data type that does not allow this type of functionality (ie calling Sound::lock on a streaming sound). "; + case FMOD_ERR_CDDA_DRIVERS: return "Neither NTSCSI nor ASPI could be initialised. "; + case FMOD_ERR_CDDA_INIT: return "An error occurred while initialising the CDDA subsystem. "; + case FMOD_ERR_CDDA_INVALID_DEVICE: return "Couldn't find the specified device. "; + case FMOD_ERR_CDDA_NOAUDIO: return "No audio tracks on the specified disc. "; + case FMOD_ERR_CDDA_NODEVICES: return "No CD/DVD devices were found. "; + case FMOD_ERR_CDDA_NODISC: return "No disc present in the specified drive. "; + case FMOD_ERR_CDDA_READ: return "A CDDA read error occurred. "; + case FMOD_ERR_CHANNEL_ALLOC: return "Error trying to allocate a channel. "; + case FMOD_ERR_CHANNEL_STOLEN: return "The specified channel has been reused to play another sound. "; + case FMOD_ERR_COM: return "A Win32 COM related error occured. COM failed to initialize or a QueryInterface failed meaning a Windows codec or driver was not installed properly. "; + case FMOD_ERR_DMA: return "DMA Failure. See debug output for more information. "; + case FMOD_ERR_DSP_CONNECTION: return "DSP connection error. Connection possibly caused a cyclic dependancy. Or tried to connect a tree too many units deep (more than 128). "; + case FMOD_ERR_DSP_FORMAT: return "DSP Format error. A DSP unit may have attempted to connect to this network with the wrong format. "; + case FMOD_ERR_DSP_NOTFOUND: return "DSP connection error. Couldn't find the DSP unit specified. "; + case FMOD_ERR_DSP_RUNNING: return "DSP error. Cannot perform this operation while the network is in the middle of running. This will most likely happen if a connection or disconnection is attempted in a DSP callback. "; + case FMOD_ERR_DSP_TOOMANYCONNECTIONS: return "DSP connection error. The unit being connected to or disconnected should only have 1 input or output. "; + case FMOD_ERR_EVENT_ALREADY_LOADED: return "The specified project or bank has already been loaded. Having multiple copies of the same project loaded simultaneously is forbidden. "; + case FMOD_ERR_EVENT_FAILED: return "An Event failed to be retrieved, most likely due to 'just fail' being specified as the max playbacks behavior. "; + case FMOD_ERR_EVENT_GUIDCONFLICT: return "An event with the same GUID already exists. "; + case FMOD_ERR_EVENT_INFOONLY: return "Can't execute this command on an EVENT_INFOONLY event. "; + case FMOD_ERR_EVENT_INTERNAL: return "An error occured that wasn't supposed to. See debug log for reason. "; + case FMOD_ERR_EVENT_MAXSTREAMS: return "Event failed because 'Max streams' was hit when FMOD_EVENT_INIT_FAIL_ON_MAXSTREAMS was specified. "; + case FMOD_ERR_EVENT_MISMATCH: return "FSB mismatches the FEV it was compiled with, the stream/sample mode it was meant to be created with was different, or the FEV was built for a different platform. "; + case FMOD_ERR_EVENT_NAMECONFLICT: return "A category with the same name already exists. "; + case FMOD_ERR_EVENT_NEEDSSIMPLE: return "Tried to call a function on a complex event that's only supported by simple events. "; + case FMOD_ERR_EVENT_NOTFOUND: return "The requested event, event group, event category or event property could not be found. "; + case FMOD_ERR_FILE_BAD: return "Error loading file. "; + case FMOD_ERR_FILE_COULDNOTSEEK: return "Couldn't perform seek operation. This is a limitation of the medium (ie netstreams) or the file format. "; + case FMOD_ERR_FILE_DISKEJECTED: return "Media was ejected while reading. "; + case FMOD_ERR_FILE_EOF: return "End of file unexpectedly reached while trying to read essential data (truncated data?). "; + case FMOD_ERR_FILE_NOTFOUND: return "File not found. "; + case FMOD_ERR_FILE_UNWANTED: return "Unwanted file access occured. "; + case FMOD_ERR_FORMAT: return "Unsupported file or audio format. "; + case FMOD_ERR_HTTP: return "A HTTP error occurred. This is a catch-all for HTTP errors not listed elsewhere. "; + case FMOD_ERR_HTTP_ACCESS: return "The specified resource requires authentication or is forbidden. "; + case FMOD_ERR_HTTP_PROXY_AUTH: return "Proxy authentication is required to access the specified resource. "; + case FMOD_ERR_HTTP_SERVER_ERROR: return "A HTTP server error occurred. "; + case FMOD_ERR_HTTP_TIMEOUT: return "The HTTP request timed out. "; + case FMOD_ERR_INITIALIZATION: return "FMOD was not initialized correctly to support this function. "; + case FMOD_ERR_INITIALIZED: return "Cannot call this command after System::init. "; + case FMOD_ERR_INTERNAL: return "An error occured that wasn't supposed to. Contact support. "; + case FMOD_ERR_INVALID_ADDRESS: return "On Xbox 360, this memory address passed to FMOD must be physical, (ie allocated with XPhysicalAlloc.) "; + case FMOD_ERR_INVALID_FLOAT: return "Value passed in was a NaN, Inf or denormalized float. "; + case FMOD_ERR_INVALID_HANDLE: return "An invalid object handle was used. "; + case FMOD_ERR_INVALID_PARAM: return "An invalid parameter was passed to this function. "; + case FMOD_ERR_INVALID_POSITION: return "An invalid seek position was passed to this function. "; + case FMOD_ERR_INVALID_SPEAKER: return "An invalid speaker was passed to this function based on the current speaker mode. "; + case FMOD_ERR_INVALID_SYNCPOINT: return "The syncpoint did not come from this sound handle. "; + case FMOD_ERR_INVALID_VECTOR: return "The vectors passed in are not unit length, or perpendicular. "; + case FMOD_ERR_MAXAUDIBLE: return "Reached maximum audible playback count for this sound's soundgroup. "; + case FMOD_ERR_MEMORY: return "Not enough memory or resources. "; + case FMOD_ERR_MEMORY_CANTPOINT: return "Can't use FMOD_OPENMEMORY_POINT on non PCM source data, or non mp3/xma/adpcm data if FMOD_CREATECOMPRESSEDSAMPLE was used. "; + case FMOD_ERR_MEMORY_SRAM: return "Not enough memory or resources on console sound ram. "; + case FMOD_ERR_MUSIC_NOCALLBACK: return "The music callback is required, but it has not been set. "; + case FMOD_ERR_MUSIC_NOTFOUND: return "The requested music entity could not be found. "; + case FMOD_ERR_MUSIC_UNINITIALIZED: return "Music system is not initialized probably because no music data is loaded. "; + case FMOD_ERR_NEEDS2D: return "Tried to call a command on a 3d sound when the command was meant for 2d sound. "; + case FMOD_ERR_NEEDS3D: return "Tried to call a command on a 2d sound when the command was meant for 3d sound. "; + case FMOD_ERR_NEEDSHARDWARE: return "Tried to use a feature that requires hardware support. (ie trying to play a GCADPCM compressed sound in software on Wii). "; + case FMOD_ERR_NEEDSSOFTWARE: return "Tried to use a feature that requires the software engine. Software engine has either been turned off, or command was executed on a hardware channel which does not support this feature. "; + case FMOD_ERR_NET_CONNECT: return "Couldn't connect to the specified host. "; + case FMOD_ERR_NET_SOCKET_ERROR: return "A socket error occurred. This is a catch-all for socket-related errors not listed elsewhere. "; + case FMOD_ERR_NET_URL: return "The specified URL couldn't be resolved. "; + case FMOD_ERR_NET_WOULD_BLOCK: return "Operation on a non-blocking socket could not complete immediately. "; + case FMOD_ERR_NOTREADY: return "Operation could not be performed because specified sound/DSP connection is not ready. "; + case FMOD_ERR_OUTPUT_ALLOCATED: return "Error initializing output device, but more specifically, the output device is already in use and cannot be reused. "; + case FMOD_ERR_OUTPUT_CREATEBUFFER: return "Error creating hardware sound buffer. "; + case FMOD_ERR_OUTPUT_DRIVERCALL: return "A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. "; + case FMOD_ERR_OUTPUT_ENUMERATION: return "Error enumerating the available driver list. List may be inconsistent due to a recent device addition or removal. "; + case FMOD_ERR_OUTPUT_FORMAT: return "Soundcard does not support the minimum features needed for this soundsystem (16bit stereo output). "; + case FMOD_ERR_OUTPUT_INIT: return "Error initializing output device. "; + case FMOD_ERR_OUTPUT_NOHARDWARE: return "FMOD_HARDWARE was specified but the sound card does not have the resources necessary to play it. "; + case FMOD_ERR_OUTPUT_NOSOFTWARE: return "Attempted to create a software sound but no software channels were specified in System::init. "; + case FMOD_ERR_PAN: return "Panning only works with mono or stereo sound sources. "; + case FMOD_ERR_PLUGIN: return "An unspecified error has been returned from a 3rd party plugin. "; + case FMOD_ERR_PLUGIN_INSTANCES: return "The number of allowed instances of a plugin has been exceeded. "; + case FMOD_ERR_PLUGIN_MISSING: return "A requested output, dsp unit type or codec was not available. "; + case FMOD_ERR_PLUGIN_RESOURCE: return "A resource that the plugin requires cannot be found. (ie the DLS file for MIDI playback or other DLLs that it needs to load) "; + case FMOD_ERR_PRELOADED: return "The specified sound is still in use by the event system, call EventSystem::unloadFSB before trying to release it. "; + case FMOD_ERR_PROGRAMMERSOUND: return "The specified sound is still in use by the event system, wait for the event which is using it finish with it. "; + case FMOD_ERR_RECORD: return "An error occured trying to initialize the recording device. "; + case FMOD_ERR_REVERB_INSTANCE: return "Specified instance in FMOD_REVERB_PROPERTIES couldn't be set. Most likely because it is an invalid instance number or the reverb doesnt exist. "; + case FMOD_ERR_SUBSOUNDS: return "The error occured because the sound referenced contains subsounds when it shouldn't have, or it doesn't contain subsounds when it should have. The operation may also not be able to be performed on a parent sound, or a parent sound was played without setting up a sentence first. "; + case FMOD_ERR_SUBSOUND_ALLOCATED: return "This subsound is already being used by another sound, you cannot have more than one parent to a sound. Null out the other parent's entry first. "; + case FMOD_ERR_SUBSOUND_CANTMOVE: return "Shared subsounds cannot be replaced or moved from their parent stream, such as when the parent stream is an FSB file. "; + case FMOD_ERR_SUBSOUND_MODE: return "The subsound's mode bits do not match with the parent sound's mode bits. See documentation for function that it was called with. "; + case FMOD_ERR_TAGNOTFOUND: return "The specified tag could not be found or there are no tags. "; + case FMOD_ERR_TOOMANYCHANNELS: return "The sound created exceeds the allowable input channel count. This can be increased using the maxinputchannels parameter in System::setSoftwareFormat. "; + case FMOD_ERR_UNIMPLEMENTED: return "Something in FMOD hasn't been implemented when it should be! contact support! "; + case FMOD_ERR_UNINITIALIZED: return "This command failed because System::init or System::setDriver was not called. "; + case FMOD_ERR_UNSUPPORTED: return "A command issued was not supported by this object. Possibly a plugin without certain callbacks specified. "; + case FMOD_ERR_UPDATE: return "An error caused by System::update occured. "; + case FMOD_ERR_VERSION: return "The version number of this file format is not supported. "; + case FMOD_OK: return "No errors."; + default : return "Unknown error."; + }; +} + +#endif diff --git a/libs/FMOD/inc/fmod_memoryinfo.h b/libs/FMOD/inc/fmod_memoryinfo.h new file mode 100644 index 0000000..8dc31f6 --- /dev/null +++ b/libs/FMOD/inc/fmod_memoryinfo.h @@ -0,0 +1,201 @@ +/* ============================================================================================= */ +/* FMOD Ex - Memory info header file. Copyright (c), Firelight Technologies Pty, Ltd. 2008-2014. */ +/* */ +/* Use this header if you are interested in getting detailed information on FMOD's memory */ +/* usage. See the documentation for more details. */ +/* */ +/* ============================================================================================= */ + +#ifndef _FMOD_MEMORYINFO_H +#define _FMOD_MEMORYINFO_H + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Structure to be filled with detailed memory usage information of an FMOD object + + [REMARKS] + Every public FMOD class has a getMemoryInfo function which can be used to get detailed information on what memory resources are associated with the object in question. + On return from getMemoryInfo, each member of this structure will hold the amount of memory used for its type in bytes. + + Members marked with [in] mean the user sets the value before passing it to the function. + Members marked with [out] mean FMOD sets the value to be used after the function exits. + + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + System::getMemoryInfo + EventSystem::getMemoryInfo + FMOD_MEMBITS + FMOD_EVENT_MEMBITS +] +*/ +typedef struct FMOD_MEMORY_USAGE_DETAILS +{ + unsigned int other; /* [out] Memory not accounted for by other types */ + unsigned int string; /* [out] String data */ + unsigned int system; /* [out] System object and various internals */ + unsigned int plugins; /* [out] Plugin objects and internals */ + unsigned int output; /* [out] Output module object and internals */ + unsigned int channel; /* [out] Channel related memory */ + unsigned int channelgroup; /* [out] ChannelGroup objects and internals */ + unsigned int codec; /* [out] Codecs allocated for streaming */ + unsigned int file; /* [out] File buffers and structures */ + unsigned int sound; /* [out] Sound objects and internals */ + unsigned int secondaryram; /* [out] Sound data stored in secondary RAM */ + unsigned int soundgroup; /* [out] SoundGroup objects and internals */ + unsigned int streambuffer; /* [out] Stream buffer memory */ + unsigned int dspconnection; /* [out] DSPConnection objects and internals */ + unsigned int dsp; /* [out] DSP implementation objects */ + unsigned int dspcodec; /* [out] Realtime file format decoding DSP objects */ + unsigned int profile; /* [out] Profiler memory footprint. */ + unsigned int recordbuffer; /* [out] Buffer used to store recorded data from microphone */ + unsigned int reverb; /* [out] Reverb implementation objects */ + unsigned int reverbchannelprops; /* [out] Reverb channel properties structs */ + unsigned int geometry; /* [out] Geometry objects and internals */ + unsigned int syncpoint; /* [out] Sync point memory. */ + unsigned int eventsystem; /* [out] EventSystem and various internals */ + unsigned int musicsystem; /* [out] MusicSystem and various internals */ + unsigned int fev; /* [out] Definition of objects contained in all loaded projects e.g. events, groups, categories */ + unsigned int memoryfsb; /* [out] Data loaded with preloadFSB */ + unsigned int eventproject; /* [out] EventProject objects and internals */ + unsigned int eventgroupi; /* [out] EventGroup objects and internals */ + unsigned int soundbankclass; /* [out] Objects used to manage wave banks */ + unsigned int soundbanklist; /* [out] Data used to manage lists of wave bank usage */ + unsigned int streaminstance; /* [out] Stream objects and internals */ + unsigned int sounddefclass; /* [out] Sound definition objects */ + unsigned int sounddefdefclass; /* [out] Sound definition static data objects */ + unsigned int sounddefpool; /* [out] Sound definition pool data */ + unsigned int reverbdef; /* [out] Reverb definition objects */ + unsigned int eventreverb; /* [out] Reverb objects */ + unsigned int userproperty; /* [out] User property objects */ + unsigned int eventinstance; /* [out] Event instance base objects */ + unsigned int eventinstance_complex; /* [out] Complex event instance objects */ + unsigned int eventinstance_simple; /* [out] Simple event instance objects */ + unsigned int eventinstance_layer; /* [out] Event layer instance objects */ + unsigned int eventinstance_sound; /* [out] Event sound instance objects */ + unsigned int eventenvelope; /* [out] Event envelope objects */ + unsigned int eventenvelopedef; /* [out] Event envelope definition objects */ + unsigned int eventparameter; /* [out] Event parameter objects */ + unsigned int eventcategory; /* [out] Event category objects */ + unsigned int eventenvelopepoint; /* [out] Event envelope point objects */ + unsigned int eventinstancepool; /* [out] Event instance pool memory */ +} FMOD_MEMORY_USAGE_DETAILS; + + +/* +[DEFINE] +[ + [NAME] + FMOD_MEMBITS + + [DESCRIPTION] + Bitfield used to request specific memory usage information from the getMemoryInfo function of every public FMOD Ex class. + Use with the "memorybits" parameter of getMemoryInfo to get information on FMOD Ex memory usage. + + [REMARKS] + Every public FMOD class has a getMemoryInfo function which can be used to get detailed information on what memory resources are associated with the object in question. + The FMOD_MEMBITS defines can be OR'd together to specify precisely what memory usage you'd like to get information on. See System::getMemoryInfo for an example. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_EVENT_MEMBITS + System::getMemoryInfo +] +*/ +#define FMOD_MEMBITS_OTHER 0x00000001 /* Memory not accounted for by other types */ +#define FMOD_MEMBITS_STRING 0x00000002 /* String data */ + +#define FMOD_MEMBITS_SYSTEM 0x00000004 /* System object and various internals */ +#define FMOD_MEMBITS_PLUGINS 0x00000008 /* Plugin objects and internals */ +#define FMOD_MEMBITS_OUTPUT 0x00000010 /* Output module object and internals */ +#define FMOD_MEMBITS_CHANNEL 0x00000020 /* Channel related memory */ +#define FMOD_MEMBITS_CHANNELGROUP 0x00000040 /* ChannelGroup objects and internals */ +#define FMOD_MEMBITS_CODEC 0x00000080 /* Codecs allocated for streaming */ +#define FMOD_MEMBITS_FILE 0x00000100 /* Codecs allocated for streaming */ +#define FMOD_MEMBITS_SOUND 0x00000200 /* Sound objects and internals */ +#define FMOD_MEMBITS_SOUND_SECONDARYRAM 0x00000400 /* Sound data stored in secondary RAM */ +#define FMOD_MEMBITS_SOUNDGROUP 0x00000800 /* SoundGroup objects and internals */ +#define FMOD_MEMBITS_STREAMBUFFER 0x00001000 /* Stream buffer memory */ +#define FMOD_MEMBITS_DSPCONNECTION 0x00002000 /* DSPConnection objects and internals */ +#define FMOD_MEMBITS_DSP 0x00004000 /* DSP implementation objects */ +#define FMOD_MEMBITS_DSPCODEC 0x00008000 /* Realtime file format decoding DSP objects */ +#define FMOD_MEMBITS_PROFILE 0x00010000 /* Profiler memory footprint. */ +#define FMOD_MEMBITS_RECORDBUFFER 0x00020000 /* Buffer used to store recorded data from microphone */ +#define FMOD_MEMBITS_REVERB 0x00040000 /* Reverb implementation objects */ +#define FMOD_MEMBITS_REVERBCHANNELPROPS 0x00080000 /* Reverb channel properties structs */ +#define FMOD_MEMBITS_GEOMETRY 0x00100000 /* Geometry objects and internals */ +#define FMOD_MEMBITS_SYNCPOINT 0x00200000 /* Sync point memory. */ +#define FMOD_MEMBITS_ALL 0xffffffff /* All memory used by FMOD Ex */ +/* [DEFINE_END] */ + + +/* +[DEFINE] +[ + [NAME] + FMOD_EVENT_MEMBITS + + [DESCRIPTION] + Bitfield used to request specific memory usage information from the getMemoryInfo function of every public FMOD Event System class. + Use with the "event_memorybits" parameter of getMemoryInfo to get information on FMOD Event System memory usage. + + [REMARKS] + Every public FMOD Event System class has a getMemoryInfo function which can be used to get detailed information on what memory resources are associated with the object in question. + The FMOD_EVENT_MEMBITS defines can be OR'd together to specify precisely what memory usage you'd like to get information on. See EventSystem::getMemoryInfo for an example. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_MEMBITS + System::getMemoryInfo +] +*/ +#define FMOD_EVENT_MEMBITS_EVENTSYSTEM 0x00000001 /* EventSystem and various internals */ +#define FMOD_EVENT_MEMBITS_MUSICSYSTEM 0x00000002 /* MusicSystem and various internals */ +#define FMOD_EVENT_MEMBITS_FEV 0x00000004 /* Definition of objects contained in all loaded projects e.g. events, groups, categories */ +#define FMOD_EVENT_MEMBITS_MEMORYFSB 0x00000008 /* Data loaded with preloadFSB */ +#define FMOD_EVENT_MEMBITS_EVENTPROJECT 0x00000010 /* EventProject objects and internals */ +#define FMOD_EVENT_MEMBITS_EVENTGROUPI 0x00000020 /* EventGroup objects and internals */ +#define FMOD_EVENT_MEMBITS_SOUNDBANKCLASS 0x00000040 /* Objects used to manage wave banks */ +#define FMOD_EVENT_MEMBITS_SOUNDBANKLIST 0x00000080 /* Data used to manage lists of wave bank usage */ +#define FMOD_EVENT_MEMBITS_STREAMINSTANCE 0x00000100 /* Stream objects and internals */ +#define FMOD_EVENT_MEMBITS_SOUNDDEFCLASS 0x00000200 /* Sound definition objects */ +#define FMOD_EVENT_MEMBITS_SOUNDDEFDEFCLASS 0x00000400 /* Sound definition static data objects */ +#define FMOD_EVENT_MEMBITS_SOUNDDEFPOOL 0x00000800 /* Sound definition pool data */ +#define FMOD_EVENT_MEMBITS_REVERBDEF 0x00001000 /* Reverb definition objects */ +#define FMOD_EVENT_MEMBITS_EVENTREVERB 0x00002000 /* Reverb objects */ +#define FMOD_EVENT_MEMBITS_USERPROPERTY 0x00004000 /* User property objects */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE 0x00008000 /* Event instance base objects */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE_COMPLEX 0x00010000 /* Complex event instance objects */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE_SIMPLE 0x00020000 /* Simple event instance objects */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE_LAYER 0x00040000 /* Event layer instance objects */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE_SOUND 0x00080000 /* Event sound instance objects */ +#define FMOD_EVENT_MEMBITS_EVENTENVELOPE 0x00100000 /* Event envelope objects */ +#define FMOD_EVENT_MEMBITS_EVENTENVELOPEDEF 0x00200000 /* Event envelope definition objects */ +#define FMOD_EVENT_MEMBITS_EVENTPARAMETER 0x00400000 /* Event parameter objects */ +#define FMOD_EVENT_MEMBITS_EVENTCATEGORY 0x00800000 /* Event category objects */ +#define FMOD_EVENT_MEMBITS_EVENTENVELOPEPOINT 0x01000000 /* Event envelope point object+s */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCEPOOL 0x02000000 /* Event instance pool data */ +#define FMOD_EVENT_MEMBITS_ALL 0xffffffff /* All memory used by FMOD Event System */ + +/* All event instance memory */ +#define FMOD_EVENT_MEMBITS_EVENTINSTANCE_GROUP (FMOD_EVENT_MEMBITS_EVENTINSTANCE | \ + FMOD_EVENT_MEMBITS_EVENTINSTANCE_COMPLEX | \ + FMOD_EVENT_MEMBITS_EVENTINSTANCE_SIMPLE | \ + FMOD_EVENT_MEMBITS_EVENTINSTANCE_LAYER | \ + FMOD_EVENT_MEMBITS_EVENTINSTANCE_SOUND) + +/* All sound definition memory */ +#define FMOD_EVENT_MEMBITS_SOUNDDEF_GROUP (FMOD_EVENT_MEMBITS_SOUNDDEFCLASS | \ + FMOD_EVENT_MEMBITS_SOUNDDEFDEFCLASS | \ + FMOD_EVENT_MEMBITS_SOUNDDEFPOOL) +/* [DEFINE_END] */ + +#endif diff --git a/libs/FMOD/inc/fmod_output.h b/libs/FMOD/inc/fmod_output.h new file mode 100644 index 0000000..650e753 --- /dev/null +++ b/libs/FMOD/inc/fmod_output.h @@ -0,0 +1,93 @@ +/* ==================================================================================================== */ +/* FMOD Ex - output development header file. Copyright (c), Firelight Technologies Pty, Ltd. 2004-2014. */ +/* */ +/* Use this header if you are wanting to develop your own output plugin to use with */ +/* FMOD's output system. With this header you can make your own output plugin that FMOD */ +/* can register and use. See the documentation and examples on how to make a working plugin. */ +/* */ +/* ==================================================================================================== */ + +#ifndef _FMOD_OUTPUT_H +#define _FMOD_OUTPUT_H + +#include "fmod.h" + +typedef struct FMOD_OUTPUT_STATE FMOD_OUTPUT_STATE; + +/* + Output callbacks +*/ +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_GETNUMDRIVERSCALLBACK)(FMOD_OUTPUT_STATE *output_state, int *numdrivers); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_GETDRIVERNAMECALLBACK)(FMOD_OUTPUT_STATE *output_state, int id, char *name, int namelen); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_GETDRIVERCAPSCALLBACK)(FMOD_OUTPUT_STATE *output_state, int id, FMOD_CAPS *caps); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_INITCALLBACK) (FMOD_OUTPUT_STATE *output_state, int selecteddriver, FMOD_INITFLAGS flags, int *outputrate, int outputchannels, FMOD_SOUND_FORMAT *outputformat, int dspbufferlength, int dspnumbuffers, void *extradriverdata); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_CLOSECALLBACK) (FMOD_OUTPUT_STATE *output_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_UPDATECALLBACK) (FMOD_OUTPUT_STATE *output_state); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_GETHANDLECALLBACK) (FMOD_OUTPUT_STATE *output_state, void **handle); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_GETPOSITIONCALLBACK) (FMOD_OUTPUT_STATE *output_state, unsigned int *pcm); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_LOCKCALLBACK) (FMOD_OUTPUT_STATE *output_state, unsigned int offset, unsigned int length, void **ptr1, void **ptr2, unsigned int *len1, unsigned int *len2); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_UNLOCKCALLBACK) (FMOD_OUTPUT_STATE *output_state, void *ptr1, void *ptr2, unsigned int len1, unsigned int len2); +typedef FMOD_RESULT (F_CALLBACK *FMOD_OUTPUT_READFROMMIXER) (FMOD_OUTPUT_STATE *output_state, void *buffer, unsigned int length); + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + When creating an output, declare one of these and provide the relevant callbacks and name for FMOD to use when it opens and reads a file of this type. + + [REMARKS] + Members marked with [in] mean the variable can be written to. The user can set the value. + Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_OUTPUT_STATE +] +*/ +typedef struct FMOD_OUTPUT_DESCRIPTION +{ + const char *name; /* [in] Name of the output. */ + unsigned int version; /* [in] Plugin writer's version number. */ + int polling; /* [in] If TRUE (non zero), this tells FMOD to start a thread and call getposition / lock / unlock for feeding data. If 0, the output is probably callback based, so all the plugin needs to do is call readfrommixer to the appropriate pointer. */ + FMOD_OUTPUT_GETNUMDRIVERSCALLBACK getnumdrivers; /* [in] For sound device enumeration. This callback is to give System::getNumDrivers somthing to return. */ + FMOD_OUTPUT_GETDRIVERNAMECALLBACK getdrivername; /* [in] For sound device enumeration. This callback is to give System::getDriverName somthing to return. */ + FMOD_OUTPUT_GETDRIVERCAPSCALLBACK getdrivercaps; /* [in] For sound device enumeration. This callback is to give System::getDriverCaps somthing to return. */ + FMOD_OUTPUT_INITCALLBACK init; /* [in] Initialization function for the output device. This is called from System::init. */ + FMOD_OUTPUT_CLOSECALLBACK close; /* [in] Cleanup / close down function for the output device. This is called from System::close. */ + FMOD_OUTPUT_UPDATECALLBACK update; /* [in] Update function that is called once a frame by the user. This is called from System::update. */ + FMOD_OUTPUT_GETHANDLECALLBACK gethandle; /* [in] This is called from System::getOutputHandle. This is just to return a pointer to the internal system device object that the system may be using.*/ + FMOD_OUTPUT_GETPOSITIONCALLBACK getposition; /* [in] This is called from the FMOD software mixer thread if 'polling' = true. This returns a position value in samples so that FMOD knows where and when to fill its buffer. */ + FMOD_OUTPUT_LOCKCALLBACK lock; /* [in] This is called from the FMOD software mixer thread if 'polling' = true. This function provides a pointer to data that FMOD can write to when software mixing. */ + FMOD_OUTPUT_UNLOCKCALLBACK unlock; /* [in] This is called from the FMOD software mixer thread if 'polling' = true. This optional function accepts the data that has been mixed and copies it or does whatever it needs to before sending it to the hardware. */ +} FMOD_OUTPUT_DESCRIPTION; + + +/* +[STRUCTURE] +[ + [DESCRIPTION] + Output plugin structure that is passed into each callback. + + [REMARKS] + Members marked with [in] mean the variable can be written to. The user can set the value. + Members marked with [out] mean the variable is modified by FMOD and is for reading purposes only. Do not change this value. + + [PLATFORMS] + Win32, Win64, Linux, Linux64, Macintosh, Xbox360, PlayStation Portable, PlayStation 3, Wii, iPhone, 3GS, NGP, Android + + [SEE_ALSO] + FMOD_OUTPUT_DESCRIPTION +] +*/ +struct FMOD_OUTPUT_STATE +{ + void *plugindata; /* [in] Plugin writer created data the output author wants to attach to this object. */ + FMOD_OUTPUT_READFROMMIXER readfrommixer; /* [out] Function to update mixer and write the result to the provided pointer. Used from callback based output only. Polling based output uses lock/unlock/getposition. */ +}; + +#endif + + diff --git a/libs/FMOD/lib/fmodex.dll b/libs/FMOD/lib/fmodex.dll new file mode 100644 index 0000000..d68d393 Binary files /dev/null and b/libs/FMOD/lib/fmodex.dll differ diff --git a/libs/FMOD/lib/fmodex64_vc.lib b/libs/FMOD/lib/fmodex64_vc.lib new file mode 100644 index 0000000..43a3c7c Binary files /dev/null and b/libs/FMOD/lib/fmodex64_vc.lib differ diff --git a/libs/FMOD/lib/fmodexL64_vc.lib b/libs/FMOD/lib/fmodexL64_vc.lib new file mode 100644 index 0000000..300ff9d Binary files /dev/null and b/libs/FMOD/lib/fmodexL64_vc.lib differ diff --git a/libs/FMOD/lib/fmodexL_bc.lib b/libs/FMOD/lib/fmodexL_bc.lib new file mode 100644 index 0000000..0ae8117 Binary files /dev/null and b/libs/FMOD/lib/fmodexL_bc.lib differ diff --git a/libs/FMOD/lib/fmodexL_lcc.lib b/libs/FMOD/lib/fmodexL_lcc.lib new file mode 100644 index 0000000..cd84081 Binary files /dev/null and b/libs/FMOD/lib/fmodexL_lcc.lib differ diff --git a/libs/FMOD/lib/fmodexL_vc.lib b/libs/FMOD/lib/fmodexL_vc.lib new file mode 100644 index 0000000..734ae74 Binary files /dev/null and b/libs/FMOD/lib/fmodexL_vc.lib differ diff --git a/libs/FMOD/lib/fmodex_bc.lib b/libs/FMOD/lib/fmodex_bc.lib new file mode 100644 index 0000000..1f5c98c Binary files /dev/null and b/libs/FMOD/lib/fmodex_bc.lib differ diff --git a/libs/FMOD/lib/fmodex_lcc.lib b/libs/FMOD/lib/fmodex_lcc.lib new file mode 100644 index 0000000..e4c33c6 Binary files /dev/null and b/libs/FMOD/lib/fmodex_lcc.lib differ diff --git a/libs/FMOD/lib/fmodex_vc.lib b/libs/FMOD/lib/fmodex_vc.lib new file mode 100644 index 0000000..d988ca7 Binary files /dev/null and b/libs/FMOD/lib/fmodex_vc.lib differ diff --git a/libs/FMOD/lib/libfmodex.a b/libs/FMOD/lib/libfmodex.a new file mode 100644 index 0000000..2fb9828 Binary files /dev/null and b/libs/FMOD/lib/libfmodex.a differ diff --git a/libs/FMOD/lib/libfmodexL.a b/libs/FMOD/lib/libfmodexL.a new file mode 100644 index 0000000..f935ffd Binary files /dev/null and b/libs/FMOD/lib/libfmodexL.a differ diff --git a/libs/FMOD/lib/which library do I use.txt b/libs/FMOD/lib/which library do I use.txt new file mode 100644 index 0000000..12738be --- /dev/null +++ b/libs/FMOD/lib/which library do I use.txt @@ -0,0 +1,28 @@ +Which library do I link? +------------------------ + +If you want to use fmodex.dll: + +Visual Studio users - fmodex_vc.lib. +Metrowerks Codewarrior users - fmodex_vc.lib. +Borland users - fmodex_bc.lib. +LCC-Win32 users - fmodex_lcc.lib. +Dev-C++, MinGW and CygWin users - libfmodex.a. + +If you want to use fmodexL.dll: (same as fmodex.dll but with debug logging enabled) + +Visual Studio users - fmodexL_vc.lib. +Metrowerks Codewarrior users - fmodexL_vc.lib. +Borland users - fmodexL_bc.lib. +LCC-Win32 users - fmodexL_lcc.lib. +Dev-C++, MinGW and CygWin users - libfmodexL.a. + +If you want to use fmodex64.dll: (same as fmodex.dll but for 64bit machines) + +Visual Studio users - fmodex64_vc.lib. + +If you want to use fmodexL64.dll: (same as fmodex64.dll but with debug logging enabled) + +Visual Studio users - fmodexL64_vc.lib. + +No other compilers are supported for 64bit libraries. \ No newline at end of file diff --git a/libs/openal-soft-1.15.1/COPYING b/libs/openal-soft-1.15.1/COPYING deleted file mode 100755 index d0c8978..0000000 --- a/libs/openal-soft-1.15.1/COPYING +++ /dev/null @@ -1,484 +0,0 @@ - - GNU LIBRARY GENERAL PUBLIC LICENSE - Version 2, June 1991 - - - Copyright (C) 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the library GPL. It is - numbered 2 because it goes with version 2 of the ordinary GPL.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Library General Public License, applies to some -specially designated Free Software Foundation software, and to any -other libraries whose authors decide to use it. You can use it for -your libraries, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if -you distribute copies of the library, or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link a program with the library, you must provide -complete object files to the recipients so that they can relink them -with the library, after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - Our method of protecting your rights has two steps: (1) copyright -the library, and (2) offer you this license which gives you legal -permission to copy, distribute and/or modify the library. - - Also, for each distributor's protection, we want to make certain -that everyone understands that there is no warranty for this free -library. If the library is modified by someone else and passed on, we -want its recipients to know that what they have is not the original -version, so that any problems introduced by others will not reflect on -the original authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that companies distributing free -software will individually obtain patent licenses, thus in effect -transforming the program into proprietary software. To prevent this, -we have made it clear that any patent must be licensed for everyone's -free use or not licensed at all. - - Most GNU software, including some libraries, is covered by the ordinary -GNU General Public License, which was designed for utility programs. This -license, the GNU Library General Public License, applies to certain -designated libraries. This license is quite different from the ordinary -one; be sure to read it in full, and don't assume that anything in it is -the same as in the ordinary license. - - The reason we have a separate public license for some libraries is that -they blur the distinction we usually make between modifying or adding to a -program and simply using it. Linking a program with a library, without -changing the library, is in some sense simply using the library, and is -analogous to running a utility program or application program. However, in -a textual and legal sense, the linked executable is a combined work, a -derivative of the original library, and the ordinary General Public License -treats it as such. - - Because of this blurred distinction, using the ordinary General -Public License for libraries did not effectively promote software -sharing, because most developers did not use the libraries. We -concluded that weaker conditions might promote sharing better. - - However, unrestricted linking of non-free programs would deprive the -users of those programs of all benefit from the free status of the -libraries themselves. This Library General Public License is intended to -permit developers of non-free programs to use free libraries, while -preserving your freedom as a user of such programs to change the free -libraries that are incorporated in them. (We have not seen how to achieve -this as regards changes in header files, but we have achieved it as regards -changes in the actual functions of the Library.) The hope is that this -will lead to faster development of free libraries. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, while the latter only -works together with the library. - - Note that it is possible for a library to be covered by the ordinary -General Public License rather than by this special one. - - GNU LIBRARY GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library which -contains a notice placed by the copyright holder or other authorized -party saying it may be distributed under the terms of this Library -General Public License (also called "this License"). Each licensee is -addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also compile or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - c) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - d) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the source code distributed need not include anything that is normally -distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Library General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - Appendix: How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with this library; if not, write to the Free - Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - diff --git a/libs/openal-soft-1.15.1/Win32/soft_oal.dll b/libs/openal-soft-1.15.1/Win32/soft_oal.dll deleted file mode 100644 index 71ced6a..0000000 Binary files a/libs/openal-soft-1.15.1/Win32/soft_oal.dll and /dev/null differ diff --git a/libs/openal-soft-1.15.1/Win64/soft_oal.dll b/libs/openal-soft-1.15.1/Win64/soft_oal.dll deleted file mode 100644 index b47ff95..0000000 Binary files a/libs/openal-soft-1.15.1/Win64/soft_oal.dll and /dev/null differ diff --git a/libs/openal-soft-1.15.1/hrtf_defs/CIAIR.def b/libs/openal-soft-1.15.1/hrtf_defs/CIAIR.def deleted file mode 100644 index 07fb165..0000000 --- a/libs/openal-soft-1.15.1/hrtf_defs/CIAIR.def +++ /dev/null @@ -1,2010 +0,0 @@ -# This is a makehrtf HRIR definition file. It is used to define the layout -# and source data to be processed into an OpenAL Soft compatible HRTF. -# -# This definition is used to transform the left ear HRIRs from a dataset -# used in several papers and articles by Fumitada Itakura, Kazuya Takeda, -# Mikio Ikeda, Shoji Kajita, and Takanori Nishino. -# -# The data (data02.tgz) can be obtained from The Database of Head Related -# Transfer Functions hosted by the Takeda Laboratory at Nagoya University: -# -# http://www.sp.m.is.nagoya-u.ac.jp/HRTF/database.html -# -# It is copyright 1999 by Itakura Laboratory and the Center for Integrated -# Acoustic Information Research (CIAIR) of Nagoya University and provided -# free of charge with no restrictions on use so long as the authors (above) -# are cited. - -rate = 44100 - -points = 512 - -# The CIAIR set is composed of a uniform number of azimuths for all but the -# poles (-90 and 90 degree elevation). -azimuths = 1, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 1 - -# No head radius was provided. Just use the average radius of 9 cm. -radius = 0.09 - -# The distance between the source and the listener is not known for this set, -# so 1.5 m is used. -distance = 1.5 - -# The CIAIR source azimuth is counter-clockwise, so it needs to be flipped. -# The extension of the source data may be misleading, they're ASCII text -# lists of floating point values (one per line). - -[ 9, 0 ] = ascii (fp) : "./hrtfs/elev-45/L-45e000a.dat" -[ 9, 1 ] = ascii (fp) : "./hrtfs/elev-45/L-45e355a.dat" -[ 9, 2 ] = ascii (fp) : "./hrtfs/elev-45/L-45e350a.dat" -[ 9, 3 ] = ascii (fp) : "./hrtfs/elev-45/L-45e345a.dat" -[ 9, 4 ] = ascii (fp) : "./hrtfs/elev-45/L-45e340a.dat" -[ 9, 5 ] = ascii (fp) : "./hrtfs/elev-45/L-45e335a.dat" -[ 9, 6 ] = ascii (fp) : "./hrtfs/elev-45/L-45e330a.dat" -[ 9, 7 ] = ascii (fp) : "./hrtfs/elev-45/L-45e325a.dat" -[ 9, 8 ] = ascii (fp) : "./hrtfs/elev-45/L-45e320a.dat" -[ 9, 9 ] = ascii (fp) : "./hrtfs/elev-45/L-45e315a.dat" -[ 9, 10 ] = ascii (fp) : "./hrtfs/elev-45/L-45e310a.dat" -[ 9, 11 ] = ascii (fp) : "./hrtfs/elev-45/L-45e305a.dat" -[ 9, 12 ] = ascii (fp) : "./hrtfs/elev-45/L-45e300a.dat" -[ 9, 13 ] = ascii (fp) : "./hrtfs/elev-45/L-45e295a.dat" -[ 9, 14 ] = ascii (fp) : "./hrtfs/elev-45/L-45e290a.dat" -[ 9, 15 ] = ascii (fp) : "./hrtfs/elev-45/L-45e285a.dat" -[ 9, 16 ] = ascii (fp) : "./hrtfs/elev-45/L-45e280a.dat" -[ 9, 17 ] = ascii (fp) : "./hrtfs/elev-45/L-45e275a.dat" -[ 9, 18 ] = ascii (fp) : "./hrtfs/elev-45/L-45e270a.dat" -[ 9, 19 ] = ascii (fp) : "./hrtfs/elev-45/L-45e265a.dat" -[ 9, 20 ] = ascii (fp) : "./hrtfs/elev-45/L-45e260a.dat" -[ 9, 21 ] = ascii (fp) : "./hrtfs/elev-45/L-45e255a.dat" -[ 9, 22 ] = ascii (fp) : "./hrtfs/elev-45/L-45e250a.dat" -[ 9, 23 ] = ascii (fp) : "./hrtfs/elev-45/L-45e245a.dat" -[ 9, 24 ] = ascii (fp) : "./hrtfs/elev-45/L-45e240a.dat" -[ 9, 25 ] = ascii (fp) : "./hrtfs/elev-45/L-45e235a.dat" -[ 9, 26 ] = ascii (fp) : "./hrtfs/elev-45/L-45e230a.dat" -[ 9, 27 ] = ascii (fp) : "./hrtfs/elev-45/L-45e225a.dat" -[ 9, 28 ] = ascii (fp) : "./hrtfs/elev-45/L-45e220a.dat" -[ 9, 29 ] = ascii (fp) : "./hrtfs/elev-45/L-45e215a.dat" -[ 9, 30 ] = ascii (fp) : "./hrtfs/elev-45/L-45e210a.dat" -[ 9, 31 ] = ascii (fp) : "./hrtfs/elev-45/L-45e205a.dat" -[ 9, 32 ] = ascii (fp) : "./hrtfs/elev-45/L-45e200a.dat" -[ 9, 33 ] = ascii (fp) : "./hrtfs/elev-45/L-45e195a.dat" -[ 9, 34 ] = ascii (fp) : "./hrtfs/elev-45/L-45e190a.dat" -[ 9, 35 ] = ascii (fp) : "./hrtfs/elev-45/L-45e185a.dat" -[ 9, 36 ] = ascii (fp) : "./hrtfs/elev-45/L-45e180a.dat" -[ 9, 37 ] = ascii (fp) : "./hrtfs/elev-45/L-45e175a.dat" -[ 9, 38 ] = ascii (fp) : "./hrtfs/elev-45/L-45e170a.dat" -[ 9, 39 ] = ascii (fp) : "./hrtfs/elev-45/L-45e165a.dat" -[ 9, 40 ] = ascii (fp) : "./hrtfs/elev-45/L-45e160a.dat" -[ 9, 41 ] = ascii (fp) : "./hrtfs/elev-45/L-45e155a.dat" -[ 9, 42 ] = ascii (fp) : "./hrtfs/elev-45/L-45e150a.dat" -[ 9, 43 ] = ascii (fp) : "./hrtfs/elev-45/L-45e145a.dat" -[ 9, 44 ] = ascii (fp) : "./hrtfs/elev-45/L-45e140a.dat" -[ 9, 45 ] = ascii (fp) : "./hrtfs/elev-45/L-45e135a.dat" -[ 9, 46 ] = ascii (fp) : "./hrtfs/elev-45/L-45e130a.dat" -[ 9, 47 ] = ascii (fp) : "./hrtfs/elev-45/L-45e125a.dat" -[ 9, 48 ] = ascii (fp) : "./hrtfs/elev-45/L-45e120a.dat" -[ 9, 49 ] = ascii (fp) : "./hrtfs/elev-45/L-45e115a.dat" -[ 9, 50 ] = ascii (fp) : "./hrtfs/elev-45/L-45e110a.dat" -[ 9, 51 ] = ascii (fp) : "./hrtfs/elev-45/L-45e105a.dat" -[ 9, 52 ] = ascii (fp) : "./hrtfs/elev-45/L-45e100a.dat" -[ 9, 53 ] = ascii (fp) : "./hrtfs/elev-45/L-45e095a.dat" -[ 9, 54 ] = ascii (fp) : "./hrtfs/elev-45/L-45e090a.dat" -[ 9, 55 ] = ascii (fp) : "./hrtfs/elev-45/L-45e085a.dat" -[ 9, 56 ] = ascii (fp) : "./hrtfs/elev-45/L-45e080a.dat" -[ 9, 57 ] = ascii (fp) : "./hrtfs/elev-45/L-45e075a.dat" -[ 9, 58 ] = ascii (fp) : "./hrtfs/elev-45/L-45e070a.dat" -[ 9, 59 ] = ascii (fp) : "./hrtfs/elev-45/L-45e065a.dat" -[ 9, 60 ] = ascii (fp) : "./hrtfs/elev-45/L-45e060a.dat" -[ 9, 61 ] = ascii (fp) : "./hrtfs/elev-45/L-45e055a.dat" -[ 9, 62 ] = ascii (fp) : "./hrtfs/elev-45/L-45e050a.dat" -[ 9, 63 ] = ascii (fp) : "./hrtfs/elev-45/L-45e045a.dat" -[ 9, 64 ] = ascii (fp) : "./hrtfs/elev-45/L-45e040a.dat" -[ 9, 65 ] = ascii (fp) : "./hrtfs/elev-45/L-45e035a.dat" -[ 9, 66 ] = ascii (fp) : "./hrtfs/elev-45/L-45e030a.dat" -[ 9, 67 ] = ascii (fp) : "./hrtfs/elev-45/L-45e025a.dat" -[ 9, 68 ] = ascii (fp) : "./hrtfs/elev-45/L-45e020a.dat" -[ 9, 69 ] = ascii (fp) : "./hrtfs/elev-45/L-45e015a.dat" -[ 9, 70 ] = ascii (fp) : "./hrtfs/elev-45/L-45e010a.dat" -[ 9, 71 ] = ascii (fp) : "./hrtfs/elev-45/L-45e005a.dat" - -[ 10, 0 ] = ascii (fp) : "./hrtfs/elev-40/L-40e000a.dat" -[ 10, 1 ] = ascii (fp) : "./hrtfs/elev-40/L-40e355a.dat" -[ 10, 2 ] = ascii (fp) : "./hrtfs/elev-40/L-40e350a.dat" -[ 10, 3 ] = ascii (fp) : "./hrtfs/elev-40/L-40e345a.dat" -[ 10, 4 ] = ascii (fp) : "./hrtfs/elev-40/L-40e340a.dat" -[ 10, 5 ] = ascii (fp) : "./hrtfs/elev-40/L-40e335a.dat" -[ 10, 6 ] = ascii (fp) : "./hrtfs/elev-40/L-40e330a.dat" -[ 10, 7 ] = ascii (fp) : "./hrtfs/elev-40/L-40e325a.dat" -[ 10, 8 ] = ascii (fp) : "./hrtfs/elev-40/L-40e320a.dat" -[ 10, 9 ] = ascii (fp) : "./hrtfs/elev-40/L-40e315a.dat" -[ 10, 10 ] = ascii (fp) : "./hrtfs/elev-40/L-40e310a.dat" -[ 10, 11 ] = ascii (fp) : "./hrtfs/elev-40/L-40e305a.dat" -[ 10, 12 ] = ascii (fp) : "./hrtfs/elev-40/L-40e300a.dat" -[ 10, 13 ] = ascii (fp) : "./hrtfs/elev-40/L-40e295a.dat" -[ 10, 14 ] = ascii (fp) : "./hrtfs/elev-40/L-40e290a.dat" -[ 10, 15 ] = ascii (fp) : "./hrtfs/elev-40/L-40e285a.dat" -[ 10, 16 ] = ascii (fp) : "./hrtfs/elev-40/L-40e280a.dat" -[ 10, 17 ] = ascii (fp) : "./hrtfs/elev-40/L-40e275a.dat" -[ 10, 18 ] = ascii (fp) : "./hrtfs/elev-40/L-40e270a.dat" -[ 10, 19 ] = ascii (fp) : "./hrtfs/elev-40/L-40e265a.dat" -[ 10, 20 ] = ascii (fp) : "./hrtfs/elev-40/L-40e260a.dat" -[ 10, 21 ] = ascii (fp) : "./hrtfs/elev-40/L-40e255a.dat" -[ 10, 22 ] = ascii (fp) : "./hrtfs/elev-40/L-40e250a.dat" -[ 10, 23 ] = ascii (fp) : "./hrtfs/elev-40/L-40e245a.dat" -[ 10, 24 ] = ascii (fp) : "./hrtfs/elev-40/L-40e240a.dat" -[ 10, 25 ] = ascii (fp) : "./hrtfs/elev-40/L-40e235a.dat" -[ 10, 26 ] = ascii (fp) : "./hrtfs/elev-40/L-40e230a.dat" -[ 10, 27 ] = ascii (fp) : "./hrtfs/elev-40/L-40e225a.dat" -[ 10, 28 ] = ascii (fp) : "./hrtfs/elev-40/L-40e220a.dat" -[ 10, 29 ] = ascii (fp) : "./hrtfs/elev-40/L-40e215a.dat" -[ 10, 30 ] = ascii (fp) : "./hrtfs/elev-40/L-40e210a.dat" -[ 10, 31 ] = ascii (fp) : "./hrtfs/elev-40/L-40e205a.dat" -[ 10, 32 ] = ascii (fp) : "./hrtfs/elev-40/L-40e200a.dat" -[ 10, 33 ] = ascii (fp) : "./hrtfs/elev-40/L-40e195a.dat" -[ 10, 34 ] = ascii (fp) : "./hrtfs/elev-40/L-40e190a.dat" -[ 10, 35 ] = ascii (fp) : "./hrtfs/elev-40/L-40e185a.dat" -[ 10, 36 ] = ascii (fp) : "./hrtfs/elev-40/L-40e180a.dat" -[ 10, 37 ] = ascii (fp) : "./hrtfs/elev-40/L-40e175a.dat" -[ 10, 38 ] = ascii (fp) : "./hrtfs/elev-40/L-40e170a.dat" -[ 10, 39 ] = ascii (fp) : "./hrtfs/elev-40/L-40e165a.dat" -[ 10, 40 ] = ascii (fp) : "./hrtfs/elev-40/L-40e160a.dat" -[ 10, 41 ] = ascii (fp) : "./hrtfs/elev-40/L-40e155a.dat" -[ 10, 42 ] = ascii (fp) : "./hrtfs/elev-40/L-40e150a.dat" -[ 10, 43 ] = ascii (fp) : "./hrtfs/elev-40/L-40e145a.dat" -[ 10, 44 ] = ascii (fp) : "./hrtfs/elev-40/L-40e140a.dat" -[ 10, 45 ] = ascii (fp) : "./hrtfs/elev-40/L-40e135a.dat" -[ 10, 46 ] = ascii (fp) : "./hrtfs/elev-40/L-40e130a.dat" -[ 10, 47 ] = ascii (fp) : "./hrtfs/elev-40/L-40e125a.dat" -[ 10, 48 ] = ascii (fp) : "./hrtfs/elev-40/L-40e120a.dat" -[ 10, 49 ] = ascii (fp) : "./hrtfs/elev-40/L-40e115a.dat" -[ 10, 50 ] = ascii (fp) : "./hrtfs/elev-40/L-40e110a.dat" -[ 10, 51 ] = ascii (fp) : "./hrtfs/elev-40/L-40e105a.dat" -[ 10, 52 ] = ascii (fp) : "./hrtfs/elev-40/L-40e100a.dat" -[ 10, 53 ] = ascii (fp) : "./hrtfs/elev-40/L-40e095a.dat" -[ 10, 54 ] = ascii (fp) : "./hrtfs/elev-40/L-40e090a.dat" -[ 10, 55 ] = ascii (fp) : "./hrtfs/elev-40/L-40e085a.dat" -[ 10, 56 ] = ascii (fp) : "./hrtfs/elev-40/L-40e080a.dat" -[ 10, 57 ] = ascii (fp) : "./hrtfs/elev-40/L-40e075a.dat" -[ 10, 58 ] = ascii (fp) : "./hrtfs/elev-40/L-40e070a.dat" -[ 10, 59 ] = ascii (fp) : "./hrtfs/elev-40/L-40e065a.dat" -[ 10, 60 ] = ascii (fp) : "./hrtfs/elev-40/L-40e060a.dat" -[ 10, 61 ] = ascii (fp) : "./hrtfs/elev-40/L-40e055a.dat" -[ 10, 62 ] = ascii (fp) : "./hrtfs/elev-40/L-40e050a.dat" -[ 10, 63 ] = ascii (fp) : "./hrtfs/elev-40/L-40e045a.dat" -[ 10, 64 ] = ascii (fp) : "./hrtfs/elev-40/L-40e040a.dat" -[ 10, 65 ] = ascii (fp) : "./hrtfs/elev-40/L-40e035a.dat" -[ 10, 66 ] = ascii (fp) : "./hrtfs/elev-40/L-40e030a.dat" -[ 10, 67 ] = ascii (fp) : "./hrtfs/elev-40/L-40e025a.dat" -[ 10, 68 ] = ascii (fp) : "./hrtfs/elev-40/L-40e020a.dat" -[ 10, 69 ] = ascii (fp) : "./hrtfs/elev-40/L-40e015a.dat" -[ 10, 70 ] = ascii (fp) : "./hrtfs/elev-40/L-40e010a.dat" -[ 10, 71 ] = ascii (fp) : "./hrtfs/elev-40/L-40e005a.dat" - -[ 11, 0 ] = ascii (fp) : "./hrtfs/elev-35/L-35e000a.dat" -[ 11, 1 ] = ascii (fp) : "./hrtfs/elev-35/L-35e355a.dat" -[ 11, 2 ] = ascii (fp) : "./hrtfs/elev-35/L-35e350a.dat" -[ 11, 3 ] = ascii (fp) : "./hrtfs/elev-35/L-35e345a.dat" -[ 11, 4 ] = ascii (fp) : "./hrtfs/elev-35/L-35e340a.dat" -[ 11, 5 ] = ascii (fp) : "./hrtfs/elev-35/L-35e335a.dat" -[ 11, 6 ] = ascii (fp) : "./hrtfs/elev-35/L-35e330a.dat" -[ 11, 7 ] = ascii (fp) : "./hrtfs/elev-35/L-35e325a.dat" -[ 11, 8 ] = ascii (fp) : "./hrtfs/elev-35/L-35e320a.dat" -[ 11, 9 ] = ascii (fp) : "./hrtfs/elev-35/L-35e315a.dat" -[ 11, 10 ] = ascii (fp) : "./hrtfs/elev-35/L-35e310a.dat" -[ 11, 11 ] = ascii (fp) : "./hrtfs/elev-35/L-35e305a.dat" -[ 11, 12 ] = ascii (fp) : "./hrtfs/elev-35/L-35e300a.dat" -[ 11, 13 ] = ascii (fp) : "./hrtfs/elev-35/L-35e295a.dat" -[ 11, 14 ] = ascii (fp) : "./hrtfs/elev-35/L-35e290a.dat" -[ 11, 15 ] = ascii (fp) : "./hrtfs/elev-35/L-35e285a.dat" -[ 11, 16 ] = ascii (fp) : "./hrtfs/elev-35/L-35e280a.dat" -[ 11, 17 ] = ascii (fp) : "./hrtfs/elev-35/L-35e275a.dat" -[ 11, 18 ] = ascii (fp) : "./hrtfs/elev-35/L-35e270a.dat" -[ 11, 19 ] = ascii (fp) : "./hrtfs/elev-35/L-35e265a.dat" -[ 11, 20 ] = ascii (fp) : "./hrtfs/elev-35/L-35e260a.dat" -[ 11, 21 ] = ascii (fp) : "./hrtfs/elev-35/L-35e255a.dat" -[ 11, 22 ] = ascii (fp) : "./hrtfs/elev-35/L-35e250a.dat" -[ 11, 23 ] = ascii (fp) : "./hrtfs/elev-35/L-35e245a.dat" -[ 11, 24 ] = ascii (fp) : "./hrtfs/elev-35/L-35e240a.dat" -[ 11, 25 ] = ascii (fp) : "./hrtfs/elev-35/L-35e235a.dat" -[ 11, 26 ] = ascii (fp) : "./hrtfs/elev-35/L-35e230a.dat" -[ 11, 27 ] = ascii (fp) : "./hrtfs/elev-35/L-35e225a.dat" -[ 11, 28 ] = ascii (fp) : "./hrtfs/elev-35/L-35e220a.dat" -[ 11, 29 ] = ascii (fp) : "./hrtfs/elev-35/L-35e215a.dat" -[ 11, 30 ] = ascii (fp) : "./hrtfs/elev-35/L-35e210a.dat" -[ 11, 31 ] = ascii (fp) : "./hrtfs/elev-35/L-35e205a.dat" -[ 11, 32 ] = ascii (fp) : "./hrtfs/elev-35/L-35e200a.dat" -[ 11, 33 ] = ascii (fp) : "./hrtfs/elev-35/L-35e195a.dat" -[ 11, 34 ] = ascii (fp) : "./hrtfs/elev-35/L-35e190a.dat" -[ 11, 35 ] = ascii (fp) : "./hrtfs/elev-35/L-35e185a.dat" -[ 11, 36 ] = ascii (fp) : "./hrtfs/elev-35/L-35e180a.dat" -[ 11, 37 ] = ascii (fp) : "./hrtfs/elev-35/L-35e175a.dat" -[ 11, 38 ] = ascii (fp) : "./hrtfs/elev-35/L-35e170a.dat" -[ 11, 39 ] = ascii (fp) : "./hrtfs/elev-35/L-35e165a.dat" -[ 11, 40 ] = ascii (fp) : "./hrtfs/elev-35/L-35e160a.dat" -[ 11, 41 ] = ascii (fp) : "./hrtfs/elev-35/L-35e155a.dat" -[ 11, 42 ] = ascii (fp) : "./hrtfs/elev-35/L-35e150a.dat" -[ 11, 43 ] = ascii (fp) : "./hrtfs/elev-35/L-35e145a.dat" -[ 11, 44 ] = ascii (fp) : "./hrtfs/elev-35/L-35e140a.dat" -[ 11, 45 ] = ascii (fp) : "./hrtfs/elev-35/L-35e135a.dat" -[ 11, 46 ] = ascii (fp) : "./hrtfs/elev-35/L-35e130a.dat" -[ 11, 47 ] = ascii (fp) : "./hrtfs/elev-35/L-35e125a.dat" -[ 11, 48 ] = ascii (fp) : "./hrtfs/elev-35/L-35e120a.dat" -[ 11, 49 ] = ascii (fp) : "./hrtfs/elev-35/L-35e115a.dat" -[ 11, 50 ] = ascii (fp) : "./hrtfs/elev-35/L-35e110a.dat" -[ 11, 51 ] = ascii (fp) : "./hrtfs/elev-35/L-35e105a.dat" -[ 11, 52 ] = ascii (fp) : "./hrtfs/elev-35/L-35e100a.dat" -[ 11, 53 ] = ascii (fp) : "./hrtfs/elev-35/L-35e095a.dat" -[ 11, 54 ] = ascii (fp) : "./hrtfs/elev-35/L-35e090a.dat" -[ 11, 55 ] = ascii (fp) : "./hrtfs/elev-35/L-35e085a.dat" -[ 11, 56 ] = ascii (fp) : "./hrtfs/elev-35/L-35e080a.dat" -[ 11, 57 ] = ascii (fp) : "./hrtfs/elev-35/L-35e075a.dat" -[ 11, 58 ] = ascii (fp) : "./hrtfs/elev-35/L-35e070a.dat" -[ 11, 59 ] = ascii (fp) : "./hrtfs/elev-35/L-35e065a.dat" -[ 11, 60 ] = ascii (fp) : "./hrtfs/elev-35/L-35e060a.dat" -[ 11, 61 ] = ascii (fp) : "./hrtfs/elev-35/L-35e055a.dat" -[ 11, 62 ] = ascii (fp) : "./hrtfs/elev-35/L-35e050a.dat" -[ 11, 63 ] = ascii (fp) : "./hrtfs/elev-35/L-35e045a.dat" -[ 11, 64 ] = ascii (fp) : "./hrtfs/elev-35/L-35e040a.dat" -[ 11, 65 ] = ascii (fp) : "./hrtfs/elev-35/L-35e035a.dat" -[ 11, 66 ] = ascii (fp) : "./hrtfs/elev-35/L-35e030a.dat" -[ 11, 67 ] = ascii (fp) : "./hrtfs/elev-35/L-35e025a.dat" -[ 11, 68 ] = ascii (fp) : "./hrtfs/elev-35/L-35e020a.dat" -[ 11, 69 ] = ascii (fp) : "./hrtfs/elev-35/L-35e015a.dat" -[ 11, 70 ] = ascii (fp) : "./hrtfs/elev-35/L-35e010a.dat" -[ 11, 71 ] = ascii (fp) : "./hrtfs/elev-35/L-35e005a.dat" - -[ 12, 0 ] = ascii (fp) : "./hrtfs/elev-30/L-30e000a.dat" -[ 12, 1 ] = ascii (fp) : "./hrtfs/elev-30/L-30e355a.dat" -[ 12, 2 ] = ascii (fp) : "./hrtfs/elev-30/L-30e350a.dat" -[ 12, 3 ] = ascii (fp) : "./hrtfs/elev-30/L-30e345a.dat" -[ 12, 4 ] = ascii (fp) : "./hrtfs/elev-30/L-30e340a.dat" -[ 12, 5 ] = ascii (fp) : "./hrtfs/elev-30/L-30e335a.dat" -[ 12, 6 ] = ascii (fp) : "./hrtfs/elev-30/L-30e330a.dat" -[ 12, 7 ] = ascii (fp) : "./hrtfs/elev-30/L-30e325a.dat" -[ 12, 8 ] = ascii (fp) : "./hrtfs/elev-30/L-30e320a.dat" -[ 12, 9 ] = ascii (fp) : "./hrtfs/elev-30/L-30e315a.dat" -[ 12, 10 ] = ascii (fp) : "./hrtfs/elev-30/L-30e310a.dat" -[ 12, 11 ] = ascii (fp) : "./hrtfs/elev-30/L-30e305a.dat" -[ 12, 12 ] = ascii (fp) : "./hrtfs/elev-30/L-30e300a.dat" -[ 12, 13 ] = ascii (fp) : "./hrtfs/elev-30/L-30e295a.dat" -[ 12, 14 ] = ascii (fp) : "./hrtfs/elev-30/L-30e290a.dat" -[ 12, 15 ] = ascii (fp) : "./hrtfs/elev-30/L-30e285a.dat" -[ 12, 16 ] = ascii (fp) : "./hrtfs/elev-30/L-30e280a.dat" -[ 12, 17 ] = ascii (fp) : "./hrtfs/elev-30/L-30e275a.dat" -[ 12, 18 ] = ascii (fp) : "./hrtfs/elev-30/L-30e270a.dat" -[ 12, 19 ] = ascii (fp) : "./hrtfs/elev-30/L-30e265a.dat" -[ 12, 20 ] = ascii (fp) : "./hrtfs/elev-30/L-30e260a.dat" -[ 12, 21 ] = ascii (fp) : "./hrtfs/elev-30/L-30e255a.dat" -[ 12, 22 ] = ascii (fp) : "./hrtfs/elev-30/L-30e250a.dat" -[ 12, 23 ] = ascii (fp) : "./hrtfs/elev-30/L-30e245a.dat" -[ 12, 24 ] = ascii (fp) : "./hrtfs/elev-30/L-30e240a.dat" -[ 12, 25 ] = ascii (fp) : "./hrtfs/elev-30/L-30e235a.dat" -[ 12, 26 ] = ascii (fp) : "./hrtfs/elev-30/L-30e230a.dat" -[ 12, 27 ] = ascii (fp) : "./hrtfs/elev-30/L-30e225a.dat" -[ 12, 28 ] = ascii (fp) : "./hrtfs/elev-30/L-30e220a.dat" -[ 12, 29 ] = ascii (fp) : "./hrtfs/elev-30/L-30e215a.dat" -[ 12, 30 ] = ascii (fp) : "./hrtfs/elev-30/L-30e210a.dat" -[ 12, 31 ] = ascii (fp) : "./hrtfs/elev-30/L-30e205a.dat" -[ 12, 32 ] = ascii (fp) : "./hrtfs/elev-30/L-30e200a.dat" -[ 12, 33 ] = ascii (fp) : "./hrtfs/elev-30/L-30e195a.dat" -[ 12, 34 ] = ascii (fp) : "./hrtfs/elev-30/L-30e190a.dat" -[ 12, 35 ] = ascii (fp) : "./hrtfs/elev-30/L-30e185a.dat" -[ 12, 36 ] = ascii (fp) : "./hrtfs/elev-30/L-30e180a.dat" -[ 12, 37 ] = ascii (fp) : "./hrtfs/elev-30/L-30e175a.dat" -[ 12, 38 ] = ascii (fp) : "./hrtfs/elev-30/L-30e170a.dat" -[ 12, 39 ] = ascii (fp) : "./hrtfs/elev-30/L-30e165a.dat" -[ 12, 40 ] = ascii (fp) : "./hrtfs/elev-30/L-30e160a.dat" -[ 12, 41 ] = ascii (fp) : "./hrtfs/elev-30/L-30e155a.dat" -[ 12, 42 ] = ascii (fp) : "./hrtfs/elev-30/L-30e150a.dat" -[ 12, 43 ] = ascii (fp) : "./hrtfs/elev-30/L-30e145a.dat" -[ 12, 44 ] = ascii (fp) : "./hrtfs/elev-30/L-30e140a.dat" -[ 12, 45 ] = ascii (fp) : "./hrtfs/elev-30/L-30e135a.dat" -[ 12, 46 ] = ascii (fp) : "./hrtfs/elev-30/L-30e130a.dat" -[ 12, 47 ] = ascii (fp) : "./hrtfs/elev-30/L-30e125a.dat" -[ 12, 48 ] = ascii (fp) : "./hrtfs/elev-30/L-30e120a.dat" -[ 12, 49 ] = ascii (fp) : "./hrtfs/elev-30/L-30e115a.dat" -[ 12, 50 ] = ascii (fp) : "./hrtfs/elev-30/L-30e110a.dat" -[ 12, 51 ] = ascii (fp) : "./hrtfs/elev-30/L-30e105a.dat" -[ 12, 52 ] = ascii (fp) : "./hrtfs/elev-30/L-30e100a.dat" -[ 12, 53 ] = ascii (fp) : "./hrtfs/elev-30/L-30e095a.dat" -[ 12, 54 ] = ascii (fp) : "./hrtfs/elev-30/L-30e090a.dat" -[ 12, 55 ] = ascii (fp) : "./hrtfs/elev-30/L-30e085a.dat" -[ 12, 56 ] = ascii (fp) : "./hrtfs/elev-30/L-30e080a.dat" -[ 12, 57 ] = ascii (fp) : "./hrtfs/elev-30/L-30e075a.dat" -[ 12, 58 ] = ascii (fp) : "./hrtfs/elev-30/L-30e070a.dat" -[ 12, 59 ] = ascii (fp) : "./hrtfs/elev-30/L-30e065a.dat" -[ 12, 60 ] = ascii (fp) : "./hrtfs/elev-30/L-30e060a.dat" -[ 12, 61 ] = ascii (fp) : "./hrtfs/elev-30/L-30e055a.dat" -[ 12, 62 ] = ascii (fp) : "./hrtfs/elev-30/L-30e050a.dat" -[ 12, 63 ] = ascii (fp) : "./hrtfs/elev-30/L-30e045a.dat" -[ 12, 64 ] = ascii (fp) : "./hrtfs/elev-30/L-30e040a.dat" -[ 12, 65 ] = ascii (fp) : "./hrtfs/elev-30/L-30e035a.dat" -[ 12, 66 ] = ascii (fp) : "./hrtfs/elev-30/L-30e030a.dat" -[ 12, 67 ] = ascii (fp) : "./hrtfs/elev-30/L-30e025a.dat" -[ 12, 68 ] = ascii (fp) : "./hrtfs/elev-30/L-30e020a.dat" -[ 12, 69 ] = ascii (fp) : "./hrtfs/elev-30/L-30e015a.dat" -[ 12, 70 ] = ascii (fp) : "./hrtfs/elev-30/L-30e010a.dat" -[ 12, 71 ] = ascii (fp) : "./hrtfs/elev-30/L-30e005a.dat" - -[ 13, 0 ] = ascii (fp) : "./hrtfs/elev-25/L-25e000a.dat" -[ 13, 1 ] = ascii (fp) : "./hrtfs/elev-25/L-25e355a.dat" -[ 13, 2 ] = ascii (fp) : "./hrtfs/elev-25/L-25e350a.dat" -[ 13, 3 ] = ascii (fp) : "./hrtfs/elev-25/L-25e345a.dat" -[ 13, 4 ] = ascii (fp) : "./hrtfs/elev-25/L-25e340a.dat" -[ 13, 5 ] = ascii (fp) : "./hrtfs/elev-25/L-25e335a.dat" -[ 13, 6 ] = ascii (fp) : "./hrtfs/elev-25/L-25e330a.dat" -[ 13, 7 ] = ascii (fp) : "./hrtfs/elev-25/L-25e325a.dat" -[ 13, 8 ] = ascii (fp) : "./hrtfs/elev-25/L-25e320a.dat" -[ 13, 9 ] = ascii (fp) : "./hrtfs/elev-25/L-25e315a.dat" -[ 13, 10 ] = ascii (fp) : "./hrtfs/elev-25/L-25e310a.dat" -[ 13, 11 ] = ascii (fp) : "./hrtfs/elev-25/L-25e305a.dat" -[ 13, 12 ] = ascii (fp) : "./hrtfs/elev-25/L-25e300a.dat" -[ 13, 13 ] = ascii (fp) : "./hrtfs/elev-25/L-25e295a.dat" -[ 13, 14 ] = ascii (fp) : "./hrtfs/elev-25/L-25e290a.dat" -[ 13, 15 ] = ascii (fp) : "./hrtfs/elev-25/L-25e285a.dat" -[ 13, 16 ] = ascii (fp) : "./hrtfs/elev-25/L-25e280a.dat" -[ 13, 17 ] = ascii (fp) : "./hrtfs/elev-25/L-25e275a.dat" -[ 13, 18 ] = ascii (fp) : "./hrtfs/elev-25/L-25e270a.dat" -[ 13, 19 ] = ascii (fp) : "./hrtfs/elev-25/L-25e265a.dat" -[ 13, 20 ] = ascii (fp) : "./hrtfs/elev-25/L-25e260a.dat" -[ 13, 21 ] = ascii (fp) : "./hrtfs/elev-25/L-25e255a.dat" -[ 13, 22 ] = ascii (fp) : "./hrtfs/elev-25/L-25e250a.dat" -[ 13, 23 ] = ascii (fp) : "./hrtfs/elev-25/L-25e245a.dat" -[ 13, 24 ] = ascii (fp) : "./hrtfs/elev-25/L-25e240a.dat" -[ 13, 25 ] = ascii (fp) : "./hrtfs/elev-25/L-25e235a.dat" -[ 13, 26 ] = ascii (fp) : "./hrtfs/elev-25/L-25e230a.dat" -[ 13, 27 ] = ascii (fp) : "./hrtfs/elev-25/L-25e225a.dat" -[ 13, 28 ] = ascii (fp) : "./hrtfs/elev-25/L-25e220a.dat" -[ 13, 29 ] = ascii (fp) : "./hrtfs/elev-25/L-25e215a.dat" -[ 13, 30 ] = ascii (fp) : "./hrtfs/elev-25/L-25e210a.dat" -[ 13, 31 ] = ascii (fp) : "./hrtfs/elev-25/L-25e205a.dat" -[ 13, 32 ] = ascii (fp) : "./hrtfs/elev-25/L-25e200a.dat" -[ 13, 33 ] = ascii (fp) : "./hrtfs/elev-25/L-25e195a.dat" -[ 13, 34 ] = ascii (fp) : "./hrtfs/elev-25/L-25e190a.dat" -[ 13, 35 ] = ascii (fp) : "./hrtfs/elev-25/L-25e185a.dat" -[ 13, 36 ] = ascii (fp) : "./hrtfs/elev-25/L-25e180a.dat" -[ 13, 37 ] = ascii (fp) : "./hrtfs/elev-25/L-25e175a.dat" -[ 13, 38 ] = ascii (fp) : "./hrtfs/elev-25/L-25e170a.dat" -[ 13, 39 ] = ascii (fp) : "./hrtfs/elev-25/L-25e165a.dat" -[ 13, 40 ] = ascii (fp) : "./hrtfs/elev-25/L-25e160a.dat" -[ 13, 41 ] = ascii (fp) : "./hrtfs/elev-25/L-25e155a.dat" -[ 13, 42 ] = ascii (fp) : "./hrtfs/elev-25/L-25e150a.dat" -[ 13, 43 ] = ascii (fp) : "./hrtfs/elev-25/L-25e145a.dat" -[ 13, 44 ] = ascii (fp) : "./hrtfs/elev-25/L-25e140a.dat" -[ 13, 45 ] = ascii (fp) : "./hrtfs/elev-25/L-25e135a.dat" -[ 13, 46 ] = ascii (fp) : "./hrtfs/elev-25/L-25e130a.dat" -[ 13, 47 ] = ascii (fp) : "./hrtfs/elev-25/L-25e125a.dat" -[ 13, 48 ] = ascii (fp) : "./hrtfs/elev-25/L-25e120a.dat" -[ 13, 49 ] = ascii (fp) : "./hrtfs/elev-25/L-25e115a.dat" -[ 13, 50 ] = ascii (fp) : "./hrtfs/elev-25/L-25e110a.dat" -[ 13, 51 ] = ascii (fp) : "./hrtfs/elev-25/L-25e105a.dat" -[ 13, 52 ] = ascii (fp) : "./hrtfs/elev-25/L-25e100a.dat" -[ 13, 53 ] = ascii (fp) : "./hrtfs/elev-25/L-25e095a.dat" -[ 13, 54 ] = ascii (fp) : "./hrtfs/elev-25/L-25e090a.dat" -[ 13, 55 ] = ascii (fp) : "./hrtfs/elev-25/L-25e085a.dat" -[ 13, 56 ] = ascii (fp) : "./hrtfs/elev-25/L-25e080a.dat" -[ 13, 57 ] = ascii (fp) : "./hrtfs/elev-25/L-25e075a.dat" -[ 13, 58 ] = ascii (fp) : "./hrtfs/elev-25/L-25e070a.dat" -[ 13, 59 ] = ascii (fp) : "./hrtfs/elev-25/L-25e065a.dat" -[ 13, 60 ] = ascii (fp) : "./hrtfs/elev-25/L-25e060a.dat" -[ 13, 61 ] = ascii (fp) : "./hrtfs/elev-25/L-25e055a.dat" -[ 13, 62 ] = ascii (fp) : "./hrtfs/elev-25/L-25e050a.dat" -[ 13, 63 ] = ascii (fp) : "./hrtfs/elev-25/L-25e045a.dat" -[ 13, 64 ] = ascii (fp) : "./hrtfs/elev-25/L-25e040a.dat" -[ 13, 65 ] = ascii (fp) : "./hrtfs/elev-25/L-25e035a.dat" -[ 13, 66 ] = ascii (fp) : "./hrtfs/elev-25/L-25e030a.dat" -[ 13, 67 ] = ascii (fp) : "./hrtfs/elev-25/L-25e025a.dat" -[ 13, 68 ] = ascii (fp) : "./hrtfs/elev-25/L-25e020a.dat" -[ 13, 69 ] = ascii (fp) : "./hrtfs/elev-25/L-25e015a.dat" -[ 13, 70 ] = ascii (fp) : "./hrtfs/elev-25/L-25e010a.dat" -[ 13, 71 ] = ascii (fp) : "./hrtfs/elev-25/L-25e005a.dat" - -[ 14, 0 ] = ascii (fp) : "./hrtfs/elev-20/L-20e000a.dat" -[ 14, 1 ] = ascii (fp) : "./hrtfs/elev-20/L-20e355a.dat" -[ 14, 2 ] = ascii (fp) : "./hrtfs/elev-20/L-20e350a.dat" -[ 14, 3 ] = ascii (fp) : "./hrtfs/elev-20/L-20e345a.dat" -[ 14, 4 ] = ascii (fp) : "./hrtfs/elev-20/L-20e340a.dat" -[ 14, 5 ] = ascii (fp) : "./hrtfs/elev-20/L-20e335a.dat" -[ 14, 6 ] = ascii (fp) : "./hrtfs/elev-20/L-20e330a.dat" -[ 14, 7 ] = ascii (fp) : "./hrtfs/elev-20/L-20e325a.dat" -[ 14, 8 ] = ascii (fp) : "./hrtfs/elev-20/L-20e320a.dat" -[ 14, 9 ] = ascii (fp) : "./hrtfs/elev-20/L-20e315a.dat" -[ 14, 10 ] = ascii (fp) : "./hrtfs/elev-20/L-20e310a.dat" -[ 14, 11 ] = ascii (fp) : "./hrtfs/elev-20/L-20e305a.dat" -[ 14, 12 ] = ascii (fp) : "./hrtfs/elev-20/L-20e300a.dat" -[ 14, 13 ] = ascii (fp) : "./hrtfs/elev-20/L-20e295a.dat" -[ 14, 14 ] = ascii (fp) : "./hrtfs/elev-20/L-20e290a.dat" -[ 14, 15 ] = ascii (fp) : "./hrtfs/elev-20/L-20e285a.dat" -[ 14, 16 ] = ascii (fp) : "./hrtfs/elev-20/L-20e280a.dat" -[ 14, 17 ] = ascii (fp) : "./hrtfs/elev-20/L-20e275a.dat" -[ 14, 18 ] = ascii (fp) : "./hrtfs/elev-20/L-20e270a.dat" -[ 14, 19 ] = ascii (fp) : "./hrtfs/elev-20/L-20e265a.dat" -[ 14, 20 ] = ascii (fp) : "./hrtfs/elev-20/L-20e260a.dat" -[ 14, 21 ] = ascii (fp) : "./hrtfs/elev-20/L-20e255a.dat" -[ 14, 22 ] = ascii (fp) : "./hrtfs/elev-20/L-20e250a.dat" -[ 14, 23 ] = ascii (fp) : "./hrtfs/elev-20/L-20e245a.dat" -[ 14, 24 ] = ascii (fp) : "./hrtfs/elev-20/L-20e240a.dat" -[ 14, 25 ] = ascii (fp) : "./hrtfs/elev-20/L-20e235a.dat" -[ 14, 26 ] = ascii (fp) : "./hrtfs/elev-20/L-20e230a.dat" -[ 14, 27 ] = ascii (fp) : "./hrtfs/elev-20/L-20e225a.dat" -[ 14, 28 ] = ascii (fp) : "./hrtfs/elev-20/L-20e220a.dat" -[ 14, 29 ] = ascii (fp) : "./hrtfs/elev-20/L-20e215a.dat" -[ 14, 30 ] = ascii (fp) : "./hrtfs/elev-20/L-20e210a.dat" -[ 14, 31 ] = ascii (fp) : "./hrtfs/elev-20/L-20e205a.dat" -[ 14, 32 ] = ascii (fp) : "./hrtfs/elev-20/L-20e200a.dat" -[ 14, 33 ] = ascii (fp) : "./hrtfs/elev-20/L-20e195a.dat" -[ 14, 34 ] = ascii (fp) : "./hrtfs/elev-20/L-20e190a.dat" -[ 14, 35 ] = ascii (fp) : "./hrtfs/elev-20/L-20e185a.dat" -[ 14, 36 ] = ascii (fp) : "./hrtfs/elev-20/L-20e180a.dat" -[ 14, 37 ] = ascii (fp) : "./hrtfs/elev-20/L-20e175a.dat" -[ 14, 38 ] = ascii (fp) : "./hrtfs/elev-20/L-20e170a.dat" -[ 14, 39 ] = ascii (fp) : "./hrtfs/elev-20/L-20e165a.dat" -[ 14, 40 ] = ascii (fp) : "./hrtfs/elev-20/L-20e160a.dat" -[ 14, 41 ] = ascii (fp) : "./hrtfs/elev-20/L-20e155a.dat" -[ 14, 42 ] = ascii (fp) : "./hrtfs/elev-20/L-20e150a.dat" -[ 14, 43 ] = ascii (fp) : "./hrtfs/elev-20/L-20e145a.dat" -[ 14, 44 ] = ascii (fp) : "./hrtfs/elev-20/L-20e140a.dat" -[ 14, 45 ] = ascii (fp) : "./hrtfs/elev-20/L-20e135a.dat" -[ 14, 46 ] = ascii (fp) : "./hrtfs/elev-20/L-20e130a.dat" -[ 14, 47 ] = ascii (fp) : "./hrtfs/elev-20/L-20e125a.dat" -[ 14, 48 ] = ascii (fp) : "./hrtfs/elev-20/L-20e120a.dat" -[ 14, 49 ] = ascii (fp) : "./hrtfs/elev-20/L-20e115a.dat" -[ 14, 50 ] = ascii (fp) : "./hrtfs/elev-20/L-20e110a.dat" -[ 14, 51 ] = ascii (fp) : "./hrtfs/elev-20/L-20e105a.dat" -[ 14, 52 ] = ascii (fp) : "./hrtfs/elev-20/L-20e100a.dat" -[ 14, 53 ] = ascii (fp) : "./hrtfs/elev-20/L-20e095a.dat" -[ 14, 54 ] = ascii (fp) : "./hrtfs/elev-20/L-20e090a.dat" -[ 14, 55 ] = ascii (fp) : "./hrtfs/elev-20/L-20e085a.dat" -[ 14, 56 ] = ascii (fp) : "./hrtfs/elev-20/L-20e080a.dat" -[ 14, 57 ] = ascii (fp) : "./hrtfs/elev-20/L-20e075a.dat" -[ 14, 58 ] = ascii (fp) : "./hrtfs/elev-20/L-20e070a.dat" -[ 14, 59 ] = ascii (fp) : "./hrtfs/elev-20/L-20e065a.dat" -[ 14, 60 ] = ascii (fp) : "./hrtfs/elev-20/L-20e060a.dat" -[ 14, 61 ] = ascii (fp) : "./hrtfs/elev-20/L-20e055a.dat" -[ 14, 62 ] = ascii (fp) : "./hrtfs/elev-20/L-20e050a.dat" -[ 14, 63 ] = ascii (fp) : "./hrtfs/elev-20/L-20e045a.dat" -[ 14, 64 ] = ascii (fp) : "./hrtfs/elev-20/L-20e040a.dat" -[ 14, 65 ] = ascii (fp) : "./hrtfs/elev-20/L-20e035a.dat" -[ 14, 66 ] = ascii (fp) : "./hrtfs/elev-20/L-20e030a.dat" -[ 14, 67 ] = ascii (fp) : "./hrtfs/elev-20/L-20e025a.dat" -[ 14, 68 ] = ascii (fp) : "./hrtfs/elev-20/L-20e020a.dat" -[ 14, 69 ] = ascii (fp) : "./hrtfs/elev-20/L-20e015a.dat" -[ 14, 70 ] = ascii (fp) : "./hrtfs/elev-20/L-20e010a.dat" -[ 14, 71 ] = ascii (fp) : "./hrtfs/elev-20/L-20e005a.dat" - -[ 15, 0 ] = ascii (fp) : "./hrtfs/elev-15/L-15e000a.dat" -[ 15, 1 ] = ascii (fp) : "./hrtfs/elev-15/L-15e355a.dat" -[ 15, 2 ] = ascii (fp) : "./hrtfs/elev-15/L-15e350a.dat" -[ 15, 3 ] = ascii (fp) : "./hrtfs/elev-15/L-15e345a.dat" -[ 15, 4 ] = ascii (fp) : "./hrtfs/elev-15/L-15e340a.dat" -[ 15, 5 ] = ascii (fp) : "./hrtfs/elev-15/L-15e335a.dat" -[ 15, 6 ] = ascii (fp) : "./hrtfs/elev-15/L-15e330a.dat" -[ 15, 7 ] = ascii (fp) : "./hrtfs/elev-15/L-15e325a.dat" -[ 15, 8 ] = ascii (fp) : "./hrtfs/elev-15/L-15e320a.dat" -[ 15, 9 ] = ascii (fp) : "./hrtfs/elev-15/L-15e315a.dat" -[ 15, 10 ] = ascii (fp) : "./hrtfs/elev-15/L-15e310a.dat" -[ 15, 11 ] = ascii (fp) : "./hrtfs/elev-15/L-15e305a.dat" -[ 15, 12 ] = ascii (fp) : "./hrtfs/elev-15/L-15e300a.dat" -[ 15, 13 ] = ascii (fp) : "./hrtfs/elev-15/L-15e295a.dat" -[ 15, 14 ] = ascii (fp) : "./hrtfs/elev-15/L-15e290a.dat" -[ 15, 15 ] = ascii (fp) : "./hrtfs/elev-15/L-15e285a.dat" -[ 15, 16 ] = ascii (fp) : "./hrtfs/elev-15/L-15e280a.dat" -[ 15, 17 ] = ascii (fp) : "./hrtfs/elev-15/L-15e275a.dat" -[ 15, 18 ] = ascii (fp) : "./hrtfs/elev-15/L-15e270a.dat" -[ 15, 19 ] = ascii (fp) : "./hrtfs/elev-15/L-15e265a.dat" -[ 15, 20 ] = ascii (fp) : "./hrtfs/elev-15/L-15e260a.dat" -[ 15, 21 ] = ascii (fp) : "./hrtfs/elev-15/L-15e255a.dat" -[ 15, 22 ] = ascii (fp) : "./hrtfs/elev-15/L-15e250a.dat" -[ 15, 23 ] = ascii (fp) : "./hrtfs/elev-15/L-15e245a.dat" -[ 15, 24 ] = ascii (fp) : "./hrtfs/elev-15/L-15e240a.dat" -[ 15, 25 ] = ascii (fp) : "./hrtfs/elev-15/L-15e235a.dat" -[ 15, 26 ] = ascii (fp) : "./hrtfs/elev-15/L-15e230a.dat" -[ 15, 27 ] = ascii (fp) : "./hrtfs/elev-15/L-15e225a.dat" -[ 15, 28 ] = ascii (fp) : "./hrtfs/elev-15/L-15e220a.dat" -[ 15, 29 ] = ascii (fp) : "./hrtfs/elev-15/L-15e215a.dat" -[ 15, 30 ] = ascii (fp) : "./hrtfs/elev-15/L-15e210a.dat" -[ 15, 31 ] = ascii (fp) : "./hrtfs/elev-15/L-15e205a.dat" -[ 15, 32 ] = ascii (fp) : "./hrtfs/elev-15/L-15e200a.dat" -[ 15, 33 ] = ascii (fp) : "./hrtfs/elev-15/L-15e195a.dat" -[ 15, 34 ] = ascii (fp) : "./hrtfs/elev-15/L-15e190a.dat" -[ 15, 35 ] = ascii (fp) : "./hrtfs/elev-15/L-15e185a.dat" -[ 15, 36 ] = ascii (fp) : "./hrtfs/elev-15/L-15e180a.dat" -[ 15, 37 ] = ascii (fp) : "./hrtfs/elev-15/L-15e175a.dat" -[ 15, 38 ] = ascii (fp) : "./hrtfs/elev-15/L-15e170a.dat" -[ 15, 39 ] = ascii (fp) : "./hrtfs/elev-15/L-15e165a.dat" -[ 15, 40 ] = ascii (fp) : "./hrtfs/elev-15/L-15e160a.dat" -[ 15, 41 ] = ascii (fp) : "./hrtfs/elev-15/L-15e155a.dat" -[ 15, 42 ] = ascii (fp) : "./hrtfs/elev-15/L-15e150a.dat" -[ 15, 43 ] = ascii (fp) : "./hrtfs/elev-15/L-15e145a.dat" -[ 15, 44 ] = ascii (fp) : "./hrtfs/elev-15/L-15e140a.dat" -[ 15, 45 ] = ascii (fp) : "./hrtfs/elev-15/L-15e135a.dat" -[ 15, 46 ] = ascii (fp) : "./hrtfs/elev-15/L-15e130a.dat" -[ 15, 47 ] = ascii (fp) : "./hrtfs/elev-15/L-15e125a.dat" -[ 15, 48 ] = ascii (fp) : "./hrtfs/elev-15/L-15e120a.dat" -[ 15, 49 ] = ascii (fp) : "./hrtfs/elev-15/L-15e115a.dat" -[ 15, 50 ] = ascii (fp) : "./hrtfs/elev-15/L-15e110a.dat" -[ 15, 51 ] = ascii (fp) : "./hrtfs/elev-15/L-15e105a.dat" -[ 15, 52 ] = ascii (fp) : "./hrtfs/elev-15/L-15e100a.dat" -[ 15, 53 ] = ascii (fp) : "./hrtfs/elev-15/L-15e095a.dat" -[ 15, 54 ] = ascii (fp) : "./hrtfs/elev-15/L-15e090a.dat" -[ 15, 55 ] = ascii (fp) : "./hrtfs/elev-15/L-15e085a.dat" -[ 15, 56 ] = ascii (fp) : "./hrtfs/elev-15/L-15e080a.dat" -[ 15, 57 ] = ascii (fp) : "./hrtfs/elev-15/L-15e075a.dat" -[ 15, 58 ] = ascii (fp) : "./hrtfs/elev-15/L-15e070a.dat" -[ 15, 59 ] = ascii (fp) : "./hrtfs/elev-15/L-15e065a.dat" -[ 15, 60 ] = ascii (fp) : "./hrtfs/elev-15/L-15e060a.dat" -[ 15, 61 ] = ascii (fp) : "./hrtfs/elev-15/L-15e055a.dat" -[ 15, 62 ] = ascii (fp) : "./hrtfs/elev-15/L-15e050a.dat" -[ 15, 63 ] = ascii (fp) : "./hrtfs/elev-15/L-15e045a.dat" -[ 15, 64 ] = ascii (fp) : "./hrtfs/elev-15/L-15e040a.dat" -[ 15, 65 ] = ascii (fp) : "./hrtfs/elev-15/L-15e035a.dat" -[ 15, 66 ] = ascii (fp) : "./hrtfs/elev-15/L-15e030a.dat" -[ 15, 67 ] = ascii (fp) : "./hrtfs/elev-15/L-15e025a.dat" -[ 15, 68 ] = ascii (fp) : "./hrtfs/elev-15/L-15e020a.dat" -[ 15, 69 ] = ascii (fp) : "./hrtfs/elev-15/L-15e015a.dat" -[ 15, 70 ] = ascii (fp) : "./hrtfs/elev-15/L-15e010a.dat" -[ 15, 71 ] = ascii (fp) : "./hrtfs/elev-15/L-15e005a.dat" - -[ 16, 0 ] = ascii (fp) : "./hrtfs/elev-10/L-10e000a.dat" -[ 16, 1 ] = ascii (fp) : "./hrtfs/elev-10/L-10e355a.dat" -[ 16, 2 ] = ascii (fp) : "./hrtfs/elev-10/L-10e350a.dat" -[ 16, 3 ] = ascii (fp) : "./hrtfs/elev-10/L-10e345a.dat" -[ 16, 4 ] = ascii (fp) : "./hrtfs/elev-10/L-10e340a.dat" -[ 16, 5 ] = ascii (fp) : "./hrtfs/elev-10/L-10e335a.dat" -[ 16, 6 ] = ascii (fp) : "./hrtfs/elev-10/L-10e330a.dat" -[ 16, 7 ] = ascii (fp) : "./hrtfs/elev-10/L-10e325a.dat" -[ 16, 8 ] = ascii (fp) : "./hrtfs/elev-10/L-10e320a.dat" -[ 16, 9 ] = ascii (fp) : "./hrtfs/elev-10/L-10e315a.dat" -[ 16, 10 ] = ascii (fp) : "./hrtfs/elev-10/L-10e310a.dat" -[ 16, 11 ] = ascii (fp) : "./hrtfs/elev-10/L-10e305a.dat" -[ 16, 12 ] = ascii (fp) : "./hrtfs/elev-10/L-10e300a.dat" -[ 16, 13 ] = ascii (fp) : "./hrtfs/elev-10/L-10e295a.dat" -[ 16, 14 ] = ascii (fp) : "./hrtfs/elev-10/L-10e290a.dat" -[ 16, 15 ] = ascii (fp) : "./hrtfs/elev-10/L-10e285a.dat" -[ 16, 16 ] = ascii (fp) : "./hrtfs/elev-10/L-10e280a.dat" -[ 16, 17 ] = ascii (fp) : "./hrtfs/elev-10/L-10e275a.dat" -[ 16, 18 ] = ascii (fp) : "./hrtfs/elev-10/L-10e270a.dat" -[ 16, 19 ] = ascii (fp) : "./hrtfs/elev-10/L-10e265a.dat" -[ 16, 20 ] = ascii (fp) : "./hrtfs/elev-10/L-10e260a.dat" -[ 16, 21 ] = ascii (fp) : "./hrtfs/elev-10/L-10e255a.dat" -[ 16, 22 ] = ascii (fp) : "./hrtfs/elev-10/L-10e250a.dat" -[ 16, 23 ] = ascii (fp) : "./hrtfs/elev-10/L-10e245a.dat" -[ 16, 24 ] = ascii (fp) : "./hrtfs/elev-10/L-10e240a.dat" -[ 16, 25 ] = ascii (fp) : "./hrtfs/elev-10/L-10e235a.dat" -[ 16, 26 ] = ascii (fp) : "./hrtfs/elev-10/L-10e230a.dat" -[ 16, 27 ] = ascii (fp) : "./hrtfs/elev-10/L-10e225a.dat" -[ 16, 28 ] = ascii (fp) : "./hrtfs/elev-10/L-10e220a.dat" -[ 16, 29 ] = ascii (fp) : "./hrtfs/elev-10/L-10e215a.dat" -[ 16, 30 ] = ascii (fp) : "./hrtfs/elev-10/L-10e210a.dat" -[ 16, 31 ] = ascii (fp) : "./hrtfs/elev-10/L-10e205a.dat" -[ 16, 32 ] = ascii (fp) : "./hrtfs/elev-10/L-10e200a.dat" -[ 16, 33 ] = ascii (fp) : "./hrtfs/elev-10/L-10e195a.dat" -[ 16, 34 ] = ascii (fp) : "./hrtfs/elev-10/L-10e190a.dat" -[ 16, 35 ] = ascii (fp) : "./hrtfs/elev-10/L-10e185a.dat" -[ 16, 36 ] = ascii (fp) : "./hrtfs/elev-10/L-10e180a.dat" -[ 16, 37 ] = ascii (fp) : "./hrtfs/elev-10/L-10e175a.dat" -[ 16, 38 ] = ascii (fp) : "./hrtfs/elev-10/L-10e170a.dat" -[ 16, 39 ] = ascii (fp) : "./hrtfs/elev-10/L-10e165a.dat" -[ 16, 40 ] = ascii (fp) : "./hrtfs/elev-10/L-10e160a.dat" -[ 16, 41 ] = ascii (fp) : "./hrtfs/elev-10/L-10e155a.dat" -[ 16, 42 ] = ascii (fp) : "./hrtfs/elev-10/L-10e150a.dat" -[ 16, 43 ] = ascii (fp) : "./hrtfs/elev-10/L-10e145a.dat" -[ 16, 44 ] = ascii (fp) : "./hrtfs/elev-10/L-10e140a.dat" -[ 16, 45 ] = ascii (fp) : "./hrtfs/elev-10/L-10e135a.dat" -[ 16, 46 ] = ascii (fp) : "./hrtfs/elev-10/L-10e130a.dat" -[ 16, 47 ] = ascii (fp) : "./hrtfs/elev-10/L-10e125a.dat" -[ 16, 48 ] = ascii (fp) : "./hrtfs/elev-10/L-10e120a.dat" -[ 16, 49 ] = ascii (fp) : "./hrtfs/elev-10/L-10e115a.dat" -[ 16, 50 ] = ascii (fp) : "./hrtfs/elev-10/L-10e110a.dat" -[ 16, 51 ] = ascii (fp) : "./hrtfs/elev-10/L-10e105a.dat" -[ 16, 52 ] = ascii (fp) : "./hrtfs/elev-10/L-10e100a.dat" -[ 16, 53 ] = ascii (fp) : "./hrtfs/elev-10/L-10e095a.dat" -[ 16, 54 ] = ascii (fp) : "./hrtfs/elev-10/L-10e090a.dat" -[ 16, 55 ] = ascii (fp) : "./hrtfs/elev-10/L-10e085a.dat" -[ 16, 56 ] = ascii (fp) : "./hrtfs/elev-10/L-10e080a.dat" -[ 16, 57 ] = ascii (fp) : "./hrtfs/elev-10/L-10e075a.dat" -[ 16, 58 ] = ascii (fp) : "./hrtfs/elev-10/L-10e070a.dat" -[ 16, 59 ] = ascii (fp) : "./hrtfs/elev-10/L-10e065a.dat" -[ 16, 60 ] = ascii (fp) : "./hrtfs/elev-10/L-10e060a.dat" -[ 16, 61 ] = ascii (fp) : "./hrtfs/elev-10/L-10e055a.dat" -[ 16, 62 ] = ascii (fp) : "./hrtfs/elev-10/L-10e050a.dat" -[ 16, 63 ] = ascii (fp) : "./hrtfs/elev-10/L-10e045a.dat" -[ 16, 64 ] = ascii (fp) : "./hrtfs/elev-10/L-10e040a.dat" -[ 16, 65 ] = ascii (fp) : "./hrtfs/elev-10/L-10e035a.dat" -[ 16, 66 ] = ascii (fp) : "./hrtfs/elev-10/L-10e030a.dat" -[ 16, 67 ] = ascii (fp) : "./hrtfs/elev-10/L-10e025a.dat" -[ 16, 68 ] = ascii (fp) : "./hrtfs/elev-10/L-10e020a.dat" -[ 16, 69 ] = ascii (fp) : "./hrtfs/elev-10/L-10e015a.dat" -[ 16, 70 ] = ascii (fp) : "./hrtfs/elev-10/L-10e010a.dat" -[ 16, 71 ] = ascii (fp) : "./hrtfs/elev-10/L-10e005a.dat" - -[ 17, 0 ] = ascii (fp) : "./hrtfs/elev-5/L-5e000a.dat" -[ 17, 1 ] = ascii (fp) : "./hrtfs/elev-5/L-5e355a.dat" -[ 17, 2 ] = ascii (fp) : "./hrtfs/elev-5/L-5e350a.dat" -[ 17, 3 ] = ascii (fp) : "./hrtfs/elev-5/L-5e345a.dat" -[ 17, 4 ] = ascii (fp) : "./hrtfs/elev-5/L-5e340a.dat" -[ 17, 5 ] = ascii (fp) : "./hrtfs/elev-5/L-5e335a.dat" -[ 17, 6 ] = ascii (fp) : "./hrtfs/elev-5/L-5e330a.dat" -[ 17, 7 ] = ascii (fp) : "./hrtfs/elev-5/L-5e325a.dat" -[ 17, 8 ] = ascii (fp) : "./hrtfs/elev-5/L-5e320a.dat" -[ 17, 9 ] = ascii (fp) : "./hrtfs/elev-5/L-5e315a.dat" -[ 17, 10 ] = ascii (fp) : "./hrtfs/elev-5/L-5e310a.dat" -[ 17, 11 ] = ascii (fp) : "./hrtfs/elev-5/L-5e305a.dat" -[ 17, 12 ] = ascii (fp) : "./hrtfs/elev-5/L-5e300a.dat" -[ 17, 13 ] = ascii (fp) : "./hrtfs/elev-5/L-5e295a.dat" -[ 17, 14 ] = ascii (fp) : "./hrtfs/elev-5/L-5e290a.dat" -[ 17, 15 ] = ascii (fp) : "./hrtfs/elev-5/L-5e285a.dat" -[ 17, 16 ] = ascii (fp) : "./hrtfs/elev-5/L-5e280a.dat" -[ 17, 17 ] = ascii (fp) : "./hrtfs/elev-5/L-5e275a.dat" -[ 17, 18 ] = ascii (fp) : "./hrtfs/elev-5/L-5e270a.dat" -[ 17, 19 ] = ascii (fp) : "./hrtfs/elev-5/L-5e265a.dat" -[ 17, 20 ] = ascii (fp) : "./hrtfs/elev-5/L-5e260a.dat" -[ 17, 21 ] = ascii (fp) : "./hrtfs/elev-5/L-5e255a.dat" -[ 17, 22 ] = ascii (fp) : "./hrtfs/elev-5/L-5e250a.dat" -[ 17, 23 ] = ascii (fp) : "./hrtfs/elev-5/L-5e245a.dat" -[ 17, 24 ] = ascii (fp) : "./hrtfs/elev-5/L-5e240a.dat" -[ 17, 25 ] = ascii (fp) : "./hrtfs/elev-5/L-5e235a.dat" -[ 17, 26 ] = ascii (fp) : "./hrtfs/elev-5/L-5e230a.dat" -[ 17, 27 ] = ascii (fp) : "./hrtfs/elev-5/L-5e225a.dat" -[ 17, 28 ] = ascii (fp) : "./hrtfs/elev-5/L-5e220a.dat" -[ 17, 29 ] = ascii (fp) : "./hrtfs/elev-5/L-5e215a.dat" -[ 17, 30 ] = ascii (fp) : "./hrtfs/elev-5/L-5e210a.dat" -[ 17, 31 ] = ascii (fp) : "./hrtfs/elev-5/L-5e205a.dat" -[ 17, 32 ] = ascii (fp) : "./hrtfs/elev-5/L-5e200a.dat" -[ 17, 33 ] = ascii (fp) : "./hrtfs/elev-5/L-5e195a.dat" -[ 17, 34 ] = ascii (fp) : "./hrtfs/elev-5/L-5e190a.dat" -[ 17, 35 ] = ascii (fp) : "./hrtfs/elev-5/L-5e185a.dat" -[ 17, 36 ] = ascii (fp) : "./hrtfs/elev-5/L-5e180a.dat" -[ 17, 37 ] = ascii (fp) : "./hrtfs/elev-5/L-5e175a.dat" -[ 17, 38 ] = ascii (fp) : "./hrtfs/elev-5/L-5e170a.dat" -[ 17, 39 ] = ascii (fp) : "./hrtfs/elev-5/L-5e165a.dat" -[ 17, 40 ] = ascii (fp) : "./hrtfs/elev-5/L-5e160a.dat" -[ 17, 41 ] = ascii (fp) : "./hrtfs/elev-5/L-5e155a.dat" -[ 17, 42 ] = ascii (fp) : "./hrtfs/elev-5/L-5e150a.dat" -[ 17, 43 ] = ascii (fp) : "./hrtfs/elev-5/L-5e145a.dat" -[ 17, 44 ] = ascii (fp) : "./hrtfs/elev-5/L-5e140a.dat" -[ 17, 45 ] = ascii (fp) : "./hrtfs/elev-5/L-5e135a.dat" -[ 17, 46 ] = ascii (fp) : "./hrtfs/elev-5/L-5e130a.dat" -[ 17, 47 ] = ascii (fp) : "./hrtfs/elev-5/L-5e125a.dat" -[ 17, 48 ] = ascii (fp) : "./hrtfs/elev-5/L-5e120a.dat" -[ 17, 49 ] = ascii (fp) : "./hrtfs/elev-5/L-5e115a.dat" -[ 17, 50 ] = ascii (fp) : "./hrtfs/elev-5/L-5e110a.dat" -[ 17, 51 ] = ascii (fp) : "./hrtfs/elev-5/L-5e105a.dat" -[ 17, 52 ] = ascii (fp) : "./hrtfs/elev-5/L-5e100a.dat" -[ 17, 53 ] = ascii (fp) : "./hrtfs/elev-5/L-5e095a.dat" -[ 17, 54 ] = ascii (fp) : "./hrtfs/elev-5/L-5e090a.dat" -[ 17, 55 ] = ascii (fp) : "./hrtfs/elev-5/L-5e085a.dat" -[ 17, 56 ] = ascii (fp) : "./hrtfs/elev-5/L-5e080a.dat" -[ 17, 57 ] = ascii (fp) : "./hrtfs/elev-5/L-5e075a.dat" -[ 17, 58 ] = ascii (fp) : "./hrtfs/elev-5/L-5e070a.dat" -[ 17, 59 ] = ascii (fp) : "./hrtfs/elev-5/L-5e065a.dat" -[ 17, 60 ] = ascii (fp) : "./hrtfs/elev-5/L-5e060a.dat" -[ 17, 61 ] = ascii (fp) : "./hrtfs/elev-5/L-5e055a.dat" -[ 17, 62 ] = ascii (fp) : "./hrtfs/elev-5/L-5e050a.dat" -[ 17, 63 ] = ascii (fp) : "./hrtfs/elev-5/L-5e045a.dat" -[ 17, 64 ] = ascii (fp) : "./hrtfs/elev-5/L-5e040a.dat" -[ 17, 65 ] = ascii (fp) : "./hrtfs/elev-5/L-5e035a.dat" -[ 17, 66 ] = ascii (fp) : "./hrtfs/elev-5/L-5e030a.dat" -[ 17, 67 ] = ascii (fp) : "./hrtfs/elev-5/L-5e025a.dat" -[ 17, 68 ] = ascii (fp) : "./hrtfs/elev-5/L-5e020a.dat" -[ 17, 69 ] = ascii (fp) : "./hrtfs/elev-5/L-5e015a.dat" -[ 17, 70 ] = ascii (fp) : "./hrtfs/elev-5/L-5e010a.dat" -[ 17, 71 ] = ascii (fp) : "./hrtfs/elev-5/L-5e005a.dat" - -[ 18, 0 ] = ascii (fp) : "./hrtfs/elev0/L0e000a.dat" -[ 18, 1 ] = ascii (fp) : "./hrtfs/elev0/L0e355a.dat" -[ 18, 2 ] = ascii (fp) : "./hrtfs/elev0/L0e350a.dat" -[ 18, 3 ] = ascii (fp) : "./hrtfs/elev0/L0e345a.dat" -[ 18, 4 ] = ascii (fp) : "./hrtfs/elev0/L0e340a.dat" -[ 18, 5 ] = ascii (fp) : "./hrtfs/elev0/L0e335a.dat" -[ 18, 6 ] = ascii (fp) : "./hrtfs/elev0/L0e330a.dat" -[ 18, 7 ] = ascii (fp) : "./hrtfs/elev0/L0e325a.dat" -[ 18, 8 ] = ascii (fp) : "./hrtfs/elev0/L0e320a.dat" -[ 18, 9 ] = ascii (fp) : "./hrtfs/elev0/L0e315a.dat" -[ 18, 10 ] = ascii (fp) : "./hrtfs/elev0/L0e310a.dat" -[ 18, 11 ] = ascii (fp) : "./hrtfs/elev0/L0e305a.dat" -[ 18, 12 ] = ascii (fp) : "./hrtfs/elev0/L0e300a.dat" -[ 18, 13 ] = ascii (fp) : "./hrtfs/elev0/L0e295a.dat" -[ 18, 14 ] = ascii (fp) : "./hrtfs/elev0/L0e290a.dat" -[ 18, 15 ] = ascii (fp) : "./hrtfs/elev0/L0e285a.dat" -[ 18, 16 ] = ascii (fp) : "./hrtfs/elev0/L0e280a.dat" -[ 18, 17 ] = ascii (fp) : "./hrtfs/elev0/L0e275a.dat" -[ 18, 18 ] = ascii (fp) : "./hrtfs/elev0/L0e270a.dat" -[ 18, 19 ] = ascii (fp) : "./hrtfs/elev0/L0e265a.dat" -[ 18, 20 ] = ascii (fp) : "./hrtfs/elev0/L0e260a.dat" -[ 18, 21 ] = ascii (fp) : "./hrtfs/elev0/L0e255a.dat" -[ 18, 22 ] = ascii (fp) : "./hrtfs/elev0/L0e250a.dat" -[ 18, 23 ] = ascii (fp) : "./hrtfs/elev0/L0e245a.dat" -[ 18, 24 ] = ascii (fp) : "./hrtfs/elev0/L0e240a.dat" -[ 18, 25 ] = ascii (fp) : "./hrtfs/elev0/L0e235a.dat" -[ 18, 26 ] = ascii (fp) : "./hrtfs/elev0/L0e230a.dat" -[ 18, 27 ] = ascii (fp) : "./hrtfs/elev0/L0e225a.dat" -[ 18, 28 ] = ascii (fp) : "./hrtfs/elev0/L0e220a.dat" -[ 18, 29 ] = ascii (fp) : "./hrtfs/elev0/L0e215a.dat" -[ 18, 30 ] = ascii (fp) : "./hrtfs/elev0/L0e210a.dat" -[ 18, 31 ] = ascii (fp) : "./hrtfs/elev0/L0e205a.dat" -[ 18, 32 ] = ascii (fp) : "./hrtfs/elev0/L0e200a.dat" -[ 18, 33 ] = ascii (fp) : "./hrtfs/elev0/L0e195a.dat" -[ 18, 34 ] = ascii (fp) : "./hrtfs/elev0/L0e190a.dat" -[ 18, 35 ] = ascii (fp) : "./hrtfs/elev0/L0e185a.dat" -[ 18, 36 ] = ascii (fp) : "./hrtfs/elev0/L0e180a.dat" -[ 18, 37 ] = ascii (fp) : "./hrtfs/elev0/L0e175a.dat" -[ 18, 38 ] = ascii (fp) : "./hrtfs/elev0/L0e170a.dat" -[ 18, 39 ] = ascii (fp) : "./hrtfs/elev0/L0e165a.dat" -[ 18, 40 ] = ascii (fp) : "./hrtfs/elev0/L0e160a.dat" -[ 18, 41 ] = ascii (fp) : "./hrtfs/elev0/L0e155a.dat" -[ 18, 42 ] = ascii (fp) : "./hrtfs/elev0/L0e150a.dat" -[ 18, 43 ] = ascii (fp) : "./hrtfs/elev0/L0e145a.dat" -[ 18, 44 ] = ascii (fp) : "./hrtfs/elev0/L0e140a.dat" -[ 18, 45 ] = ascii (fp) : "./hrtfs/elev0/L0e135a.dat" -[ 18, 46 ] = ascii (fp) : "./hrtfs/elev0/L0e130a.dat" -[ 18, 47 ] = ascii (fp) : "./hrtfs/elev0/L0e125a.dat" -[ 18, 48 ] = ascii (fp) : "./hrtfs/elev0/L0e120a.dat" -[ 18, 49 ] = ascii (fp) : "./hrtfs/elev0/L0e115a.dat" -[ 18, 50 ] = ascii (fp) : "./hrtfs/elev0/L0e110a.dat" -[ 18, 51 ] = ascii (fp) : "./hrtfs/elev0/L0e105a.dat" -[ 18, 52 ] = ascii (fp) : "./hrtfs/elev0/L0e100a.dat" -[ 18, 53 ] = ascii (fp) : "./hrtfs/elev0/L0e095a.dat" -[ 18, 54 ] = ascii (fp) : "./hrtfs/elev0/L0e090a.dat" -[ 18, 55 ] = ascii (fp) : "./hrtfs/elev0/L0e085a.dat" -[ 18, 56 ] = ascii (fp) : "./hrtfs/elev0/L0e080a.dat" -[ 18, 57 ] = ascii (fp) : "./hrtfs/elev0/L0e075a.dat" -[ 18, 58 ] = ascii (fp) : "./hrtfs/elev0/L0e070a.dat" -[ 18, 59 ] = ascii (fp) : "./hrtfs/elev0/L0e065a.dat" -[ 18, 60 ] = ascii (fp) : "./hrtfs/elev0/L0e060a.dat" -[ 18, 61 ] = ascii (fp) : "./hrtfs/elev0/L0e055a.dat" -[ 18, 62 ] = ascii (fp) : "./hrtfs/elev0/L0e050a.dat" -[ 18, 63 ] = ascii (fp) : "./hrtfs/elev0/L0e045a.dat" -[ 18, 64 ] = ascii (fp) : "./hrtfs/elev0/L0e040a.dat" -[ 18, 65 ] = ascii (fp) : "./hrtfs/elev0/L0e035a.dat" -[ 18, 66 ] = ascii (fp) : "./hrtfs/elev0/L0e030a.dat" -[ 18, 67 ] = ascii (fp) : "./hrtfs/elev0/L0e025a.dat" -[ 18, 68 ] = ascii (fp) : "./hrtfs/elev0/L0e020a.dat" -[ 18, 69 ] = ascii (fp) : "./hrtfs/elev0/L0e015a.dat" -[ 18, 70 ] = ascii (fp) : "./hrtfs/elev0/L0e010a.dat" -[ 18, 71 ] = ascii (fp) : "./hrtfs/elev0/L0e005a.dat" - -[ 19, 0 ] = ascii (fp) : "./hrtfs/elev5/L5e000a.dat" -[ 19, 1 ] = ascii (fp) : "./hrtfs/elev5/L5e355a.dat" -[ 19, 2 ] = ascii (fp) : "./hrtfs/elev5/L5e350a.dat" -[ 19, 3 ] = ascii (fp) : "./hrtfs/elev5/L5e345a.dat" -[ 19, 4 ] = ascii (fp) : "./hrtfs/elev5/L5e340a.dat" -[ 19, 5 ] = ascii (fp) : "./hrtfs/elev5/L5e335a.dat" -[ 19, 6 ] = ascii (fp) : "./hrtfs/elev5/L5e330a.dat" -[ 19, 7 ] = ascii (fp) : "./hrtfs/elev5/L5e325a.dat" -[ 19, 8 ] = ascii (fp) : "./hrtfs/elev5/L5e320a.dat" -[ 19, 9 ] = ascii (fp) : "./hrtfs/elev5/L5e315a.dat" -[ 19, 10 ] = ascii (fp) : "./hrtfs/elev5/L5e310a.dat" -[ 19, 11 ] = ascii (fp) : "./hrtfs/elev5/L5e305a.dat" -[ 19, 12 ] = ascii (fp) : "./hrtfs/elev5/L5e300a.dat" -[ 19, 13 ] = ascii (fp) : "./hrtfs/elev5/L5e295a.dat" -[ 19, 14 ] = ascii (fp) : "./hrtfs/elev5/L5e290a.dat" -[ 19, 15 ] = ascii (fp) : "./hrtfs/elev5/L5e285a.dat" -[ 19, 16 ] = ascii (fp) : "./hrtfs/elev5/L5e280a.dat" -[ 19, 17 ] = ascii (fp) : "./hrtfs/elev5/L5e275a.dat" -[ 19, 18 ] = ascii (fp) : "./hrtfs/elev5/L5e270a.dat" -[ 19, 19 ] = ascii (fp) : "./hrtfs/elev5/L5e265a.dat" -[ 19, 20 ] = ascii (fp) : "./hrtfs/elev5/L5e260a.dat" -[ 19, 21 ] = ascii (fp) : "./hrtfs/elev5/L5e255a.dat" -[ 19, 22 ] = ascii (fp) : "./hrtfs/elev5/L5e250a.dat" -[ 19, 23 ] = ascii (fp) : "./hrtfs/elev5/L5e245a.dat" -[ 19, 24 ] = ascii (fp) : "./hrtfs/elev5/L5e240a.dat" -[ 19, 25 ] = ascii (fp) : "./hrtfs/elev5/L5e235a.dat" -[ 19, 26 ] = ascii (fp) : "./hrtfs/elev5/L5e230a.dat" -[ 19, 27 ] = ascii (fp) : "./hrtfs/elev5/L5e225a.dat" -[ 19, 28 ] = ascii (fp) : "./hrtfs/elev5/L5e220a.dat" -[ 19, 29 ] = ascii (fp) : "./hrtfs/elev5/L5e215a.dat" -[ 19, 30 ] = ascii (fp) : "./hrtfs/elev5/L5e210a.dat" -[ 19, 31 ] = ascii (fp) : "./hrtfs/elev5/L5e205a.dat" -[ 19, 32 ] = ascii (fp) : "./hrtfs/elev5/L5e200a.dat" -[ 19, 33 ] = ascii (fp) : "./hrtfs/elev5/L5e195a.dat" -[ 19, 34 ] = ascii (fp) : "./hrtfs/elev5/L5e190a.dat" -[ 19, 35 ] = ascii (fp) : "./hrtfs/elev5/L5e185a.dat" -[ 19, 36 ] = ascii (fp) : "./hrtfs/elev5/L5e180a.dat" -[ 19, 37 ] = ascii (fp) : "./hrtfs/elev5/L5e175a.dat" -[ 19, 38 ] = ascii (fp) : "./hrtfs/elev5/L5e170a.dat" -[ 19, 39 ] = ascii (fp) : "./hrtfs/elev5/L5e165a.dat" -[ 19, 40 ] = ascii (fp) : "./hrtfs/elev5/L5e160a.dat" -[ 19, 41 ] = ascii (fp) : "./hrtfs/elev5/L5e155a.dat" -[ 19, 42 ] = ascii (fp) : "./hrtfs/elev5/L5e150a.dat" -[ 19, 43 ] = ascii (fp) : "./hrtfs/elev5/L5e145a.dat" -[ 19, 44 ] = ascii (fp) : "./hrtfs/elev5/L5e140a.dat" -[ 19, 45 ] = ascii (fp) : "./hrtfs/elev5/L5e135a.dat" -[ 19, 46 ] = ascii (fp) : "./hrtfs/elev5/L5e130a.dat" -[ 19, 47 ] = ascii (fp) : "./hrtfs/elev5/L5e125a.dat" -[ 19, 48 ] = ascii (fp) : "./hrtfs/elev5/L5e120a.dat" -[ 19, 49 ] = ascii (fp) : "./hrtfs/elev5/L5e115a.dat" -[ 19, 50 ] = ascii (fp) : "./hrtfs/elev5/L5e110a.dat" -[ 19, 51 ] = ascii (fp) : "./hrtfs/elev5/L5e105a.dat" -[ 19, 52 ] = ascii (fp) : "./hrtfs/elev5/L5e100a.dat" -[ 19, 53 ] = ascii (fp) : "./hrtfs/elev5/L5e095a.dat" -[ 19, 54 ] = ascii (fp) : "./hrtfs/elev5/L5e090a.dat" -[ 19, 55 ] = ascii (fp) : "./hrtfs/elev5/L5e085a.dat" -[ 19, 56 ] = ascii (fp) : "./hrtfs/elev5/L5e080a.dat" -[ 19, 57 ] = ascii (fp) : "./hrtfs/elev5/L5e075a.dat" -[ 19, 58 ] = ascii (fp) : "./hrtfs/elev5/L5e070a.dat" -[ 19, 59 ] = ascii (fp) : "./hrtfs/elev5/L5e065a.dat" -[ 19, 60 ] = ascii (fp) : "./hrtfs/elev5/L5e060a.dat" -[ 19, 61 ] = ascii (fp) : "./hrtfs/elev5/L5e055a.dat" -[ 19, 62 ] = ascii (fp) : "./hrtfs/elev5/L5e050a.dat" -[ 19, 63 ] = ascii (fp) : "./hrtfs/elev5/L5e045a.dat" -[ 19, 64 ] = ascii (fp) : "./hrtfs/elev5/L5e040a.dat" -[ 19, 65 ] = ascii (fp) : "./hrtfs/elev5/L5e035a.dat" -[ 19, 66 ] = ascii (fp) : "./hrtfs/elev5/L5e030a.dat" -[ 19, 67 ] = ascii (fp) : "./hrtfs/elev5/L5e025a.dat" -[ 19, 68 ] = ascii (fp) : "./hrtfs/elev5/L5e020a.dat" -[ 19, 69 ] = ascii (fp) : "./hrtfs/elev5/L5e015a.dat" -[ 19, 70 ] = ascii (fp) : "./hrtfs/elev5/L5e010a.dat" -[ 19, 71 ] = ascii (fp) : "./hrtfs/elev5/L5e005a.dat" - -[ 20, 0 ] = ascii (fp) : "./hrtfs/elev10/L10e000a.dat" -[ 20, 1 ] = ascii (fp) : "./hrtfs/elev10/L10e355a.dat" -[ 20, 2 ] = ascii (fp) : "./hrtfs/elev10/L10e350a.dat" -[ 20, 3 ] = ascii (fp) : "./hrtfs/elev10/L10e345a.dat" -[ 20, 4 ] = ascii (fp) : "./hrtfs/elev10/L10e340a.dat" -[ 20, 5 ] = ascii (fp) : "./hrtfs/elev10/L10e335a.dat" -[ 20, 6 ] = ascii (fp) : "./hrtfs/elev10/L10e330a.dat" -[ 20, 7 ] = ascii (fp) : "./hrtfs/elev10/L10e325a.dat" -[ 20, 8 ] = ascii (fp) : "./hrtfs/elev10/L10e320a.dat" -[ 20, 9 ] = ascii (fp) : "./hrtfs/elev10/L10e315a.dat" -[ 20, 10 ] = ascii (fp) : "./hrtfs/elev10/L10e310a.dat" -[ 20, 11 ] = ascii (fp) : "./hrtfs/elev10/L10e305a.dat" -[ 20, 12 ] = ascii (fp) : "./hrtfs/elev10/L10e300a.dat" -[ 20, 13 ] = ascii (fp) : "./hrtfs/elev10/L10e295a.dat" -[ 20, 14 ] = ascii (fp) : "./hrtfs/elev10/L10e290a.dat" -[ 20, 15 ] = ascii (fp) : "./hrtfs/elev10/L10e285a.dat" -[ 20, 16 ] = ascii (fp) : "./hrtfs/elev10/L10e280a.dat" -[ 20, 17 ] = ascii (fp) : "./hrtfs/elev10/L10e275a.dat" -[ 20, 18 ] = ascii (fp) : "./hrtfs/elev10/L10e270a.dat" -[ 20, 19 ] = ascii (fp) : "./hrtfs/elev10/L10e265a.dat" -[ 20, 20 ] = ascii (fp) : "./hrtfs/elev10/L10e260a.dat" -[ 20, 21 ] = ascii (fp) : "./hrtfs/elev10/L10e255a.dat" -[ 20, 22 ] = ascii (fp) : "./hrtfs/elev10/L10e250a.dat" -[ 20, 23 ] = ascii (fp) : "./hrtfs/elev10/L10e245a.dat" -[ 20, 24 ] = ascii (fp) : "./hrtfs/elev10/L10e240a.dat" -[ 20, 25 ] = ascii (fp) : "./hrtfs/elev10/L10e235a.dat" -[ 20, 26 ] = ascii (fp) : "./hrtfs/elev10/L10e230a.dat" -[ 20, 27 ] = ascii (fp) : "./hrtfs/elev10/L10e225a.dat" -[ 20, 28 ] = ascii (fp) : "./hrtfs/elev10/L10e220a.dat" -[ 20, 29 ] = ascii (fp) : "./hrtfs/elev10/L10e215a.dat" -[ 20, 30 ] = ascii (fp) : "./hrtfs/elev10/L10e210a.dat" -[ 20, 31 ] = ascii (fp) : "./hrtfs/elev10/L10e205a.dat" -[ 20, 32 ] = ascii (fp) : "./hrtfs/elev10/L10e200a.dat" -[ 20, 33 ] = ascii (fp) : "./hrtfs/elev10/L10e195a.dat" -[ 20, 34 ] = ascii (fp) : "./hrtfs/elev10/L10e190a.dat" -[ 20, 35 ] = ascii (fp) : "./hrtfs/elev10/L10e185a.dat" -[ 20, 36 ] = ascii (fp) : "./hrtfs/elev10/L10e180a.dat" -[ 20, 37 ] = ascii (fp) : "./hrtfs/elev10/L10e175a.dat" -[ 20, 38 ] = ascii (fp) : "./hrtfs/elev10/L10e170a.dat" -[ 20, 39 ] = ascii (fp) : "./hrtfs/elev10/L10e165a.dat" -[ 20, 40 ] = ascii (fp) : "./hrtfs/elev10/L10e160a.dat" -[ 20, 41 ] = ascii (fp) : "./hrtfs/elev10/L10e155a.dat" -[ 20, 42 ] = ascii (fp) : "./hrtfs/elev10/L10e150a.dat" -[ 20, 43 ] = ascii (fp) : "./hrtfs/elev10/L10e145a.dat" -[ 20, 44 ] = ascii (fp) : "./hrtfs/elev10/L10e140a.dat" -[ 20, 45 ] = ascii (fp) : "./hrtfs/elev10/L10e135a.dat" -[ 20, 46 ] = ascii (fp) : "./hrtfs/elev10/L10e130a.dat" -[ 20, 47 ] = ascii (fp) : "./hrtfs/elev10/L10e125a.dat" -[ 20, 48 ] = ascii (fp) : "./hrtfs/elev10/L10e120a.dat" -[ 20, 49 ] = ascii (fp) : "./hrtfs/elev10/L10e115a.dat" -[ 20, 50 ] = ascii (fp) : "./hrtfs/elev10/L10e110a.dat" -[ 20, 51 ] = ascii (fp) : "./hrtfs/elev10/L10e105a.dat" -[ 20, 52 ] = ascii (fp) : "./hrtfs/elev10/L10e100a.dat" -[ 20, 53 ] = ascii (fp) : "./hrtfs/elev10/L10e095a.dat" -[ 20, 54 ] = ascii (fp) : "./hrtfs/elev10/L10e090a.dat" -[ 20, 55 ] = ascii (fp) : "./hrtfs/elev10/L10e085a.dat" -[ 20, 56 ] = ascii (fp) : "./hrtfs/elev10/L10e080a.dat" -[ 20, 57 ] = ascii (fp) : "./hrtfs/elev10/L10e075a.dat" -[ 20, 58 ] = ascii (fp) : "./hrtfs/elev10/L10e070a.dat" -[ 20, 59 ] = ascii (fp) : "./hrtfs/elev10/L10e065a.dat" -[ 20, 60 ] = ascii (fp) : "./hrtfs/elev10/L10e060a.dat" -[ 20, 61 ] = ascii (fp) : "./hrtfs/elev10/L10e055a.dat" -[ 20, 62 ] = ascii (fp) : "./hrtfs/elev10/L10e050a.dat" -[ 20, 63 ] = ascii (fp) : "./hrtfs/elev10/L10e045a.dat" -[ 20, 64 ] = ascii (fp) : "./hrtfs/elev10/L10e040a.dat" -[ 20, 65 ] = ascii (fp) : "./hrtfs/elev10/L10e035a.dat" -[ 20, 66 ] = ascii (fp) : "./hrtfs/elev10/L10e030a.dat" -[ 20, 67 ] = ascii (fp) : "./hrtfs/elev10/L10e025a.dat" -[ 20, 68 ] = ascii (fp) : "./hrtfs/elev10/L10e020a.dat" -[ 20, 69 ] = ascii (fp) : "./hrtfs/elev10/L10e015a.dat" -[ 20, 70 ] = ascii (fp) : "./hrtfs/elev10/L10e010a.dat" -[ 20, 71 ] = ascii (fp) : "./hrtfs/elev10/L10e005a.dat" - -[ 21, 0 ] = ascii (fp) : "./hrtfs/elev15/L15e000a.dat" -[ 21, 1 ] = ascii (fp) : "./hrtfs/elev15/L15e355a.dat" -[ 21, 2 ] = ascii (fp) : "./hrtfs/elev15/L15e350a.dat" -[ 21, 3 ] = ascii (fp) : "./hrtfs/elev15/L15e345a.dat" -[ 21, 4 ] = ascii (fp) : "./hrtfs/elev15/L15e340a.dat" -[ 21, 5 ] = ascii (fp) : "./hrtfs/elev15/L15e335a.dat" -[ 21, 6 ] = ascii (fp) : "./hrtfs/elev15/L15e330a.dat" -[ 21, 7 ] = ascii (fp) : "./hrtfs/elev15/L15e325a.dat" -[ 21, 8 ] = ascii (fp) : "./hrtfs/elev15/L15e320a.dat" -[ 21, 9 ] = ascii (fp) : "./hrtfs/elev15/L15e315a.dat" -[ 21, 10 ] = ascii (fp) : "./hrtfs/elev15/L15e310a.dat" -[ 21, 11 ] = ascii (fp) : "./hrtfs/elev15/L15e305a.dat" -[ 21, 12 ] = ascii (fp) : "./hrtfs/elev15/L15e300a.dat" -[ 21, 13 ] = ascii (fp) : "./hrtfs/elev15/L15e295a.dat" -[ 21, 14 ] = ascii (fp) : "./hrtfs/elev15/L15e290a.dat" -[ 21, 15 ] = ascii (fp) : "./hrtfs/elev15/L15e285a.dat" -[ 21, 16 ] = ascii (fp) : "./hrtfs/elev15/L15e280a.dat" -[ 21, 17 ] = ascii (fp) : "./hrtfs/elev15/L15e275a.dat" -[ 21, 18 ] = ascii (fp) : "./hrtfs/elev15/L15e270a.dat" -[ 21, 19 ] = ascii (fp) : "./hrtfs/elev15/L15e265a.dat" -[ 21, 20 ] = ascii (fp) : "./hrtfs/elev15/L15e260a.dat" -[ 21, 21 ] = ascii (fp) : "./hrtfs/elev15/L15e255a.dat" -[ 21, 22 ] = ascii (fp) : "./hrtfs/elev15/L15e250a.dat" -[ 21, 23 ] = ascii (fp) : "./hrtfs/elev15/L15e245a.dat" -[ 21, 24 ] = ascii (fp) : "./hrtfs/elev15/L15e240a.dat" -[ 21, 25 ] = ascii (fp) : "./hrtfs/elev15/L15e235a.dat" -[ 21, 26 ] = ascii (fp) : "./hrtfs/elev15/L15e230a.dat" -[ 21, 27 ] = ascii (fp) : "./hrtfs/elev15/L15e225a.dat" -[ 21, 28 ] = ascii (fp) : "./hrtfs/elev15/L15e220a.dat" -[ 21, 29 ] = ascii (fp) : "./hrtfs/elev15/L15e215a.dat" -[ 21, 30 ] = ascii (fp) : "./hrtfs/elev15/L15e210a.dat" -[ 21, 31 ] = ascii (fp) : "./hrtfs/elev15/L15e205a.dat" -[ 21, 32 ] = ascii (fp) : "./hrtfs/elev15/L15e200a.dat" -[ 21, 33 ] = ascii (fp) : "./hrtfs/elev15/L15e195a.dat" -[ 21, 34 ] = ascii (fp) : "./hrtfs/elev15/L15e190a.dat" -[ 21, 35 ] = ascii (fp) : "./hrtfs/elev15/L15e185a.dat" -[ 21, 36 ] = ascii (fp) : "./hrtfs/elev15/L15e180a.dat" -[ 21, 37 ] = ascii (fp) : "./hrtfs/elev15/L15e175a.dat" -[ 21, 38 ] = ascii (fp) : "./hrtfs/elev15/L15e170a.dat" -[ 21, 39 ] = ascii (fp) : "./hrtfs/elev15/L15e165a.dat" -[ 21, 40 ] = ascii (fp) : "./hrtfs/elev15/L15e160a.dat" -[ 21, 41 ] = ascii (fp) : "./hrtfs/elev15/L15e155a.dat" -[ 21, 42 ] = ascii (fp) : "./hrtfs/elev15/L15e150a.dat" -[ 21, 43 ] = ascii (fp) : "./hrtfs/elev15/L15e145a.dat" -[ 21, 44 ] = ascii (fp) : "./hrtfs/elev15/L15e140a.dat" -[ 21, 45 ] = ascii (fp) : "./hrtfs/elev15/L15e135a.dat" -[ 21, 46 ] = ascii (fp) : "./hrtfs/elev15/L15e130a.dat" -[ 21, 47 ] = ascii (fp) : "./hrtfs/elev15/L15e125a.dat" -[ 21, 48 ] = ascii (fp) : "./hrtfs/elev15/L15e120a.dat" -[ 21, 49 ] = ascii (fp) : "./hrtfs/elev15/L15e115a.dat" -[ 21, 50 ] = ascii (fp) : "./hrtfs/elev15/L15e110a.dat" -[ 21, 51 ] = ascii (fp) : "./hrtfs/elev15/L15e105a.dat" -[ 21, 52 ] = ascii (fp) : "./hrtfs/elev15/L15e100a.dat" -[ 21, 53 ] = ascii (fp) : "./hrtfs/elev15/L15e095a.dat" -[ 21, 54 ] = ascii (fp) : "./hrtfs/elev15/L15e090a.dat" -[ 21, 55 ] = ascii (fp) : "./hrtfs/elev15/L15e085a.dat" -[ 21, 56 ] = ascii (fp) : "./hrtfs/elev15/L15e080a.dat" -[ 21, 57 ] = ascii (fp) : "./hrtfs/elev15/L15e075a.dat" -[ 21, 58 ] = ascii (fp) : "./hrtfs/elev15/L15e070a.dat" -[ 21, 59 ] = ascii (fp) : "./hrtfs/elev15/L15e065a.dat" -[ 21, 60 ] = ascii (fp) : "./hrtfs/elev15/L15e060a.dat" -[ 21, 61 ] = ascii (fp) : "./hrtfs/elev15/L15e055a.dat" -[ 21, 62 ] = ascii (fp) : "./hrtfs/elev15/L15e050a.dat" -[ 21, 63 ] = ascii (fp) : "./hrtfs/elev15/L15e045a.dat" -[ 21, 64 ] = ascii (fp) : "./hrtfs/elev15/L15e040a.dat" -[ 21, 65 ] = ascii (fp) : "./hrtfs/elev15/L15e035a.dat" -[ 21, 66 ] = ascii (fp) : "./hrtfs/elev15/L15e030a.dat" -[ 21, 67 ] = ascii (fp) : "./hrtfs/elev15/L15e025a.dat" -[ 21, 68 ] = ascii (fp) : "./hrtfs/elev15/L15e020a.dat" -[ 21, 69 ] = ascii (fp) : "./hrtfs/elev15/L15e015a.dat" -[ 21, 70 ] = ascii (fp) : "./hrtfs/elev15/L15e010a.dat" -[ 21, 71 ] = ascii (fp) : "./hrtfs/elev15/L15e005a.dat" - -[ 22, 0 ] = ascii (fp) : "./hrtfs/elev20/L20e000a.dat" -[ 22, 1 ] = ascii (fp) : "./hrtfs/elev20/L20e355a.dat" -[ 22, 2 ] = ascii (fp) : "./hrtfs/elev20/L20e350a.dat" -[ 22, 3 ] = ascii (fp) : "./hrtfs/elev20/L20e345a.dat" -[ 22, 4 ] = ascii (fp) : "./hrtfs/elev20/L20e340a.dat" -[ 22, 5 ] = ascii (fp) : "./hrtfs/elev20/L20e335a.dat" -[ 22, 6 ] = ascii (fp) : "./hrtfs/elev20/L20e330a.dat" -[ 22, 7 ] = ascii (fp) : "./hrtfs/elev20/L20e325a.dat" -[ 22, 8 ] = ascii (fp) : "./hrtfs/elev20/L20e320a.dat" -[ 22, 9 ] = ascii (fp) : "./hrtfs/elev20/L20e315a.dat" -[ 22, 10 ] = ascii (fp) : "./hrtfs/elev20/L20e310a.dat" -[ 22, 11 ] = ascii (fp) : "./hrtfs/elev20/L20e305a.dat" -[ 22, 12 ] = ascii (fp) : "./hrtfs/elev20/L20e300a.dat" -[ 22, 13 ] = ascii (fp) : "./hrtfs/elev20/L20e295a.dat" -[ 22, 14 ] = ascii (fp) : "./hrtfs/elev20/L20e290a.dat" -[ 22, 15 ] = ascii (fp) : "./hrtfs/elev20/L20e285a.dat" -[ 22, 16 ] = ascii (fp) : "./hrtfs/elev20/L20e280a.dat" -[ 22, 17 ] = ascii (fp) : "./hrtfs/elev20/L20e275a.dat" -[ 22, 18 ] = ascii (fp) : "./hrtfs/elev20/L20e270a.dat" -[ 22, 19 ] = ascii (fp) : "./hrtfs/elev20/L20e265a.dat" -[ 22, 20 ] = ascii (fp) : "./hrtfs/elev20/L20e260a.dat" -[ 22, 21 ] = ascii (fp) : "./hrtfs/elev20/L20e255a.dat" -[ 22, 22 ] = ascii (fp) : "./hrtfs/elev20/L20e250a.dat" -[ 22, 23 ] = ascii (fp) : "./hrtfs/elev20/L20e245a.dat" -[ 22, 24 ] = ascii (fp) : "./hrtfs/elev20/L20e240a.dat" -[ 22, 25 ] = ascii (fp) : "./hrtfs/elev20/L20e235a.dat" -[ 22, 26 ] = ascii (fp) : "./hrtfs/elev20/L20e230a.dat" -[ 22, 27 ] = ascii (fp) : "./hrtfs/elev20/L20e225a.dat" -[ 22, 28 ] = ascii (fp) : "./hrtfs/elev20/L20e220a.dat" -[ 22, 29 ] = ascii (fp) : "./hrtfs/elev20/L20e215a.dat" -[ 22, 30 ] = ascii (fp) : "./hrtfs/elev20/L20e210a.dat" -[ 22, 31 ] = ascii (fp) : "./hrtfs/elev20/L20e205a.dat" -[ 22, 32 ] = ascii (fp) : "./hrtfs/elev20/L20e200a.dat" -[ 22, 33 ] = ascii (fp) : "./hrtfs/elev20/L20e195a.dat" -[ 22, 34 ] = ascii (fp) : "./hrtfs/elev20/L20e190a.dat" -[ 22, 35 ] = ascii (fp) : "./hrtfs/elev20/L20e185a.dat" -[ 22, 36 ] = ascii (fp) : "./hrtfs/elev20/L20e180a.dat" -[ 22, 37 ] = ascii (fp) : "./hrtfs/elev20/L20e175a.dat" -[ 22, 38 ] = ascii (fp) : "./hrtfs/elev20/L20e170a.dat" -[ 22, 39 ] = ascii (fp) : "./hrtfs/elev20/L20e165a.dat" -[ 22, 40 ] = ascii (fp) : "./hrtfs/elev20/L20e160a.dat" -[ 22, 41 ] = ascii (fp) : "./hrtfs/elev20/L20e155a.dat" -[ 22, 42 ] = ascii (fp) : "./hrtfs/elev20/L20e150a.dat" -[ 22, 43 ] = ascii (fp) : "./hrtfs/elev20/L20e145a.dat" -[ 22, 44 ] = ascii (fp) : "./hrtfs/elev20/L20e140a.dat" -[ 22, 45 ] = ascii (fp) : "./hrtfs/elev20/L20e135a.dat" -[ 22, 46 ] = ascii (fp) : "./hrtfs/elev20/L20e130a.dat" -[ 22, 47 ] = ascii (fp) : "./hrtfs/elev20/L20e125a.dat" -[ 22, 48 ] = ascii (fp) : "./hrtfs/elev20/L20e120a.dat" -[ 22, 49 ] = ascii (fp) : "./hrtfs/elev20/L20e115a.dat" -[ 22, 50 ] = ascii (fp) : "./hrtfs/elev20/L20e110a.dat" -[ 22, 51 ] = ascii (fp) : "./hrtfs/elev20/L20e105a.dat" -[ 22, 52 ] = ascii (fp) : "./hrtfs/elev20/L20e100a.dat" -[ 22, 53 ] = ascii (fp) : "./hrtfs/elev20/L20e095a.dat" -[ 22, 54 ] = ascii (fp) : "./hrtfs/elev20/L20e090a.dat" -[ 22, 55 ] = ascii (fp) : "./hrtfs/elev20/L20e085a.dat" -[ 22, 56 ] = ascii (fp) : "./hrtfs/elev20/L20e080a.dat" -[ 22, 57 ] = ascii (fp) : "./hrtfs/elev20/L20e075a.dat" -[ 22, 58 ] = ascii (fp) : "./hrtfs/elev20/L20e070a.dat" -[ 22, 59 ] = ascii (fp) : "./hrtfs/elev20/L20e065a.dat" -[ 22, 60 ] = ascii (fp) : "./hrtfs/elev20/L20e060a.dat" -[ 22, 61 ] = ascii (fp) : "./hrtfs/elev20/L20e055a.dat" -[ 22, 62 ] = ascii (fp) : "./hrtfs/elev20/L20e050a.dat" -[ 22, 63 ] = ascii (fp) : "./hrtfs/elev20/L20e045a.dat" -[ 22, 64 ] = ascii (fp) : "./hrtfs/elev20/L20e040a.dat" -[ 22, 65 ] = ascii (fp) : "./hrtfs/elev20/L20e035a.dat" -[ 22, 66 ] = ascii (fp) : "./hrtfs/elev20/L20e030a.dat" -[ 22, 67 ] = ascii (fp) : "./hrtfs/elev20/L20e025a.dat" -[ 22, 68 ] = ascii (fp) : "./hrtfs/elev20/L20e020a.dat" -[ 22, 69 ] = ascii (fp) : "./hrtfs/elev20/L20e015a.dat" -[ 22, 70 ] = ascii (fp) : "./hrtfs/elev20/L20e010a.dat" -[ 22, 71 ] = ascii (fp) : "./hrtfs/elev20/L20e005a.dat" - -[ 23, 0 ] = ascii (fp) : "./hrtfs/elev25/L25e000a.dat" -[ 23, 1 ] = ascii (fp) : "./hrtfs/elev25/L25e355a.dat" -[ 23, 2 ] = ascii (fp) : "./hrtfs/elev25/L25e350a.dat" -[ 23, 3 ] = ascii (fp) : "./hrtfs/elev25/L25e345a.dat" -[ 23, 4 ] = ascii (fp) : "./hrtfs/elev25/L25e340a.dat" -[ 23, 5 ] = ascii (fp) : "./hrtfs/elev25/L25e335a.dat" -[ 23, 6 ] = ascii (fp) : "./hrtfs/elev25/L25e330a.dat" -[ 23, 7 ] = ascii (fp) : "./hrtfs/elev25/L25e325a.dat" -[ 23, 8 ] = ascii (fp) : "./hrtfs/elev25/L25e320a.dat" -[ 23, 9 ] = ascii (fp) : "./hrtfs/elev25/L25e315a.dat" -[ 23, 10 ] = ascii (fp) : "./hrtfs/elev25/L25e310a.dat" -[ 23, 11 ] = ascii (fp) : "./hrtfs/elev25/L25e305a.dat" -[ 23, 12 ] = ascii (fp) : "./hrtfs/elev25/L25e300a.dat" -[ 23, 13 ] = ascii (fp) : "./hrtfs/elev25/L25e295a.dat" -[ 23, 14 ] = ascii (fp) : "./hrtfs/elev25/L25e290a.dat" -[ 23, 15 ] = ascii (fp) : "./hrtfs/elev25/L25e285a.dat" -[ 23, 16 ] = ascii (fp) : "./hrtfs/elev25/L25e280a.dat" -[ 23, 17 ] = ascii (fp) : "./hrtfs/elev25/L25e275a.dat" -[ 23, 18 ] = ascii (fp) : "./hrtfs/elev25/L25e270a.dat" -[ 23, 19 ] = ascii (fp) : "./hrtfs/elev25/L25e265a.dat" -[ 23, 20 ] = ascii (fp) : "./hrtfs/elev25/L25e260a.dat" -[ 23, 21 ] = ascii (fp) : "./hrtfs/elev25/L25e255a.dat" -[ 23, 22 ] = ascii (fp) : "./hrtfs/elev25/L25e250a.dat" -[ 23, 23 ] = ascii (fp) : "./hrtfs/elev25/L25e245a.dat" -[ 23, 24 ] = ascii (fp) : "./hrtfs/elev25/L25e240a.dat" -[ 23, 25 ] = ascii (fp) : "./hrtfs/elev25/L25e235a.dat" -[ 23, 26 ] = ascii (fp) : "./hrtfs/elev25/L25e230a.dat" -[ 23, 27 ] = ascii (fp) : "./hrtfs/elev25/L25e225a.dat" -[ 23, 28 ] = ascii (fp) : "./hrtfs/elev25/L25e220a.dat" -[ 23, 29 ] = ascii (fp) : "./hrtfs/elev25/L25e215a.dat" -[ 23, 30 ] = ascii (fp) : "./hrtfs/elev25/L25e210a.dat" -[ 23, 31 ] = ascii (fp) : "./hrtfs/elev25/L25e205a.dat" -[ 23, 32 ] = ascii (fp) : "./hrtfs/elev25/L25e200a.dat" -[ 23, 33 ] = ascii (fp) : "./hrtfs/elev25/L25e195a.dat" -[ 23, 34 ] = ascii (fp) : "./hrtfs/elev25/L25e190a.dat" -[ 23, 35 ] = ascii (fp) : "./hrtfs/elev25/L25e185a.dat" -[ 23, 36 ] = ascii (fp) : "./hrtfs/elev25/L25e180a.dat" -[ 23, 37 ] = ascii (fp) : "./hrtfs/elev25/L25e175a.dat" -[ 23, 38 ] = ascii (fp) : "./hrtfs/elev25/L25e170a.dat" -[ 23, 39 ] = ascii (fp) : "./hrtfs/elev25/L25e165a.dat" -[ 23, 40 ] = ascii (fp) : "./hrtfs/elev25/L25e160a.dat" -[ 23, 41 ] = ascii (fp) : "./hrtfs/elev25/L25e155a.dat" -[ 23, 42 ] = ascii (fp) : "./hrtfs/elev25/L25e150a.dat" -[ 23, 43 ] = ascii (fp) : "./hrtfs/elev25/L25e145a.dat" -[ 23, 44 ] = ascii (fp) : "./hrtfs/elev25/L25e140a.dat" -[ 23, 45 ] = ascii (fp) : "./hrtfs/elev25/L25e135a.dat" -[ 23, 46 ] = ascii (fp) : "./hrtfs/elev25/L25e130a.dat" -[ 23, 47 ] = ascii (fp) : "./hrtfs/elev25/L25e125a.dat" -[ 23, 48 ] = ascii (fp) : "./hrtfs/elev25/L25e120a.dat" -[ 23, 49 ] = ascii (fp) : "./hrtfs/elev25/L25e115a.dat" -[ 23, 50 ] = ascii (fp) : "./hrtfs/elev25/L25e110a.dat" -[ 23, 51 ] = ascii (fp) : "./hrtfs/elev25/L25e105a.dat" -[ 23, 52 ] = ascii (fp) : "./hrtfs/elev25/L25e100a.dat" -[ 23, 53 ] = ascii (fp) : "./hrtfs/elev25/L25e095a.dat" -[ 23, 54 ] = ascii (fp) : "./hrtfs/elev25/L25e090a.dat" -[ 23, 55 ] = ascii (fp) : "./hrtfs/elev25/L25e085a.dat" -[ 23, 56 ] = ascii (fp) : "./hrtfs/elev25/L25e080a.dat" -[ 23, 57 ] = ascii (fp) : "./hrtfs/elev25/L25e075a.dat" -[ 23, 58 ] = ascii (fp) : "./hrtfs/elev25/L25e070a.dat" -[ 23, 59 ] = ascii (fp) : "./hrtfs/elev25/L25e065a.dat" -[ 23, 60 ] = ascii (fp) : "./hrtfs/elev25/L25e060a.dat" -[ 23, 61 ] = ascii (fp) : "./hrtfs/elev25/L25e055a.dat" -[ 23, 62 ] = ascii (fp) : "./hrtfs/elev25/L25e050a.dat" -[ 23, 63 ] = ascii (fp) : "./hrtfs/elev25/L25e045a.dat" -[ 23, 64 ] = ascii (fp) : "./hrtfs/elev25/L25e040a.dat" -[ 23, 65 ] = ascii (fp) : "./hrtfs/elev25/L25e035a.dat" -[ 23, 66 ] = ascii (fp) : "./hrtfs/elev25/L25e030a.dat" -[ 23, 67 ] = ascii (fp) : "./hrtfs/elev25/L25e025a.dat" -[ 23, 68 ] = ascii (fp) : "./hrtfs/elev25/L25e020a.dat" -[ 23, 69 ] = ascii (fp) : "./hrtfs/elev25/L25e015a.dat" -[ 23, 70 ] = ascii (fp) : "./hrtfs/elev25/L25e010a.dat" -[ 23, 71 ] = ascii (fp) : "./hrtfs/elev25/L25e005a.dat" - -[ 24, 0 ] = ascii (fp) : "./hrtfs/elev30/L30e000a.dat" -[ 24, 1 ] = ascii (fp) : "./hrtfs/elev30/L30e355a.dat" -[ 24, 2 ] = ascii (fp) : "./hrtfs/elev30/L30e350a.dat" -[ 24, 3 ] = ascii (fp) : "./hrtfs/elev30/L30e345a.dat" -[ 24, 4 ] = ascii (fp) : "./hrtfs/elev30/L30e340a.dat" -[ 24, 5 ] = ascii (fp) : "./hrtfs/elev30/L30e335a.dat" -[ 24, 6 ] = ascii (fp) : "./hrtfs/elev30/L30e330a.dat" -[ 24, 7 ] = ascii (fp) : "./hrtfs/elev30/L30e325a.dat" -[ 24, 8 ] = ascii (fp) : "./hrtfs/elev30/L30e320a.dat" -[ 24, 9 ] = ascii (fp) : "./hrtfs/elev30/L30e315a.dat" -[ 24, 10 ] = ascii (fp) : "./hrtfs/elev30/L30e310a.dat" -[ 24, 11 ] = ascii (fp) : "./hrtfs/elev30/L30e305a.dat" -[ 24, 12 ] = ascii (fp) : "./hrtfs/elev30/L30e300a.dat" -[ 24, 13 ] = ascii (fp) : "./hrtfs/elev30/L30e295a.dat" -[ 24, 14 ] = ascii (fp) : "./hrtfs/elev30/L30e290a.dat" -[ 24, 15 ] = ascii (fp) : "./hrtfs/elev30/L30e285a.dat" -[ 24, 16 ] = ascii (fp) : "./hrtfs/elev30/L30e280a.dat" -[ 24, 17 ] = ascii (fp) : "./hrtfs/elev30/L30e275a.dat" -[ 24, 18 ] = ascii (fp) : "./hrtfs/elev30/L30e270a.dat" -[ 24, 19 ] = ascii (fp) : "./hrtfs/elev30/L30e265a.dat" -[ 24, 20 ] = ascii (fp) : "./hrtfs/elev30/L30e260a.dat" -[ 24, 21 ] = ascii (fp) : "./hrtfs/elev30/L30e255a.dat" -[ 24, 22 ] = ascii (fp) : "./hrtfs/elev30/L30e250a.dat" -[ 24, 23 ] = ascii (fp) : "./hrtfs/elev30/L30e245a.dat" -[ 24, 24 ] = ascii (fp) : "./hrtfs/elev30/L30e240a.dat" -[ 24, 25 ] = ascii (fp) : "./hrtfs/elev30/L30e235a.dat" -[ 24, 26 ] = ascii (fp) : "./hrtfs/elev30/L30e230a.dat" -[ 24, 27 ] = ascii (fp) : "./hrtfs/elev30/L30e225a.dat" -[ 24, 28 ] = ascii (fp) : "./hrtfs/elev30/L30e220a.dat" -[ 24, 29 ] = ascii (fp) : "./hrtfs/elev30/L30e215a.dat" -[ 24, 30 ] = ascii (fp) : "./hrtfs/elev30/L30e210a.dat" -[ 24, 31 ] = ascii (fp) : "./hrtfs/elev30/L30e205a.dat" -[ 24, 32 ] = ascii (fp) : "./hrtfs/elev30/L30e200a.dat" -[ 24, 33 ] = ascii (fp) : "./hrtfs/elev30/L30e195a.dat" -[ 24, 34 ] = ascii (fp) : "./hrtfs/elev30/L30e190a.dat" -[ 24, 35 ] = ascii (fp) : "./hrtfs/elev30/L30e185a.dat" -[ 24, 36 ] = ascii (fp) : "./hrtfs/elev30/L30e180a.dat" -[ 24, 37 ] = ascii (fp) : "./hrtfs/elev30/L30e175a.dat" -[ 24, 38 ] = ascii (fp) : "./hrtfs/elev30/L30e170a.dat" -[ 24, 39 ] = ascii (fp) : "./hrtfs/elev30/L30e165a.dat" -[ 24, 40 ] = ascii (fp) : "./hrtfs/elev30/L30e160a.dat" -[ 24, 41 ] = ascii (fp) : "./hrtfs/elev30/L30e155a.dat" -[ 24, 42 ] = ascii (fp) : "./hrtfs/elev30/L30e150a.dat" -[ 24, 43 ] = ascii (fp) : "./hrtfs/elev30/L30e145a.dat" -[ 24, 44 ] = ascii (fp) : "./hrtfs/elev30/L30e140a.dat" -[ 24, 45 ] = ascii (fp) : "./hrtfs/elev30/L30e135a.dat" -[ 24, 46 ] = ascii (fp) : "./hrtfs/elev30/L30e130a.dat" -[ 24, 47 ] = ascii (fp) : "./hrtfs/elev30/L30e125a.dat" -[ 24, 48 ] = ascii (fp) : "./hrtfs/elev30/L30e120a.dat" -[ 24, 49 ] = ascii (fp) : "./hrtfs/elev30/L30e115a.dat" -[ 24, 50 ] = ascii (fp) : "./hrtfs/elev30/L30e110a.dat" -[ 24, 51 ] = ascii (fp) : "./hrtfs/elev30/L30e105a.dat" -[ 24, 52 ] = ascii (fp) : "./hrtfs/elev30/L30e100a.dat" -[ 24, 53 ] = ascii (fp) : "./hrtfs/elev30/L30e095a.dat" -[ 24, 54 ] = ascii (fp) : "./hrtfs/elev30/L30e090a.dat" -[ 24, 55 ] = ascii (fp) : "./hrtfs/elev30/L30e085a.dat" -[ 24, 56 ] = ascii (fp) : "./hrtfs/elev30/L30e080a.dat" -[ 24, 57 ] = ascii (fp) : "./hrtfs/elev30/L30e075a.dat" -[ 24, 58 ] = ascii (fp) : "./hrtfs/elev30/L30e070a.dat" -[ 24, 59 ] = ascii (fp) : "./hrtfs/elev30/L30e065a.dat" -[ 24, 60 ] = ascii (fp) : "./hrtfs/elev30/L30e060a.dat" -[ 24, 61 ] = ascii (fp) : "./hrtfs/elev30/L30e055a.dat" -[ 24, 62 ] = ascii (fp) : "./hrtfs/elev30/L30e050a.dat" -[ 24, 63 ] = ascii (fp) : "./hrtfs/elev30/L30e045a.dat" -[ 24, 64 ] = ascii (fp) : "./hrtfs/elev30/L30e040a.dat" -[ 24, 65 ] = ascii (fp) : "./hrtfs/elev30/L30e035a.dat" -[ 24, 66 ] = ascii (fp) : "./hrtfs/elev30/L30e030a.dat" -[ 24, 67 ] = ascii (fp) : "./hrtfs/elev30/L30e025a.dat" -[ 24, 68 ] = ascii (fp) : "./hrtfs/elev30/L30e020a.dat" -[ 24, 69 ] = ascii (fp) : "./hrtfs/elev30/L30e015a.dat" -[ 24, 70 ] = ascii (fp) : "./hrtfs/elev30/L30e010a.dat" -[ 24, 71 ] = ascii (fp) : "./hrtfs/elev30/L30e005a.dat" - -[ 25, 0 ] = ascii (fp) : "./hrtfs/elev35/L35e000a.dat" -[ 25, 1 ] = ascii (fp) : "./hrtfs/elev35/L35e355a.dat" -[ 25, 2 ] = ascii (fp) : "./hrtfs/elev35/L35e350a.dat" -[ 25, 3 ] = ascii (fp) : "./hrtfs/elev35/L35e345a.dat" -[ 25, 4 ] = ascii (fp) : "./hrtfs/elev35/L35e340a.dat" -[ 25, 5 ] = ascii (fp) : "./hrtfs/elev35/L35e335a.dat" -[ 25, 6 ] = ascii (fp) : "./hrtfs/elev35/L35e330a.dat" -[ 25, 7 ] = ascii (fp) : "./hrtfs/elev35/L35e325a.dat" -[ 25, 8 ] = ascii (fp) : "./hrtfs/elev35/L35e320a.dat" -[ 25, 9 ] = ascii (fp) : "./hrtfs/elev35/L35e315a.dat" -[ 25, 10 ] = ascii (fp) : "./hrtfs/elev35/L35e310a.dat" -[ 25, 11 ] = ascii (fp) : "./hrtfs/elev35/L35e305a.dat" -[ 25, 12 ] = ascii (fp) : "./hrtfs/elev35/L35e300a.dat" -[ 25, 13 ] = ascii (fp) : "./hrtfs/elev35/L35e295a.dat" -[ 25, 14 ] = ascii (fp) : "./hrtfs/elev35/L35e290a.dat" -[ 25, 15 ] = ascii (fp) : "./hrtfs/elev35/L35e285a.dat" -[ 25, 16 ] = ascii (fp) : "./hrtfs/elev35/L35e280a.dat" -[ 25, 17 ] = ascii (fp) : "./hrtfs/elev35/L35e275a.dat" -[ 25, 18 ] = ascii (fp) : "./hrtfs/elev35/L35e270a.dat" -[ 25, 19 ] = ascii (fp) : "./hrtfs/elev35/L35e265a.dat" -[ 25, 20 ] = ascii (fp) : "./hrtfs/elev35/L35e260a.dat" -[ 25, 21 ] = ascii (fp) : "./hrtfs/elev35/L35e255a.dat" -[ 25, 22 ] = ascii (fp) : "./hrtfs/elev35/L35e250a.dat" -[ 25, 23 ] = ascii (fp) : "./hrtfs/elev35/L35e245a.dat" -[ 25, 24 ] = ascii (fp) : "./hrtfs/elev35/L35e240a.dat" -[ 25, 25 ] = ascii (fp) : "./hrtfs/elev35/L35e235a.dat" -[ 25, 26 ] = ascii (fp) : "./hrtfs/elev35/L35e230a.dat" -[ 25, 27 ] = ascii (fp) : "./hrtfs/elev35/L35e225a.dat" -[ 25, 28 ] = ascii (fp) : "./hrtfs/elev35/L35e220a.dat" -[ 25, 29 ] = ascii (fp) : "./hrtfs/elev35/L35e215a.dat" -[ 25, 30 ] = ascii (fp) : "./hrtfs/elev35/L35e210a.dat" -[ 25, 31 ] = ascii (fp) : "./hrtfs/elev35/L35e205a.dat" -[ 25, 32 ] = ascii (fp) : "./hrtfs/elev35/L35e200a.dat" -[ 25, 33 ] = ascii (fp) : "./hrtfs/elev35/L35e195a.dat" -[ 25, 34 ] = ascii (fp) : "./hrtfs/elev35/L35e190a.dat" -[ 25, 35 ] = ascii (fp) : "./hrtfs/elev35/L35e185a.dat" -[ 25, 36 ] = ascii (fp) : "./hrtfs/elev35/L35e180a.dat" -[ 25, 37 ] = ascii (fp) : "./hrtfs/elev35/L35e175a.dat" -[ 25, 38 ] = ascii (fp) : "./hrtfs/elev35/L35e170a.dat" -[ 25, 39 ] = ascii (fp) : "./hrtfs/elev35/L35e165a.dat" -[ 25, 40 ] = ascii (fp) : "./hrtfs/elev35/L35e160a.dat" -[ 25, 41 ] = ascii (fp) : "./hrtfs/elev35/L35e155a.dat" -[ 25, 42 ] = ascii (fp) : "./hrtfs/elev35/L35e150a.dat" -[ 25, 43 ] = ascii (fp) : "./hrtfs/elev35/L35e145a.dat" -[ 25, 44 ] = ascii (fp) : "./hrtfs/elev35/L35e140a.dat" -[ 25, 45 ] = ascii (fp) : "./hrtfs/elev35/L35e135a.dat" -[ 25, 46 ] = ascii (fp) : "./hrtfs/elev35/L35e130a.dat" -[ 25, 47 ] = ascii (fp) : "./hrtfs/elev35/L35e125a.dat" -[ 25, 48 ] = ascii (fp) : "./hrtfs/elev35/L35e120a.dat" -[ 25, 49 ] = ascii (fp) : "./hrtfs/elev35/L35e115a.dat" -[ 25, 50 ] = ascii (fp) : "./hrtfs/elev35/L35e110a.dat" -[ 25, 51 ] = ascii (fp) : "./hrtfs/elev35/L35e105a.dat" -[ 25, 52 ] = ascii (fp) : "./hrtfs/elev35/L35e100a.dat" -[ 25, 53 ] = ascii (fp) : "./hrtfs/elev35/L35e095a.dat" -[ 25, 54 ] = ascii (fp) : "./hrtfs/elev35/L35e090a.dat" -[ 25, 55 ] = ascii (fp) : "./hrtfs/elev35/L35e085a.dat" -[ 25, 56 ] = ascii (fp) : "./hrtfs/elev35/L35e080a.dat" -[ 25, 57 ] = ascii (fp) : "./hrtfs/elev35/L35e075a.dat" -[ 25, 58 ] = ascii (fp) : "./hrtfs/elev35/L35e070a.dat" -[ 25, 59 ] = ascii (fp) : "./hrtfs/elev35/L35e065a.dat" -[ 25, 60 ] = ascii (fp) : "./hrtfs/elev35/L35e060a.dat" -[ 25, 61 ] = ascii (fp) : "./hrtfs/elev35/L35e055a.dat" -[ 25, 62 ] = ascii (fp) : "./hrtfs/elev35/L35e050a.dat" -[ 25, 63 ] = ascii (fp) : "./hrtfs/elev35/L35e045a.dat" -[ 25, 64 ] = ascii (fp) : "./hrtfs/elev35/L35e040a.dat" -[ 25, 65 ] = ascii (fp) : "./hrtfs/elev35/L35e035a.dat" -[ 25, 66 ] = ascii (fp) : "./hrtfs/elev35/L35e030a.dat" -[ 25, 67 ] = ascii (fp) : "./hrtfs/elev35/L35e025a.dat" -[ 25, 68 ] = ascii (fp) : "./hrtfs/elev35/L35e020a.dat" -[ 25, 69 ] = ascii (fp) : "./hrtfs/elev35/L35e015a.dat" -[ 25, 70 ] = ascii (fp) : "./hrtfs/elev35/L35e010a.dat" -[ 25, 71 ] = ascii (fp) : "./hrtfs/elev35/L35e005a.dat" - -[ 26, 0 ] = ascii (fp) : "./hrtfs/elev40/L40e000a.dat" -[ 26, 1 ] = ascii (fp) : "./hrtfs/elev40/L40e355a.dat" -[ 26, 2 ] = ascii (fp) : "./hrtfs/elev40/L40e350a.dat" -[ 26, 3 ] = ascii (fp) : "./hrtfs/elev40/L40e345a.dat" -[ 26, 4 ] = ascii (fp) : "./hrtfs/elev40/L40e340a.dat" -[ 26, 5 ] = ascii (fp) : "./hrtfs/elev40/L40e335a.dat" -[ 26, 6 ] = ascii (fp) : "./hrtfs/elev40/L40e330a.dat" -[ 26, 7 ] = ascii (fp) : "./hrtfs/elev40/L40e325a.dat" -[ 26, 8 ] = ascii (fp) : "./hrtfs/elev40/L40e320a.dat" -[ 26, 9 ] = ascii (fp) : "./hrtfs/elev40/L40e315a.dat" -[ 26, 10 ] = ascii (fp) : "./hrtfs/elev40/L40e310a.dat" -[ 26, 11 ] = ascii (fp) : "./hrtfs/elev40/L40e305a.dat" -[ 26, 12 ] = ascii (fp) : "./hrtfs/elev40/L40e300a.dat" -[ 26, 13 ] = ascii (fp) : "./hrtfs/elev40/L40e295a.dat" -[ 26, 14 ] = ascii (fp) : "./hrtfs/elev40/L40e290a.dat" -[ 26, 15 ] = ascii (fp) : "./hrtfs/elev40/L40e285a.dat" -[ 26, 16 ] = ascii (fp) : "./hrtfs/elev40/L40e280a.dat" -[ 26, 17 ] = ascii (fp) : "./hrtfs/elev40/L40e275a.dat" -[ 26, 18 ] = ascii (fp) : "./hrtfs/elev40/L40e270a.dat" -[ 26, 19 ] = ascii (fp) : "./hrtfs/elev40/L40e265a.dat" -[ 26, 20 ] = ascii (fp) : "./hrtfs/elev40/L40e260a.dat" -[ 26, 21 ] = ascii (fp) : "./hrtfs/elev40/L40e255a.dat" -[ 26, 22 ] = ascii (fp) : "./hrtfs/elev40/L40e250a.dat" -[ 26, 23 ] = ascii (fp) : "./hrtfs/elev40/L40e245a.dat" -[ 26, 24 ] = ascii (fp) : "./hrtfs/elev40/L40e240a.dat" -[ 26, 25 ] = ascii (fp) : "./hrtfs/elev40/L40e235a.dat" -[ 26, 26 ] = ascii (fp) : "./hrtfs/elev40/L40e230a.dat" -[ 26, 27 ] = ascii (fp) : "./hrtfs/elev40/L40e225a.dat" -[ 26, 28 ] = ascii (fp) : "./hrtfs/elev40/L40e220a.dat" -[ 26, 29 ] = ascii (fp) : "./hrtfs/elev40/L40e215a.dat" -[ 26, 30 ] = ascii (fp) : "./hrtfs/elev40/L40e210a.dat" -[ 26, 31 ] = ascii (fp) : "./hrtfs/elev40/L40e205a.dat" -[ 26, 32 ] = ascii (fp) : "./hrtfs/elev40/L40e200a.dat" -[ 26, 33 ] = ascii (fp) : "./hrtfs/elev40/L40e195a.dat" -[ 26, 34 ] = ascii (fp) : "./hrtfs/elev40/L40e190a.dat" -[ 26, 35 ] = ascii (fp) : "./hrtfs/elev40/L40e185a.dat" -[ 26, 36 ] = ascii (fp) : "./hrtfs/elev40/L40e180a.dat" -[ 26, 37 ] = ascii (fp) : "./hrtfs/elev40/L40e175a.dat" -[ 26, 38 ] = ascii (fp) : "./hrtfs/elev40/L40e170a.dat" -[ 26, 39 ] = ascii (fp) : "./hrtfs/elev40/L40e165a.dat" -[ 26, 40 ] = ascii (fp) : "./hrtfs/elev40/L40e160a.dat" -[ 26, 41 ] = ascii (fp) : "./hrtfs/elev40/L40e155a.dat" -[ 26, 42 ] = ascii (fp) : "./hrtfs/elev40/L40e150a.dat" -[ 26, 43 ] = ascii (fp) : "./hrtfs/elev40/L40e145a.dat" -[ 26, 44 ] = ascii (fp) : "./hrtfs/elev40/L40e140a.dat" -[ 26, 45 ] = ascii (fp) : "./hrtfs/elev40/L40e135a.dat" -[ 26, 46 ] = ascii (fp) : "./hrtfs/elev40/L40e130a.dat" -[ 26, 47 ] = ascii (fp) : "./hrtfs/elev40/L40e125a.dat" -[ 26, 48 ] = ascii (fp) : "./hrtfs/elev40/L40e120a.dat" -[ 26, 49 ] = ascii (fp) : "./hrtfs/elev40/L40e115a.dat" -[ 26, 50 ] = ascii (fp) : "./hrtfs/elev40/L40e110a.dat" -[ 26, 51 ] = ascii (fp) : "./hrtfs/elev40/L40e105a.dat" -[ 26, 52 ] = ascii (fp) : "./hrtfs/elev40/L40e100a.dat" -[ 26, 53 ] = ascii (fp) : "./hrtfs/elev40/L40e095a.dat" -[ 26, 54 ] = ascii (fp) : "./hrtfs/elev40/L40e090a.dat" -[ 26, 55 ] = ascii (fp) : "./hrtfs/elev40/L40e085a.dat" -[ 26, 56 ] = ascii (fp) : "./hrtfs/elev40/L40e080a.dat" -[ 26, 57 ] = ascii (fp) : "./hrtfs/elev40/L40e075a.dat" -[ 26, 58 ] = ascii (fp) : "./hrtfs/elev40/L40e070a.dat" -[ 26, 59 ] = ascii (fp) : "./hrtfs/elev40/L40e065a.dat" -[ 26, 60 ] = ascii (fp) : "./hrtfs/elev40/L40e060a.dat" -[ 26, 61 ] = ascii (fp) : "./hrtfs/elev40/L40e055a.dat" -[ 26, 62 ] = ascii (fp) : "./hrtfs/elev40/L40e050a.dat" -[ 26, 63 ] = ascii (fp) : "./hrtfs/elev40/L40e045a.dat" -[ 26, 64 ] = ascii (fp) : "./hrtfs/elev40/L40e040a.dat" -[ 26, 65 ] = ascii (fp) : "./hrtfs/elev40/L40e035a.dat" -[ 26, 66 ] = ascii (fp) : "./hrtfs/elev40/L40e030a.dat" -[ 26, 67 ] = ascii (fp) : "./hrtfs/elev40/L40e025a.dat" -[ 26, 68 ] = ascii (fp) : "./hrtfs/elev40/L40e020a.dat" -[ 26, 69 ] = ascii (fp) : "./hrtfs/elev40/L40e015a.dat" -[ 26, 70 ] = ascii (fp) : "./hrtfs/elev40/L40e010a.dat" -[ 26, 71 ] = ascii (fp) : "./hrtfs/elev40/L40e005a.dat" - -[ 27, 0 ] = ascii (fp) : "./hrtfs/elev45/L45e000a.dat" -[ 27, 1 ] = ascii (fp) : "./hrtfs/elev45/L45e355a.dat" -[ 27, 2 ] = ascii (fp) : "./hrtfs/elev45/L45e350a.dat" -[ 27, 3 ] = ascii (fp) : "./hrtfs/elev45/L45e345a.dat" -[ 27, 4 ] = ascii (fp) : "./hrtfs/elev45/L45e340a.dat" -[ 27, 5 ] = ascii (fp) : "./hrtfs/elev45/L45e335a.dat" -[ 27, 6 ] = ascii (fp) : "./hrtfs/elev45/L45e330a.dat" -[ 27, 7 ] = ascii (fp) : "./hrtfs/elev45/L45e325a.dat" -[ 27, 8 ] = ascii (fp) : "./hrtfs/elev45/L45e320a.dat" -[ 27, 9 ] = ascii (fp) : "./hrtfs/elev45/L45e315a.dat" -[ 27, 10 ] = ascii (fp) : "./hrtfs/elev45/L45e310a.dat" -[ 27, 11 ] = ascii (fp) : "./hrtfs/elev45/L45e305a.dat" -[ 27, 12 ] = ascii (fp) : "./hrtfs/elev45/L45e300a.dat" -[ 27, 13 ] = ascii (fp) : "./hrtfs/elev45/L45e295a.dat" -[ 27, 14 ] = ascii (fp) : "./hrtfs/elev45/L45e290a.dat" -[ 27, 15 ] = ascii (fp) : "./hrtfs/elev45/L45e285a.dat" -[ 27, 16 ] = ascii (fp) : "./hrtfs/elev45/L45e280a.dat" -[ 27, 17 ] = ascii (fp) : "./hrtfs/elev45/L45e275a.dat" -[ 27, 18 ] = ascii (fp) : "./hrtfs/elev45/L45e270a.dat" -[ 27, 19 ] = ascii (fp) : "./hrtfs/elev45/L45e265a.dat" -[ 27, 20 ] = ascii (fp) : "./hrtfs/elev45/L45e260a.dat" -[ 27, 21 ] = ascii (fp) : "./hrtfs/elev45/L45e255a.dat" -[ 27, 22 ] = ascii (fp) : "./hrtfs/elev45/L45e250a.dat" -[ 27, 23 ] = ascii (fp) : "./hrtfs/elev45/L45e245a.dat" -[ 27, 24 ] = ascii (fp) : "./hrtfs/elev45/L45e240a.dat" -[ 27, 25 ] = ascii (fp) : "./hrtfs/elev45/L45e235a.dat" -[ 27, 26 ] = ascii (fp) : "./hrtfs/elev45/L45e230a.dat" -[ 27, 27 ] = ascii (fp) : "./hrtfs/elev45/L45e225a.dat" -[ 27, 28 ] = ascii (fp) : "./hrtfs/elev45/L45e220a.dat" -[ 27, 29 ] = ascii (fp) : "./hrtfs/elev45/L45e215a.dat" -[ 27, 30 ] = ascii (fp) : "./hrtfs/elev45/L45e210a.dat" -[ 27, 31 ] = ascii (fp) : "./hrtfs/elev45/L45e205a.dat" -[ 27, 32 ] = ascii (fp) : "./hrtfs/elev45/L45e200a.dat" -[ 27, 33 ] = ascii (fp) : "./hrtfs/elev45/L45e195a.dat" -[ 27, 34 ] = ascii (fp) : "./hrtfs/elev45/L45e190a.dat" -[ 27, 35 ] = ascii (fp) : "./hrtfs/elev45/L45e185a.dat" -[ 27, 36 ] = ascii (fp) : "./hrtfs/elev45/L45e180a.dat" -[ 27, 37 ] = ascii (fp) : "./hrtfs/elev45/L45e175a.dat" -[ 27, 38 ] = ascii (fp) : "./hrtfs/elev45/L45e170a.dat" -[ 27, 39 ] = ascii (fp) : "./hrtfs/elev45/L45e165a.dat" -[ 27, 40 ] = ascii (fp) : "./hrtfs/elev45/L45e160a.dat" -[ 27, 41 ] = ascii (fp) : "./hrtfs/elev45/L45e155a.dat" -[ 27, 42 ] = ascii (fp) : "./hrtfs/elev45/L45e150a.dat" -[ 27, 43 ] = ascii (fp) : "./hrtfs/elev45/L45e145a.dat" -[ 27, 44 ] = ascii (fp) : "./hrtfs/elev45/L45e140a.dat" -[ 27, 45 ] = ascii (fp) : "./hrtfs/elev45/L45e135a.dat" -[ 27, 46 ] = ascii (fp) : "./hrtfs/elev45/L45e130a.dat" -[ 27, 47 ] = ascii (fp) : "./hrtfs/elev45/L45e125a.dat" -[ 27, 48 ] = ascii (fp) : "./hrtfs/elev45/L45e120a.dat" -[ 27, 49 ] = ascii (fp) : "./hrtfs/elev45/L45e115a.dat" -[ 27, 50 ] = ascii (fp) : "./hrtfs/elev45/L45e110a.dat" -[ 27, 51 ] = ascii (fp) : "./hrtfs/elev45/L45e105a.dat" -[ 27, 52 ] = ascii (fp) : "./hrtfs/elev45/L45e100a.dat" -[ 27, 53 ] = ascii (fp) : "./hrtfs/elev45/L45e095a.dat" -[ 27, 54 ] = ascii (fp) : "./hrtfs/elev45/L45e090a.dat" -[ 27, 55 ] = ascii (fp) : "./hrtfs/elev45/L45e085a.dat" -[ 27, 56 ] = ascii (fp) : "./hrtfs/elev45/L45e080a.dat" -[ 27, 57 ] = ascii (fp) : "./hrtfs/elev45/L45e075a.dat" -[ 27, 58 ] = ascii (fp) : "./hrtfs/elev45/L45e070a.dat" -[ 27, 59 ] = ascii (fp) : "./hrtfs/elev45/L45e065a.dat" -[ 27, 60 ] = ascii (fp) : "./hrtfs/elev45/L45e060a.dat" -[ 27, 61 ] = ascii (fp) : "./hrtfs/elev45/L45e055a.dat" -[ 27, 62 ] = ascii (fp) : "./hrtfs/elev45/L45e050a.dat" -[ 27, 63 ] = ascii (fp) : "./hrtfs/elev45/L45e045a.dat" -[ 27, 64 ] = ascii (fp) : "./hrtfs/elev45/L45e040a.dat" -[ 27, 65 ] = ascii (fp) : "./hrtfs/elev45/L45e035a.dat" -[ 27, 66 ] = ascii (fp) : "./hrtfs/elev45/L45e030a.dat" -[ 27, 67 ] = ascii (fp) : "./hrtfs/elev45/L45e025a.dat" -[ 27, 68 ] = ascii (fp) : "./hrtfs/elev45/L45e020a.dat" -[ 27, 69 ] = ascii (fp) : "./hrtfs/elev45/L45e015a.dat" -[ 27, 70 ] = ascii (fp) : "./hrtfs/elev45/L45e010a.dat" -[ 27, 71 ] = ascii (fp) : "./hrtfs/elev45/L45e005a.dat" - -[ 28, 0 ] = ascii (fp) : "./hrtfs/elev50/L50e000a.dat" -[ 28, 1 ] = ascii (fp) : "./hrtfs/elev50/L50e355a.dat" -[ 28, 2 ] = ascii (fp) : "./hrtfs/elev50/L50e350a.dat" -[ 28, 3 ] = ascii (fp) : "./hrtfs/elev50/L50e345a.dat" -[ 28, 4 ] = ascii (fp) : "./hrtfs/elev50/L50e340a.dat" -[ 28, 5 ] = ascii (fp) : "./hrtfs/elev50/L50e335a.dat" -[ 28, 6 ] = ascii (fp) : "./hrtfs/elev50/L50e330a.dat" -[ 28, 7 ] = ascii (fp) : "./hrtfs/elev50/L50e325a.dat" -[ 28, 8 ] = ascii (fp) : "./hrtfs/elev50/L50e320a.dat" -[ 28, 9 ] = ascii (fp) : "./hrtfs/elev50/L50e315a.dat" -[ 28, 10 ] = ascii (fp) : "./hrtfs/elev50/L50e310a.dat" -[ 28, 11 ] = ascii (fp) : "./hrtfs/elev50/L50e305a.dat" -[ 28, 12 ] = ascii (fp) : "./hrtfs/elev50/L50e300a.dat" -[ 28, 13 ] = ascii (fp) : "./hrtfs/elev50/L50e295a.dat" -[ 28, 14 ] = ascii (fp) : "./hrtfs/elev50/L50e290a.dat" -[ 28, 15 ] = ascii (fp) : "./hrtfs/elev50/L50e285a.dat" -[ 28, 16 ] = ascii (fp) : "./hrtfs/elev50/L50e280a.dat" -[ 28, 17 ] = ascii (fp) : "./hrtfs/elev50/L50e275a.dat" -[ 28, 18 ] = ascii (fp) : "./hrtfs/elev50/L50e270a.dat" -[ 28, 19 ] = ascii (fp) : "./hrtfs/elev50/L50e265a.dat" -[ 28, 20 ] = ascii (fp) : "./hrtfs/elev50/L50e260a.dat" -[ 28, 21 ] = ascii (fp) : "./hrtfs/elev50/L50e255a.dat" -[ 28, 22 ] = ascii (fp) : "./hrtfs/elev50/L50e250a.dat" -[ 28, 23 ] = ascii (fp) : "./hrtfs/elev50/L50e245a.dat" -[ 28, 24 ] = ascii (fp) : "./hrtfs/elev50/L50e240a.dat" -[ 28, 25 ] = ascii (fp) : "./hrtfs/elev50/L50e235a.dat" -[ 28, 26 ] = ascii (fp) : "./hrtfs/elev50/L50e230a.dat" -[ 28, 27 ] = ascii (fp) : "./hrtfs/elev50/L50e225a.dat" -[ 28, 28 ] = ascii (fp) : "./hrtfs/elev50/L50e220a.dat" -[ 28, 29 ] = ascii (fp) : "./hrtfs/elev50/L50e215a.dat" -[ 28, 30 ] = ascii (fp) : "./hrtfs/elev50/L50e210a.dat" -[ 28, 31 ] = ascii (fp) : "./hrtfs/elev50/L50e205a.dat" -[ 28, 32 ] = ascii (fp) : "./hrtfs/elev50/L50e200a.dat" -[ 28, 33 ] = ascii (fp) : "./hrtfs/elev50/L50e195a.dat" -[ 28, 34 ] = ascii (fp) : "./hrtfs/elev50/L50e190a.dat" -[ 28, 35 ] = ascii (fp) : "./hrtfs/elev50/L50e185a.dat" -[ 28, 36 ] = ascii (fp) : "./hrtfs/elev50/L50e180a.dat" -[ 28, 37 ] = ascii (fp) : "./hrtfs/elev50/L50e175a.dat" -[ 28, 38 ] = ascii (fp) : "./hrtfs/elev50/L50e170a.dat" -[ 28, 39 ] = ascii (fp) : "./hrtfs/elev50/L50e165a.dat" -[ 28, 40 ] = ascii (fp) : "./hrtfs/elev50/L50e160a.dat" -[ 28, 41 ] = ascii (fp) : "./hrtfs/elev50/L50e155a.dat" -[ 28, 42 ] = ascii (fp) : "./hrtfs/elev50/L50e150a.dat" -[ 28, 43 ] = ascii (fp) : "./hrtfs/elev50/L50e145a.dat" -[ 28, 44 ] = ascii (fp) : "./hrtfs/elev50/L50e140a.dat" -[ 28, 45 ] = ascii (fp) : "./hrtfs/elev50/L50e135a.dat" -[ 28, 46 ] = ascii (fp) : "./hrtfs/elev50/L50e130a.dat" -[ 28, 47 ] = ascii (fp) : "./hrtfs/elev50/L50e125a.dat" -[ 28, 48 ] = ascii (fp) : "./hrtfs/elev50/L50e120a.dat" -[ 28, 49 ] = ascii (fp) : "./hrtfs/elev50/L50e115a.dat" -[ 28, 50 ] = ascii (fp) : "./hrtfs/elev50/L50e110a.dat" -[ 28, 51 ] = ascii (fp) : "./hrtfs/elev50/L50e105a.dat" -[ 28, 52 ] = ascii (fp) : "./hrtfs/elev50/L50e100a.dat" -[ 28, 53 ] = ascii (fp) : "./hrtfs/elev50/L50e095a.dat" -[ 28, 54 ] = ascii (fp) : "./hrtfs/elev50/L50e090a.dat" -[ 28, 55 ] = ascii (fp) : "./hrtfs/elev50/L50e085a.dat" -[ 28, 56 ] = ascii (fp) : "./hrtfs/elev50/L50e080a.dat" -[ 28, 57 ] = ascii (fp) : "./hrtfs/elev50/L50e075a.dat" -[ 28, 58 ] = ascii (fp) : "./hrtfs/elev50/L50e070a.dat" -[ 28, 59 ] = ascii (fp) : "./hrtfs/elev50/L50e065a.dat" -[ 28, 60 ] = ascii (fp) : "./hrtfs/elev50/L50e060a.dat" -[ 28, 61 ] = ascii (fp) : "./hrtfs/elev50/L50e055a.dat" -[ 28, 62 ] = ascii (fp) : "./hrtfs/elev50/L50e050a.dat" -[ 28, 63 ] = ascii (fp) : "./hrtfs/elev50/L50e045a.dat" -[ 28, 64 ] = ascii (fp) : "./hrtfs/elev50/L50e040a.dat" -[ 28, 65 ] = ascii (fp) : "./hrtfs/elev50/L50e035a.dat" -[ 28, 66 ] = ascii (fp) : "./hrtfs/elev50/L50e030a.dat" -[ 28, 67 ] = ascii (fp) : "./hrtfs/elev50/L50e025a.dat" -[ 28, 68 ] = ascii (fp) : "./hrtfs/elev50/L50e020a.dat" -[ 28, 69 ] = ascii (fp) : "./hrtfs/elev50/L50e015a.dat" -[ 28, 70 ] = ascii (fp) : "./hrtfs/elev50/L50e010a.dat" -[ 28, 71 ] = ascii (fp) : "./hrtfs/elev50/L50e005a.dat" - -[ 29, 0 ] = ascii (fp) : "./hrtfs/elev55/L55e000a.dat" -[ 29, 1 ] = ascii (fp) : "./hrtfs/elev55/L55e355a.dat" -[ 29, 2 ] = ascii (fp) : "./hrtfs/elev55/L55e350a.dat" -[ 29, 3 ] = ascii (fp) : "./hrtfs/elev55/L55e345a.dat" -[ 29, 4 ] = ascii (fp) : "./hrtfs/elev55/L55e340a.dat" -[ 29, 5 ] = ascii (fp) : "./hrtfs/elev55/L55e335a.dat" -[ 29, 6 ] = ascii (fp) : "./hrtfs/elev55/L55e330a.dat" -[ 29, 7 ] = ascii (fp) : "./hrtfs/elev55/L55e325a.dat" -[ 29, 8 ] = ascii (fp) : "./hrtfs/elev55/L55e320a.dat" -[ 29, 9 ] = ascii (fp) : "./hrtfs/elev55/L55e315a.dat" -[ 29, 10 ] = ascii (fp) : "./hrtfs/elev55/L55e310a.dat" -[ 29, 11 ] = ascii (fp) : "./hrtfs/elev55/L55e305a.dat" -[ 29, 12 ] = ascii (fp) : "./hrtfs/elev55/L55e300a.dat" -[ 29, 13 ] = ascii (fp) : "./hrtfs/elev55/L55e295a.dat" -[ 29, 14 ] = ascii (fp) : "./hrtfs/elev55/L55e290a.dat" -[ 29, 15 ] = ascii (fp) : "./hrtfs/elev55/L55e285a.dat" -[ 29, 16 ] = ascii (fp) : "./hrtfs/elev55/L55e280a.dat" -[ 29, 17 ] = ascii (fp) : "./hrtfs/elev55/L55e275a.dat" -[ 29, 18 ] = ascii (fp) : "./hrtfs/elev55/L55e270a.dat" -[ 29, 19 ] = ascii (fp) : "./hrtfs/elev55/L55e265a.dat" -[ 29, 20 ] = ascii (fp) : "./hrtfs/elev55/L55e260a.dat" -[ 29, 21 ] = ascii (fp) : "./hrtfs/elev55/L55e255a.dat" -[ 29, 22 ] = ascii (fp) : "./hrtfs/elev55/L55e250a.dat" -[ 29, 23 ] = ascii (fp) : "./hrtfs/elev55/L55e245a.dat" -[ 29, 24 ] = ascii (fp) : "./hrtfs/elev55/L55e240a.dat" -[ 29, 25 ] = ascii (fp) : "./hrtfs/elev55/L55e235a.dat" -[ 29, 26 ] = ascii (fp) : "./hrtfs/elev55/L55e230a.dat" -[ 29, 27 ] = ascii (fp) : "./hrtfs/elev55/L55e225a.dat" -[ 29, 28 ] = ascii (fp) : "./hrtfs/elev55/L55e220a.dat" -[ 29, 29 ] = ascii (fp) : "./hrtfs/elev55/L55e215a.dat" -[ 29, 30 ] = ascii (fp) : "./hrtfs/elev55/L55e210a.dat" -[ 29, 31 ] = ascii (fp) : "./hrtfs/elev55/L55e205a.dat" -[ 29, 32 ] = ascii (fp) : "./hrtfs/elev55/L55e200a.dat" -[ 29, 33 ] = ascii (fp) : "./hrtfs/elev55/L55e195a.dat" -[ 29, 34 ] = ascii (fp) : "./hrtfs/elev55/L55e190a.dat" -[ 29, 35 ] = ascii (fp) : "./hrtfs/elev55/L55e185a.dat" -[ 29, 36 ] = ascii (fp) : "./hrtfs/elev55/L55e180a.dat" -[ 29, 37 ] = ascii (fp) : "./hrtfs/elev55/L55e175a.dat" -[ 29, 38 ] = ascii (fp) : "./hrtfs/elev55/L55e170a.dat" -[ 29, 39 ] = ascii (fp) : "./hrtfs/elev55/L55e165a.dat" -[ 29, 40 ] = ascii (fp) : "./hrtfs/elev55/L55e160a.dat" -[ 29, 41 ] = ascii (fp) : "./hrtfs/elev55/L55e155a.dat" -[ 29, 42 ] = ascii (fp) : "./hrtfs/elev55/L55e150a.dat" -[ 29, 43 ] = ascii (fp) : "./hrtfs/elev55/L55e145a.dat" -[ 29, 44 ] = ascii (fp) : "./hrtfs/elev55/L55e140a.dat" -[ 29, 45 ] = ascii (fp) : "./hrtfs/elev55/L55e135a.dat" -[ 29, 46 ] = ascii (fp) : "./hrtfs/elev55/L55e130a.dat" -[ 29, 47 ] = ascii (fp) : "./hrtfs/elev55/L55e125a.dat" -[ 29, 48 ] = ascii (fp) : "./hrtfs/elev55/L55e120a.dat" -[ 29, 49 ] = ascii (fp) : "./hrtfs/elev55/L55e115a.dat" -[ 29, 50 ] = ascii (fp) : "./hrtfs/elev55/L55e110a.dat" -[ 29, 51 ] = ascii (fp) : "./hrtfs/elev55/L55e105a.dat" -[ 29, 52 ] = ascii (fp) : "./hrtfs/elev55/L55e100a.dat" -[ 29, 53 ] = ascii (fp) : "./hrtfs/elev55/L55e095a.dat" -[ 29, 54 ] = ascii (fp) : "./hrtfs/elev55/L55e090a.dat" -[ 29, 55 ] = ascii (fp) : "./hrtfs/elev55/L55e085a.dat" -[ 29, 56 ] = ascii (fp) : "./hrtfs/elev55/L55e080a.dat" -[ 29, 57 ] = ascii (fp) : "./hrtfs/elev55/L55e075a.dat" -[ 29, 58 ] = ascii (fp) : "./hrtfs/elev55/L55e070a.dat" -[ 29, 59 ] = ascii (fp) : "./hrtfs/elev55/L55e065a.dat" -[ 29, 60 ] = ascii (fp) : "./hrtfs/elev55/L55e060a.dat" -[ 29, 61 ] = ascii (fp) : "./hrtfs/elev55/L55e055a.dat" -[ 29, 62 ] = ascii (fp) : "./hrtfs/elev55/L55e050a.dat" -[ 29, 63 ] = ascii (fp) : "./hrtfs/elev55/L55e045a.dat" -[ 29, 64 ] = ascii (fp) : "./hrtfs/elev55/L55e040a.dat" -[ 29, 65 ] = ascii (fp) : "./hrtfs/elev55/L55e035a.dat" -[ 29, 66 ] = ascii (fp) : "./hrtfs/elev55/L55e030a.dat" -[ 29, 67 ] = ascii (fp) : "./hrtfs/elev55/L55e025a.dat" -[ 29, 68 ] = ascii (fp) : "./hrtfs/elev55/L55e020a.dat" -[ 29, 69 ] = ascii (fp) : "./hrtfs/elev55/L55e015a.dat" -[ 29, 70 ] = ascii (fp) : "./hrtfs/elev55/L55e010a.dat" -[ 29, 71 ] = ascii (fp) : "./hrtfs/elev55/L55e005a.dat" - -[ 30, 0 ] = ascii (fp) : "./hrtfs/elev60/L60e000a.dat" -[ 30, 1 ] = ascii (fp) : "./hrtfs/elev60/L60e355a.dat" -[ 30, 2 ] = ascii (fp) : "./hrtfs/elev60/L60e350a.dat" -[ 30, 3 ] = ascii (fp) : "./hrtfs/elev60/L60e345a.dat" -[ 30, 4 ] = ascii (fp) : "./hrtfs/elev60/L60e340a.dat" -[ 30, 5 ] = ascii (fp) : "./hrtfs/elev60/L60e335a.dat" -[ 30, 6 ] = ascii (fp) : "./hrtfs/elev60/L60e330a.dat" -[ 30, 7 ] = ascii (fp) : "./hrtfs/elev60/L60e325a.dat" -[ 30, 8 ] = ascii (fp) : "./hrtfs/elev60/L60e320a.dat" -[ 30, 9 ] = ascii (fp) : "./hrtfs/elev60/L60e315a.dat" -[ 30, 10 ] = ascii (fp) : "./hrtfs/elev60/L60e310a.dat" -[ 30, 11 ] = ascii (fp) : "./hrtfs/elev60/L60e305a.dat" -[ 30, 12 ] = ascii (fp) : "./hrtfs/elev60/L60e300a.dat" -[ 30, 13 ] = ascii (fp) : "./hrtfs/elev60/L60e295a.dat" -[ 30, 14 ] = ascii (fp) : "./hrtfs/elev60/L60e290a.dat" -[ 30, 15 ] = ascii (fp) : "./hrtfs/elev60/L60e285a.dat" -[ 30, 16 ] = ascii (fp) : "./hrtfs/elev60/L60e280a.dat" -[ 30, 17 ] = ascii (fp) : "./hrtfs/elev60/L60e275a.dat" -[ 30, 18 ] = ascii (fp) : "./hrtfs/elev60/L60e270a.dat" -[ 30, 19 ] = ascii (fp) : "./hrtfs/elev60/L60e265a.dat" -[ 30, 20 ] = ascii (fp) : "./hrtfs/elev60/L60e260a.dat" -[ 30, 21 ] = ascii (fp) : "./hrtfs/elev60/L60e255a.dat" -[ 30, 22 ] = ascii (fp) : "./hrtfs/elev60/L60e250a.dat" -[ 30, 23 ] = ascii (fp) : "./hrtfs/elev60/L60e245a.dat" -[ 30, 24 ] = ascii (fp) : "./hrtfs/elev60/L60e240a.dat" -[ 30, 25 ] = ascii (fp) : "./hrtfs/elev60/L60e235a.dat" -[ 30, 26 ] = ascii (fp) : "./hrtfs/elev60/L60e230a.dat" -[ 30, 27 ] = ascii (fp) : "./hrtfs/elev60/L60e225a.dat" -[ 30, 28 ] = ascii (fp) : "./hrtfs/elev60/L60e220a.dat" -[ 30, 29 ] = ascii (fp) : "./hrtfs/elev60/L60e215a.dat" -[ 30, 30 ] = ascii (fp) : "./hrtfs/elev60/L60e210a.dat" -[ 30, 31 ] = ascii (fp) : "./hrtfs/elev60/L60e205a.dat" -[ 30, 32 ] = ascii (fp) : "./hrtfs/elev60/L60e200a.dat" -[ 30, 33 ] = ascii (fp) : "./hrtfs/elev60/L60e195a.dat" -[ 30, 34 ] = ascii (fp) : "./hrtfs/elev60/L60e190a.dat" -[ 30, 35 ] = ascii (fp) : "./hrtfs/elev60/L60e185a.dat" -[ 30, 36 ] = ascii (fp) : "./hrtfs/elev60/L60e180a.dat" -[ 30, 37 ] = ascii (fp) : "./hrtfs/elev60/L60e175a.dat" -[ 30, 38 ] = ascii (fp) : "./hrtfs/elev60/L60e170a.dat" -[ 30, 39 ] = ascii (fp) : "./hrtfs/elev60/L60e165a.dat" -[ 30, 40 ] = ascii (fp) : "./hrtfs/elev60/L60e160a.dat" -[ 30, 41 ] = ascii (fp) : "./hrtfs/elev60/L60e155a.dat" -[ 30, 42 ] = ascii (fp) : "./hrtfs/elev60/L60e150a.dat" -[ 30, 43 ] = ascii (fp) : "./hrtfs/elev60/L60e145a.dat" -[ 30, 44 ] = ascii (fp) : "./hrtfs/elev60/L60e140a.dat" -[ 30, 45 ] = ascii (fp) : "./hrtfs/elev60/L60e135a.dat" -[ 30, 46 ] = ascii (fp) : "./hrtfs/elev60/L60e130a.dat" -[ 30, 47 ] = ascii (fp) : "./hrtfs/elev60/L60e125a.dat" -[ 30, 48 ] = ascii (fp) : "./hrtfs/elev60/L60e120a.dat" -[ 30, 49 ] = ascii (fp) : "./hrtfs/elev60/L60e115a.dat" -[ 30, 50 ] = ascii (fp) : "./hrtfs/elev60/L60e110a.dat" -[ 30, 51 ] = ascii (fp) : "./hrtfs/elev60/L60e105a.dat" -[ 30, 52 ] = ascii (fp) : "./hrtfs/elev60/L60e100a.dat" -[ 30, 53 ] = ascii (fp) : "./hrtfs/elev60/L60e095a.dat" -[ 30, 54 ] = ascii (fp) : "./hrtfs/elev60/L60e090a.dat" -[ 30, 55 ] = ascii (fp) : "./hrtfs/elev60/L60e085a.dat" -[ 30, 56 ] = ascii (fp) : "./hrtfs/elev60/L60e080a.dat" -[ 30, 57 ] = ascii (fp) : "./hrtfs/elev60/L60e075a.dat" -[ 30, 58 ] = ascii (fp) : "./hrtfs/elev60/L60e070a.dat" -[ 30, 59 ] = ascii (fp) : "./hrtfs/elev60/L60e065a.dat" -[ 30, 60 ] = ascii (fp) : "./hrtfs/elev60/L60e060a.dat" -[ 30, 61 ] = ascii (fp) : "./hrtfs/elev60/L60e055a.dat" -[ 30, 62 ] = ascii (fp) : "./hrtfs/elev60/L60e050a.dat" -[ 30, 63 ] = ascii (fp) : "./hrtfs/elev60/L60e045a.dat" -[ 30, 64 ] = ascii (fp) : "./hrtfs/elev60/L60e040a.dat" -[ 30, 65 ] = ascii (fp) : "./hrtfs/elev60/L60e035a.dat" -[ 30, 66 ] = ascii (fp) : "./hrtfs/elev60/L60e030a.dat" -[ 30, 67 ] = ascii (fp) : "./hrtfs/elev60/L60e025a.dat" -[ 30, 68 ] = ascii (fp) : "./hrtfs/elev60/L60e020a.dat" -[ 30, 69 ] = ascii (fp) : "./hrtfs/elev60/L60e015a.dat" -[ 30, 70 ] = ascii (fp) : "./hrtfs/elev60/L60e010a.dat" -[ 30, 71 ] = ascii (fp) : "./hrtfs/elev60/L60e005a.dat" - -[ 31, 0 ] = ascii (fp) : "./hrtfs/elev65/L65e000a.dat" -[ 31, 1 ] = ascii (fp) : "./hrtfs/elev65/L65e355a.dat" -[ 31, 2 ] = ascii (fp) : "./hrtfs/elev65/L65e350a.dat" -[ 31, 3 ] = ascii (fp) : "./hrtfs/elev65/L65e345a.dat" -[ 31, 4 ] = ascii (fp) : "./hrtfs/elev65/L65e340a.dat" -[ 31, 5 ] = ascii (fp) : "./hrtfs/elev65/L65e335a.dat" -[ 31, 6 ] = ascii (fp) : "./hrtfs/elev65/L65e330a.dat" -[ 31, 7 ] = ascii (fp) : "./hrtfs/elev65/L65e325a.dat" -[ 31, 8 ] = ascii (fp) : "./hrtfs/elev65/L65e320a.dat" -[ 31, 9 ] = ascii (fp) : "./hrtfs/elev65/L65e315a.dat" -[ 31, 10 ] = ascii (fp) : "./hrtfs/elev65/L65e310a.dat" -[ 31, 11 ] = ascii (fp) : "./hrtfs/elev65/L65e305a.dat" -[ 31, 12 ] = ascii (fp) : "./hrtfs/elev65/L65e300a.dat" -[ 31, 13 ] = ascii (fp) : "./hrtfs/elev65/L65e295a.dat" -[ 31, 14 ] = ascii (fp) : "./hrtfs/elev65/L65e290a.dat" -[ 31, 15 ] = ascii (fp) : "./hrtfs/elev65/L65e285a.dat" -[ 31, 16 ] = ascii (fp) : "./hrtfs/elev65/L65e280a.dat" -[ 31, 17 ] = ascii (fp) : "./hrtfs/elev65/L65e275a.dat" -[ 31, 18 ] = ascii (fp) : "./hrtfs/elev65/L65e270a.dat" -[ 31, 19 ] = ascii (fp) : "./hrtfs/elev65/L65e265a.dat" -[ 31, 20 ] = ascii (fp) : "./hrtfs/elev65/L65e260a.dat" -[ 31, 21 ] = ascii (fp) : "./hrtfs/elev65/L65e255a.dat" -[ 31, 22 ] = ascii (fp) : "./hrtfs/elev65/L65e250a.dat" -[ 31, 23 ] = ascii (fp) : "./hrtfs/elev65/L65e245a.dat" -[ 31, 24 ] = ascii (fp) : "./hrtfs/elev65/L65e240a.dat" -[ 31, 25 ] = ascii (fp) : "./hrtfs/elev65/L65e235a.dat" -[ 31, 26 ] = ascii (fp) : "./hrtfs/elev65/L65e230a.dat" -[ 31, 27 ] = ascii (fp) : "./hrtfs/elev65/L65e225a.dat" -[ 31, 28 ] = ascii (fp) : "./hrtfs/elev65/L65e220a.dat" -[ 31, 29 ] = ascii (fp) : "./hrtfs/elev65/L65e215a.dat" -[ 31, 30 ] = ascii (fp) : "./hrtfs/elev65/L65e210a.dat" -[ 31, 31 ] = ascii (fp) : "./hrtfs/elev65/L65e205a.dat" -[ 31, 32 ] = ascii (fp) : "./hrtfs/elev65/L65e200a.dat" -[ 31, 33 ] = ascii (fp) : "./hrtfs/elev65/L65e195a.dat" -[ 31, 34 ] = ascii (fp) : "./hrtfs/elev65/L65e190a.dat" -[ 31, 35 ] = ascii (fp) : "./hrtfs/elev65/L65e185a.dat" -[ 31, 36 ] = ascii (fp) : "./hrtfs/elev65/L65e180a.dat" -[ 31, 37 ] = ascii (fp) : "./hrtfs/elev65/L65e175a.dat" -[ 31, 38 ] = ascii (fp) : "./hrtfs/elev65/L65e170a.dat" -[ 31, 39 ] = ascii (fp) : "./hrtfs/elev65/L65e165a.dat" -[ 31, 40 ] = ascii (fp) : "./hrtfs/elev65/L65e160a.dat" -[ 31, 41 ] = ascii (fp) : "./hrtfs/elev65/L65e155a.dat" -[ 31, 42 ] = ascii (fp) : "./hrtfs/elev65/L65e150a.dat" -[ 31, 43 ] = ascii (fp) : "./hrtfs/elev65/L65e145a.dat" -[ 31, 44 ] = ascii (fp) : "./hrtfs/elev65/L65e140a.dat" -[ 31, 45 ] = ascii (fp) : "./hrtfs/elev65/L65e135a.dat" -[ 31, 46 ] = ascii (fp) : "./hrtfs/elev65/L65e130a.dat" -[ 31, 47 ] = ascii (fp) : "./hrtfs/elev65/L65e125a.dat" -[ 31, 48 ] = ascii (fp) : "./hrtfs/elev65/L65e120a.dat" -[ 31, 49 ] = ascii (fp) : "./hrtfs/elev65/L65e115a.dat" -[ 31, 50 ] = ascii (fp) : "./hrtfs/elev65/L65e110a.dat" -[ 31, 51 ] = ascii (fp) : "./hrtfs/elev65/L65e105a.dat" -[ 31, 52 ] = ascii (fp) : "./hrtfs/elev65/L65e100a.dat" -[ 31, 53 ] = ascii (fp) : "./hrtfs/elev65/L65e095a.dat" -[ 31, 54 ] = ascii (fp) : "./hrtfs/elev65/L65e090a.dat" -[ 31, 55 ] = ascii (fp) : "./hrtfs/elev65/L65e085a.dat" -[ 31, 56 ] = ascii (fp) : "./hrtfs/elev65/L65e080a.dat" -[ 31, 57 ] = ascii (fp) : "./hrtfs/elev65/L65e075a.dat" -[ 31, 58 ] = ascii (fp) : "./hrtfs/elev65/L65e070a.dat" -[ 31, 59 ] = ascii (fp) : "./hrtfs/elev65/L65e065a.dat" -[ 31, 60 ] = ascii (fp) : "./hrtfs/elev65/L65e060a.dat" -[ 31, 61 ] = ascii (fp) : "./hrtfs/elev65/L65e055a.dat" -[ 31, 62 ] = ascii (fp) : "./hrtfs/elev65/L65e050a.dat" -[ 31, 63 ] = ascii (fp) : "./hrtfs/elev65/L65e045a.dat" -[ 31, 64 ] = ascii (fp) : "./hrtfs/elev65/L65e040a.dat" -[ 31, 65 ] = ascii (fp) : "./hrtfs/elev65/L65e035a.dat" -[ 31, 66 ] = ascii (fp) : "./hrtfs/elev65/L65e030a.dat" -[ 31, 67 ] = ascii (fp) : "./hrtfs/elev65/L65e025a.dat" -[ 31, 68 ] = ascii (fp) : "./hrtfs/elev65/L65e020a.dat" -[ 31, 69 ] = ascii (fp) : "./hrtfs/elev65/L65e015a.dat" -[ 31, 70 ] = ascii (fp) : "./hrtfs/elev65/L65e010a.dat" -[ 31, 71 ] = ascii (fp) : "./hrtfs/elev65/L65e005a.dat" - -[ 32, 0 ] = ascii (fp) : "./hrtfs/elev70/L70e000a.dat" -[ 32, 1 ] = ascii (fp) : "./hrtfs/elev70/L70e355a.dat" -[ 32, 2 ] = ascii (fp) : "./hrtfs/elev70/L70e350a.dat" -[ 32, 3 ] = ascii (fp) : "./hrtfs/elev70/L70e345a.dat" -[ 32, 4 ] = ascii (fp) : "./hrtfs/elev70/L70e340a.dat" -[ 32, 5 ] = ascii (fp) : "./hrtfs/elev70/L70e335a.dat" -[ 32, 6 ] = ascii (fp) : "./hrtfs/elev70/L70e330a.dat" -[ 32, 7 ] = ascii (fp) : "./hrtfs/elev70/L70e325a.dat" -[ 32, 8 ] = ascii (fp) : "./hrtfs/elev70/L70e320a.dat" -[ 32, 9 ] = ascii (fp) : "./hrtfs/elev70/L70e315a.dat" -[ 32, 10 ] = ascii (fp) : "./hrtfs/elev70/L70e310a.dat" -[ 32, 11 ] = ascii (fp) : "./hrtfs/elev70/L70e305a.dat" -[ 32, 12 ] = ascii (fp) : "./hrtfs/elev70/L70e300a.dat" -[ 32, 13 ] = ascii (fp) : "./hrtfs/elev70/L70e295a.dat" -[ 32, 14 ] = ascii (fp) : "./hrtfs/elev70/L70e290a.dat" -[ 32, 15 ] = ascii (fp) : "./hrtfs/elev70/L70e285a.dat" -[ 32, 16 ] = ascii (fp) : "./hrtfs/elev70/L70e280a.dat" -[ 32, 17 ] = ascii (fp) : "./hrtfs/elev70/L70e275a.dat" -[ 32, 18 ] = ascii (fp) : "./hrtfs/elev70/L70e270a.dat" -[ 32, 19 ] = ascii (fp) : "./hrtfs/elev70/L70e265a.dat" -[ 32, 20 ] = ascii (fp) : "./hrtfs/elev70/L70e260a.dat" -[ 32, 21 ] = ascii (fp) : "./hrtfs/elev70/L70e255a.dat" -[ 32, 22 ] = ascii (fp) : "./hrtfs/elev70/L70e250a.dat" -[ 32, 23 ] = ascii (fp) : "./hrtfs/elev70/L70e245a.dat" -[ 32, 24 ] = ascii (fp) : "./hrtfs/elev70/L70e240a.dat" -[ 32, 25 ] = ascii (fp) : "./hrtfs/elev70/L70e235a.dat" -[ 32, 26 ] = ascii (fp) : "./hrtfs/elev70/L70e230a.dat" -[ 32, 27 ] = ascii (fp) : "./hrtfs/elev70/L70e225a.dat" -[ 32, 28 ] = ascii (fp) : "./hrtfs/elev70/L70e220a.dat" -[ 32, 29 ] = ascii (fp) : "./hrtfs/elev70/L70e215a.dat" -[ 32, 30 ] = ascii (fp) : "./hrtfs/elev70/L70e210a.dat" -[ 32, 31 ] = ascii (fp) : "./hrtfs/elev70/L70e205a.dat" -[ 32, 32 ] = ascii (fp) : "./hrtfs/elev70/L70e200a.dat" -[ 32, 33 ] = ascii (fp) : "./hrtfs/elev70/L70e195a.dat" -[ 32, 34 ] = ascii (fp) : "./hrtfs/elev70/L70e190a.dat" -[ 32, 35 ] = ascii (fp) : "./hrtfs/elev70/L70e185a.dat" -[ 32, 36 ] = ascii (fp) : "./hrtfs/elev70/L70e180a.dat" -[ 32, 37 ] = ascii (fp) : "./hrtfs/elev70/L70e175a.dat" -[ 32, 38 ] = ascii (fp) : "./hrtfs/elev70/L70e170a.dat" -[ 32, 39 ] = ascii (fp) : "./hrtfs/elev70/L70e165a.dat" -[ 32, 40 ] = ascii (fp) : "./hrtfs/elev70/L70e160a.dat" -[ 32, 41 ] = ascii (fp) : "./hrtfs/elev70/L70e155a.dat" -[ 32, 42 ] = ascii (fp) : "./hrtfs/elev70/L70e150a.dat" -[ 32, 43 ] = ascii (fp) : "./hrtfs/elev70/L70e145a.dat" -[ 32, 44 ] = ascii (fp) : "./hrtfs/elev70/L70e140a.dat" -[ 32, 45 ] = ascii (fp) : "./hrtfs/elev70/L70e135a.dat" -[ 32, 46 ] = ascii (fp) : "./hrtfs/elev70/L70e130a.dat" -[ 32, 47 ] = ascii (fp) : "./hrtfs/elev70/L70e125a.dat" -[ 32, 48 ] = ascii (fp) : "./hrtfs/elev70/L70e120a.dat" -[ 32, 49 ] = ascii (fp) : "./hrtfs/elev70/L70e115a.dat" -[ 32, 50 ] = ascii (fp) : "./hrtfs/elev70/L70e110a.dat" -[ 32, 51 ] = ascii (fp) : "./hrtfs/elev70/L70e105a.dat" -[ 32, 52 ] = ascii (fp) : "./hrtfs/elev70/L70e100a.dat" -[ 32, 53 ] = ascii (fp) : "./hrtfs/elev70/L70e095a.dat" -[ 32, 54 ] = ascii (fp) : "./hrtfs/elev70/L70e090a.dat" -[ 32, 55 ] = ascii (fp) : "./hrtfs/elev70/L70e085a.dat" -[ 32, 56 ] = ascii (fp) : "./hrtfs/elev70/L70e080a.dat" -[ 32, 57 ] = ascii (fp) : "./hrtfs/elev70/L70e075a.dat" -[ 32, 58 ] = ascii (fp) : "./hrtfs/elev70/L70e070a.dat" -[ 32, 59 ] = ascii (fp) : "./hrtfs/elev70/L70e065a.dat" -[ 32, 60 ] = ascii (fp) : "./hrtfs/elev70/L70e060a.dat" -[ 32, 61 ] = ascii (fp) : "./hrtfs/elev70/L70e055a.dat" -[ 32, 62 ] = ascii (fp) : "./hrtfs/elev70/L70e050a.dat" -[ 32, 63 ] = ascii (fp) : "./hrtfs/elev70/L70e045a.dat" -[ 32, 64 ] = ascii (fp) : "./hrtfs/elev70/L70e040a.dat" -[ 32, 65 ] = ascii (fp) : "./hrtfs/elev70/L70e035a.dat" -[ 32, 66 ] = ascii (fp) : "./hrtfs/elev70/L70e030a.dat" -[ 32, 67 ] = ascii (fp) : "./hrtfs/elev70/L70e025a.dat" -[ 32, 68 ] = ascii (fp) : "./hrtfs/elev70/L70e020a.dat" -[ 32, 69 ] = ascii (fp) : "./hrtfs/elev70/L70e015a.dat" -[ 32, 70 ] = ascii (fp) : "./hrtfs/elev70/L70e010a.dat" -[ 32, 71 ] = ascii (fp) : "./hrtfs/elev70/L70e005a.dat" - -[ 33, 0 ] = ascii (fp) : "./hrtfs/elev75/L75e000a.dat" -[ 33, 1 ] = ascii (fp) : "./hrtfs/elev75/L75e355a.dat" -[ 33, 2 ] = ascii (fp) : "./hrtfs/elev75/L75e350a.dat" -[ 33, 3 ] = ascii (fp) : "./hrtfs/elev75/L75e345a.dat" -[ 33, 4 ] = ascii (fp) : "./hrtfs/elev75/L75e340a.dat" -[ 33, 5 ] = ascii (fp) : "./hrtfs/elev75/L75e335a.dat" -[ 33, 6 ] = ascii (fp) : "./hrtfs/elev75/L75e330a.dat" -[ 33, 7 ] = ascii (fp) : "./hrtfs/elev75/L75e325a.dat" -[ 33, 8 ] = ascii (fp) : "./hrtfs/elev75/L75e320a.dat" -[ 33, 9 ] = ascii (fp) : "./hrtfs/elev75/L75e315a.dat" -[ 33, 10 ] = ascii (fp) : "./hrtfs/elev75/L75e310a.dat" -[ 33, 11 ] = ascii (fp) : "./hrtfs/elev75/L75e305a.dat" -[ 33, 12 ] = ascii (fp) : "./hrtfs/elev75/L75e300a.dat" -[ 33, 13 ] = ascii (fp) : "./hrtfs/elev75/L75e295a.dat" -[ 33, 14 ] = ascii (fp) : "./hrtfs/elev75/L75e290a.dat" -[ 33, 15 ] = ascii (fp) : "./hrtfs/elev75/L75e285a.dat" -[ 33, 16 ] = ascii (fp) : "./hrtfs/elev75/L75e280a.dat" -[ 33, 17 ] = ascii (fp) : "./hrtfs/elev75/L75e275a.dat" -[ 33, 18 ] = ascii (fp) : "./hrtfs/elev75/L75e270a.dat" -[ 33, 19 ] = ascii (fp) : "./hrtfs/elev75/L75e265a.dat" -[ 33, 20 ] = ascii (fp) : "./hrtfs/elev75/L75e260a.dat" -[ 33, 21 ] = ascii (fp) : "./hrtfs/elev75/L75e255a.dat" -[ 33, 22 ] = ascii (fp) : "./hrtfs/elev75/L75e250a.dat" -[ 33, 23 ] = ascii (fp) : "./hrtfs/elev75/L75e245a.dat" -[ 33, 24 ] = ascii (fp) : "./hrtfs/elev75/L75e240a.dat" -[ 33, 25 ] = ascii (fp) : "./hrtfs/elev75/L75e235a.dat" -[ 33, 26 ] = ascii (fp) : "./hrtfs/elev75/L75e230a.dat" -[ 33, 27 ] = ascii (fp) : "./hrtfs/elev75/L75e225a.dat" -[ 33, 28 ] = ascii (fp) : "./hrtfs/elev75/L75e220a.dat" -[ 33, 29 ] = ascii (fp) : "./hrtfs/elev75/L75e215a.dat" -[ 33, 30 ] = ascii (fp) : "./hrtfs/elev75/L75e210a.dat" -[ 33, 31 ] = ascii (fp) : "./hrtfs/elev75/L75e205a.dat" -[ 33, 32 ] = ascii (fp) : "./hrtfs/elev75/L75e200a.dat" -[ 33, 33 ] = ascii (fp) : "./hrtfs/elev75/L75e195a.dat" -[ 33, 34 ] = ascii (fp) : "./hrtfs/elev75/L75e190a.dat" -[ 33, 35 ] = ascii (fp) : "./hrtfs/elev75/L75e185a.dat" -[ 33, 36 ] = ascii (fp) : "./hrtfs/elev75/L75e180a.dat" -[ 33, 37 ] = ascii (fp) : "./hrtfs/elev75/L75e175a.dat" -[ 33, 38 ] = ascii (fp) : "./hrtfs/elev75/L75e170a.dat" -[ 33, 39 ] = ascii (fp) : "./hrtfs/elev75/L75e165a.dat" -[ 33, 40 ] = ascii (fp) : "./hrtfs/elev75/L75e160a.dat" -[ 33, 41 ] = ascii (fp) : "./hrtfs/elev75/L75e155a.dat" -[ 33, 42 ] = ascii (fp) : "./hrtfs/elev75/L75e150a.dat" -[ 33, 43 ] = ascii (fp) : "./hrtfs/elev75/L75e145a.dat" -[ 33, 44 ] = ascii (fp) : "./hrtfs/elev75/L75e140a.dat" -[ 33, 45 ] = ascii (fp) : "./hrtfs/elev75/L75e135a.dat" -[ 33, 46 ] = ascii (fp) : "./hrtfs/elev75/L75e130a.dat" -[ 33, 47 ] = ascii (fp) : "./hrtfs/elev75/L75e125a.dat" -[ 33, 48 ] = ascii (fp) : "./hrtfs/elev75/L75e120a.dat" -[ 33, 49 ] = ascii (fp) : "./hrtfs/elev75/L75e115a.dat" -[ 33, 50 ] = ascii (fp) : "./hrtfs/elev75/L75e110a.dat" -[ 33, 51 ] = ascii (fp) : "./hrtfs/elev75/L75e105a.dat" -[ 33, 52 ] = ascii (fp) : "./hrtfs/elev75/L75e100a.dat" -[ 33, 53 ] = ascii (fp) : "./hrtfs/elev75/L75e095a.dat" -[ 33, 54 ] = ascii (fp) : "./hrtfs/elev75/L75e090a.dat" -[ 33, 55 ] = ascii (fp) : "./hrtfs/elev75/L75e085a.dat" -[ 33, 56 ] = ascii (fp) : "./hrtfs/elev75/L75e080a.dat" -[ 33, 57 ] = ascii (fp) : "./hrtfs/elev75/L75e075a.dat" -[ 33, 58 ] = ascii (fp) : "./hrtfs/elev75/L75e070a.dat" -[ 33, 59 ] = ascii (fp) : "./hrtfs/elev75/L75e065a.dat" -[ 33, 60 ] = ascii (fp) : "./hrtfs/elev75/L75e060a.dat" -[ 33, 61 ] = ascii (fp) : "./hrtfs/elev75/L75e055a.dat" -[ 33, 62 ] = ascii (fp) : "./hrtfs/elev75/L75e050a.dat" -[ 33, 63 ] = ascii (fp) : "./hrtfs/elev75/L75e045a.dat" -[ 33, 64 ] = ascii (fp) : "./hrtfs/elev75/L75e040a.dat" -[ 33, 65 ] = ascii (fp) : "./hrtfs/elev75/L75e035a.dat" -[ 33, 66 ] = ascii (fp) : "./hrtfs/elev75/L75e030a.dat" -[ 33, 67 ] = ascii (fp) : "./hrtfs/elev75/L75e025a.dat" -[ 33, 68 ] = ascii (fp) : "./hrtfs/elev75/L75e020a.dat" -[ 33, 69 ] = ascii (fp) : "./hrtfs/elev75/L75e015a.dat" -[ 33, 70 ] = ascii (fp) : "./hrtfs/elev75/L75e010a.dat" -[ 33, 71 ] = ascii (fp) : "./hrtfs/elev75/L75e005a.dat" - -[ 34, 0 ] = ascii (fp) : "./hrtfs/elev80/L80e000a.dat" -[ 34, 1 ] = ascii (fp) : "./hrtfs/elev80/L80e355a.dat" -[ 34, 2 ] = ascii (fp) : "./hrtfs/elev80/L80e350a.dat" -[ 34, 3 ] = ascii (fp) : "./hrtfs/elev80/L80e345a.dat" -[ 34, 4 ] = ascii (fp) : "./hrtfs/elev80/L80e340a.dat" -[ 34, 5 ] = ascii (fp) : "./hrtfs/elev80/L80e335a.dat" -[ 34, 6 ] = ascii (fp) : "./hrtfs/elev80/L80e330a.dat" -[ 34, 7 ] = ascii (fp) : "./hrtfs/elev80/L80e325a.dat" -[ 34, 8 ] = ascii (fp) : "./hrtfs/elev80/L80e320a.dat" -[ 34, 9 ] = ascii (fp) : "./hrtfs/elev80/L80e315a.dat" -[ 34, 10 ] = ascii (fp) : "./hrtfs/elev80/L80e310a.dat" -[ 34, 11 ] = ascii (fp) : "./hrtfs/elev80/L80e305a.dat" -[ 34, 12 ] = ascii (fp) : "./hrtfs/elev80/L80e300a.dat" -[ 34, 13 ] = ascii (fp) : "./hrtfs/elev80/L80e295a.dat" -[ 34, 14 ] = ascii (fp) : "./hrtfs/elev80/L80e290a.dat" -[ 34, 15 ] = ascii (fp) : "./hrtfs/elev80/L80e285a.dat" -[ 34, 16 ] = ascii (fp) : "./hrtfs/elev80/L80e280a.dat" -[ 34, 17 ] = ascii (fp) : "./hrtfs/elev80/L80e275a.dat" -[ 34, 18 ] = ascii (fp) : "./hrtfs/elev80/L80e270a.dat" -[ 34, 19 ] = ascii (fp) : "./hrtfs/elev80/L80e265a.dat" -[ 34, 20 ] = ascii (fp) : "./hrtfs/elev80/L80e260a.dat" -[ 34, 21 ] = ascii (fp) : "./hrtfs/elev80/L80e255a.dat" -[ 34, 22 ] = ascii (fp) : "./hrtfs/elev80/L80e250a.dat" -[ 34, 23 ] = ascii (fp) : "./hrtfs/elev80/L80e245a.dat" -[ 34, 24 ] = ascii (fp) : "./hrtfs/elev80/L80e240a.dat" -[ 34, 25 ] = ascii (fp) : "./hrtfs/elev80/L80e235a.dat" -[ 34, 26 ] = ascii (fp) : "./hrtfs/elev80/L80e230a.dat" -[ 34, 27 ] = ascii (fp) : "./hrtfs/elev80/L80e225a.dat" -[ 34, 28 ] = ascii (fp) : "./hrtfs/elev80/L80e220a.dat" -[ 34, 29 ] = ascii (fp) : "./hrtfs/elev80/L80e215a.dat" -[ 34, 30 ] = ascii (fp) : "./hrtfs/elev80/L80e210a.dat" -[ 34, 31 ] = ascii (fp) : "./hrtfs/elev80/L80e205a.dat" -[ 34, 32 ] = ascii (fp) : "./hrtfs/elev80/L80e200a.dat" -[ 34, 33 ] = ascii (fp) : "./hrtfs/elev80/L80e195a.dat" -[ 34, 34 ] = ascii (fp) : "./hrtfs/elev80/L80e190a.dat" -[ 34, 35 ] = ascii (fp) : "./hrtfs/elev80/L80e185a.dat" -[ 34, 36 ] = ascii (fp) : "./hrtfs/elev80/L80e180a.dat" -[ 34, 37 ] = ascii (fp) : "./hrtfs/elev80/L80e175a.dat" -[ 34, 38 ] = ascii (fp) : "./hrtfs/elev80/L80e170a.dat" -[ 34, 39 ] = ascii (fp) : "./hrtfs/elev80/L80e165a.dat" -[ 34, 40 ] = ascii (fp) : "./hrtfs/elev80/L80e160a.dat" -[ 34, 41 ] = ascii (fp) : "./hrtfs/elev80/L80e155a.dat" -[ 34, 42 ] = ascii (fp) : "./hrtfs/elev80/L80e150a.dat" -[ 34, 43 ] = ascii (fp) : "./hrtfs/elev80/L80e145a.dat" -[ 34, 44 ] = ascii (fp) : "./hrtfs/elev80/L80e140a.dat" -[ 34, 45 ] = ascii (fp) : "./hrtfs/elev80/L80e135a.dat" -[ 34, 46 ] = ascii (fp) : "./hrtfs/elev80/L80e130a.dat" -[ 34, 47 ] = ascii (fp) : "./hrtfs/elev80/L80e125a.dat" -[ 34, 48 ] = ascii (fp) : "./hrtfs/elev80/L80e120a.dat" -[ 34, 49 ] = ascii (fp) : "./hrtfs/elev80/L80e115a.dat" -[ 34, 50 ] = ascii (fp) : "./hrtfs/elev80/L80e110a.dat" -[ 34, 51 ] = ascii (fp) : "./hrtfs/elev80/L80e105a.dat" -[ 34, 52 ] = ascii (fp) : "./hrtfs/elev80/L80e100a.dat" -[ 34, 53 ] = ascii (fp) : "./hrtfs/elev80/L80e095a.dat" -[ 34, 54 ] = ascii (fp) : "./hrtfs/elev80/L80e090a.dat" -[ 34, 55 ] = ascii (fp) : "./hrtfs/elev80/L80e085a.dat" -[ 34, 56 ] = ascii (fp) : "./hrtfs/elev80/L80e080a.dat" -[ 34, 57 ] = ascii (fp) : "./hrtfs/elev80/L80e075a.dat" -[ 34, 58 ] = ascii (fp) : "./hrtfs/elev80/L80e070a.dat" -[ 34, 59 ] = ascii (fp) : "./hrtfs/elev80/L80e065a.dat" -[ 34, 60 ] = ascii (fp) : "./hrtfs/elev80/L80e060a.dat" -[ 34, 61 ] = ascii (fp) : "./hrtfs/elev80/L80e055a.dat" -[ 34, 62 ] = ascii (fp) : "./hrtfs/elev80/L80e050a.dat" -[ 34, 63 ] = ascii (fp) : "./hrtfs/elev80/L80e045a.dat" -[ 34, 64 ] = ascii (fp) : "./hrtfs/elev80/L80e040a.dat" -[ 34, 65 ] = ascii (fp) : "./hrtfs/elev80/L80e035a.dat" -[ 34, 66 ] = ascii (fp) : "./hrtfs/elev80/L80e030a.dat" -[ 34, 67 ] = ascii (fp) : "./hrtfs/elev80/L80e025a.dat" -[ 34, 68 ] = ascii (fp) : "./hrtfs/elev80/L80e020a.dat" -[ 34, 69 ] = ascii (fp) : "./hrtfs/elev80/L80e015a.dat" -[ 34, 70 ] = ascii (fp) : "./hrtfs/elev80/L80e010a.dat" -[ 34, 71 ] = ascii (fp) : "./hrtfs/elev80/L80e005a.dat" - -[ 35, 0 ] = ascii (fp) : "./hrtfs/elev85/L85e000a.dat" -[ 35, 1 ] = ascii (fp) : "./hrtfs/elev85/L85e355a.dat" -[ 35, 2 ] = ascii (fp) : "./hrtfs/elev85/L85e350a.dat" -[ 35, 3 ] = ascii (fp) : "./hrtfs/elev85/L85e345a.dat" -[ 35, 4 ] = ascii (fp) : "./hrtfs/elev85/L85e340a.dat" -[ 35, 5 ] = ascii (fp) : "./hrtfs/elev85/L85e335a.dat" -[ 35, 6 ] = ascii (fp) : "./hrtfs/elev85/L85e330a.dat" -[ 35, 7 ] = ascii (fp) : "./hrtfs/elev85/L85e325a.dat" -[ 35, 8 ] = ascii (fp) : "./hrtfs/elev85/L85e320a.dat" -[ 35, 9 ] = ascii (fp) : "./hrtfs/elev85/L85e315a.dat" -[ 35, 10 ] = ascii (fp) : "./hrtfs/elev85/L85e310a.dat" -[ 35, 11 ] = ascii (fp) : "./hrtfs/elev85/L85e305a.dat" -[ 35, 12 ] = ascii (fp) : "./hrtfs/elev85/L85e300a.dat" -[ 35, 13 ] = ascii (fp) : "./hrtfs/elev85/L85e295a.dat" -[ 35, 14 ] = ascii (fp) : "./hrtfs/elev85/L85e290a.dat" -[ 35, 15 ] = ascii (fp) : "./hrtfs/elev85/L85e285a.dat" -[ 35, 16 ] = ascii (fp) : "./hrtfs/elev85/L85e280a.dat" -[ 35, 17 ] = ascii (fp) : "./hrtfs/elev85/L85e275a.dat" -[ 35, 18 ] = ascii (fp) : "./hrtfs/elev85/L85e270a.dat" -[ 35, 19 ] = ascii (fp) : "./hrtfs/elev85/L85e265a.dat" -[ 35, 20 ] = ascii (fp) : "./hrtfs/elev85/L85e260a.dat" -[ 35, 21 ] = ascii (fp) : "./hrtfs/elev85/L85e255a.dat" -[ 35, 22 ] = ascii (fp) : "./hrtfs/elev85/L85e250a.dat" -[ 35, 23 ] = ascii (fp) : "./hrtfs/elev85/L85e245a.dat" -[ 35, 24 ] = ascii (fp) : "./hrtfs/elev85/L85e240a.dat" -[ 35, 25 ] = ascii (fp) : "./hrtfs/elev85/L85e235a.dat" -[ 35, 26 ] = ascii (fp) : "./hrtfs/elev85/L85e230a.dat" -[ 35, 27 ] = ascii (fp) : "./hrtfs/elev85/L85e225a.dat" -[ 35, 28 ] = ascii (fp) : "./hrtfs/elev85/L85e220a.dat" -[ 35, 29 ] = ascii (fp) : "./hrtfs/elev85/L85e215a.dat" -[ 35, 30 ] = ascii (fp) : "./hrtfs/elev85/L85e210a.dat" -[ 35, 31 ] = ascii (fp) : "./hrtfs/elev85/L85e205a.dat" -[ 35, 32 ] = ascii (fp) : "./hrtfs/elev85/L85e200a.dat" -[ 35, 33 ] = ascii (fp) : "./hrtfs/elev85/L85e195a.dat" -[ 35, 34 ] = ascii (fp) : "./hrtfs/elev85/L85e190a.dat" -[ 35, 35 ] = ascii (fp) : "./hrtfs/elev85/L85e185a.dat" -[ 35, 36 ] = ascii (fp) : "./hrtfs/elev85/L85e180a.dat" -[ 35, 37 ] = ascii (fp) : "./hrtfs/elev85/L85e175a.dat" -[ 35, 38 ] = ascii (fp) : "./hrtfs/elev85/L85e170a.dat" -[ 35, 39 ] = ascii (fp) : "./hrtfs/elev85/L85e165a.dat" -[ 35, 40 ] = ascii (fp) : "./hrtfs/elev85/L85e160a.dat" -[ 35, 41 ] = ascii (fp) : "./hrtfs/elev85/L85e155a.dat" -[ 35, 42 ] = ascii (fp) : "./hrtfs/elev85/L85e150a.dat" -[ 35, 43 ] = ascii (fp) : "./hrtfs/elev85/L85e145a.dat" -[ 35, 44 ] = ascii (fp) : "./hrtfs/elev85/L85e140a.dat" -[ 35, 45 ] = ascii (fp) : "./hrtfs/elev85/L85e135a.dat" -[ 35, 46 ] = ascii (fp) : "./hrtfs/elev85/L85e130a.dat" -[ 35, 47 ] = ascii (fp) : "./hrtfs/elev85/L85e125a.dat" -[ 35, 48 ] = ascii (fp) : "./hrtfs/elev85/L85e120a.dat" -[ 35, 49 ] = ascii (fp) : "./hrtfs/elev85/L85e115a.dat" -[ 35, 50 ] = ascii (fp) : "./hrtfs/elev85/L85e110a.dat" -[ 35, 51 ] = ascii (fp) : "./hrtfs/elev85/L85e105a.dat" -[ 35, 52 ] = ascii (fp) : "./hrtfs/elev85/L85e100a.dat" -[ 35, 53 ] = ascii (fp) : "./hrtfs/elev85/L85e095a.dat" -[ 35, 54 ] = ascii (fp) : "./hrtfs/elev85/L85e090a.dat" -[ 35, 55 ] = ascii (fp) : "./hrtfs/elev85/L85e085a.dat" -[ 35, 56 ] = ascii (fp) : "./hrtfs/elev85/L85e080a.dat" -[ 35, 57 ] = ascii (fp) : "./hrtfs/elev85/L85e075a.dat" -[ 35, 58 ] = ascii (fp) : "./hrtfs/elev85/L85e070a.dat" -[ 35, 59 ] = ascii (fp) : "./hrtfs/elev85/L85e065a.dat" -[ 35, 60 ] = ascii (fp) : "./hrtfs/elev85/L85e060a.dat" -[ 35, 61 ] = ascii (fp) : "./hrtfs/elev85/L85e055a.dat" -[ 35, 62 ] = ascii (fp) : "./hrtfs/elev85/L85e050a.dat" -[ 35, 63 ] = ascii (fp) : "./hrtfs/elev85/L85e045a.dat" -[ 35, 64 ] = ascii (fp) : "./hrtfs/elev85/L85e040a.dat" -[ 35, 65 ] = ascii (fp) : "./hrtfs/elev85/L85e035a.dat" -[ 35, 66 ] = ascii (fp) : "./hrtfs/elev85/L85e030a.dat" -[ 35, 67 ] = ascii (fp) : "./hrtfs/elev85/L85e025a.dat" -[ 35, 68 ] = ascii (fp) : "./hrtfs/elev85/L85e020a.dat" -[ 35, 69 ] = ascii (fp) : "./hrtfs/elev85/L85e015a.dat" -[ 35, 70 ] = ascii (fp) : "./hrtfs/elev85/L85e010a.dat" -[ 35, 71 ] = ascii (fp) : "./hrtfs/elev85/L85e005a.dat" - -[ 36, 0 ] = ascii (fp) : "./hrtfs/elev90/L90e000a.dat" - - diff --git a/libs/openal-soft-1.15.1/hrtf_defs/IRC_1005.def b/libs/openal-soft-1.15.1/hrtf_defs/IRC_1005.def deleted file mode 100644 index 5c02c58..0000000 --- a/libs/openal-soft-1.15.1/hrtf_defs/IRC_1005.def +++ /dev/null @@ -1,421 +0,0 @@ -# This is a makehrtf HRIR definition file. It is used to define the layout -# and source data to be processed into an OpenAL Soft compatible HRTF. -# -# This definition is used to transform an average of the left and right ear -# HRIRs from any raw dataset from the IRCAM/AKG Listen HRTF database. -# -# The datasets are available free of charge from: -# -# http://recherche.ircam.fr/equipes/salles/listen/index.html -# -# Contact for the Listen HRTF Database: -# -# Olivier Warusfel , -# Room Acoustics Team, IRCAM -# 1, place Igor Stravinsky -# 75004 PARIS, France - -rate = 44100 - -# The raw sets have up to 8192 samples, but 2048 seems large enough. -points = 2048 - -# The IRCAM sets are not as dense as the MIT set. -azimuths = 1, 6, 12, 24, 24, 24, 24, 24, 24, 24, 12, 6, 1 - -# No head radius was provided. Just use the average radius of 9 cm. -radius = 0.09 - -# The distance between the source and the listener (in meters). -distance = 1.95 - -# The IRCAM source azimuth is counter-clockwise, so it needs to be flipped. -# Left and right ear HRIRs (from the respective WAVE channels) are averaged. - -# Repalce all occurrences of IRC_#### for the desired subject (1005 was used -# in this demonstration). - -[ 3, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P315.wav" -[ 3, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P315.wav" -[ 3, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P315.wav" -[ 3, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P315.wav" -[ 3, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P315.wav" -[ 3, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P315.wav" -[ 3, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P315.wav" -[ 3, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P315.wav" -[ 3, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P315.wav" -[ 3, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P315.wav" -[ 3, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P315.wav" -[ 3, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P315.wav" -[ 3, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P315.wav" -[ 3, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P315.wav" -[ 3, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P315.wav" -[ 3, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P315.wav" -[ 3, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P315.wav" -[ 3, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P315.wav" -[ 3, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P315.wav" -[ 3, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P315.wav" -[ 3, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P315.wav" -[ 3, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P315.wav" -[ 3, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P315.wav" -[ 3, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P315.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P315.wav" - -[ 4, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P330.wav" -[ 4, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P330.wav" -[ 4, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P330.wav" -[ 4, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P330.wav" -[ 4, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P330.wav" -[ 4, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P330.wav" -[ 4, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P330.wav" -[ 4, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P330.wav" -[ 4, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P330.wav" -[ 4, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P330.wav" -[ 4, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P330.wav" -[ 4, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P330.wav" -[ 4, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P330.wav" -[ 4, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P330.wav" -[ 4, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P330.wav" -[ 4, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P330.wav" -[ 4, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P330.wav" -[ 4, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P330.wav" -[ 4, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P330.wav" -[ 4, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P330.wav" -[ 4, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P330.wav" -[ 4, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P330.wav" -[ 4, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P330.wav" -[ 4, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P330.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P330.wav" - -[ 5, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P345.wav" -[ 5, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P345.wav" -[ 5, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P345.wav" -[ 5, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P345.wav" -[ 5, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P345.wav" -[ 5, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P345.wav" -[ 5, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P345.wav" -[ 5, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P345.wav" -[ 5, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P345.wav" -[ 5, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P345.wav" -[ 5, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P345.wav" -[ 5, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P345.wav" -[ 5, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P345.wav" -[ 5, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P345.wav" -[ 5, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P345.wav" -[ 5, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P345.wav" -[ 5, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P345.wav" -[ 5, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P345.wav" -[ 5, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P345.wav" -[ 5, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P345.wav" -[ 5, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P345.wav" -[ 5, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P345.wav" -[ 5, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P345.wav" -[ 5, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P345.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P345.wav" - -[ 6, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P000.wav" -[ 6, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P000.wav" -[ 6, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P000.wav" -[ 6, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P000.wav" -[ 6, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P000.wav" -[ 6, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P000.wav" -[ 6, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P000.wav" -[ 6, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P000.wav" -[ 6, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P000.wav" -[ 6, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P000.wav" -[ 6, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P000.wav" -[ 6, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P000.wav" -[ 6, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P000.wav" -[ 6, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P000.wav" -[ 6, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P000.wav" -[ 6, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P000.wav" -[ 6, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P000.wav" -[ 6, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P000.wav" -[ 6, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P000.wav" -[ 6, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P000.wav" -[ 6, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P000.wav" -[ 6, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P000.wav" -[ 6, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P000.wav" -[ 6, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P000.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P000.wav" - -[ 7, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P015.wav" -[ 7, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P015.wav" -[ 7, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P015.wav" -[ 7, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P015.wav" -[ 7, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P015.wav" -[ 7, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P015.wav" -[ 7, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P015.wav" -[ 7, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P015.wav" -[ 7, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P015.wav" -[ 7, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P015.wav" -[ 7, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P015.wav" -[ 7, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P015.wav" -[ 7, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P015.wav" -[ 7, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P015.wav" -[ 7, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P015.wav" -[ 7, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P015.wav" -[ 7, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P015.wav" -[ 7, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P015.wav" -[ 7, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P015.wav" -[ 7, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P015.wav" -[ 7, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P015.wav" -[ 7, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P015.wav" -[ 7, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P015.wav" -[ 7, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P015.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P015.wav" - -[ 8, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P030.wav" -[ 8, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P030.wav" -[ 8, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P030.wav" -[ 8, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P030.wav" -[ 8, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P030.wav" -[ 8, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P030.wav" -[ 8, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P030.wav" -[ 8, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P030.wav" -[ 8, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P030.wav" -[ 8, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P030.wav" -[ 8, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P030.wav" -[ 8, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P030.wav" -[ 8, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P030.wav" -[ 8, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P030.wav" -[ 8, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P030.wav" -[ 8, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P030.wav" -[ 8, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P030.wav" -[ 8, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P030.wav" -[ 8, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P030.wav" -[ 8, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P030.wav" -[ 8, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P030.wav" -[ 8, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P030.wav" -[ 8, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P030.wav" -[ 8, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P030.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P030.wav" - -[ 9, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P045.wav" -[ 9, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P045.wav" -[ 9, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P045.wav" -[ 9, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P045.wav" -[ 9, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P045.wav" -[ 9, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P045.wav" -[ 9, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P045.wav" -[ 9, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P045.wav" -[ 9, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P045.wav" -[ 9, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P045.wav" -[ 9, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P045.wav" -[ 9, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P045.wav" -[ 9, 12 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P045.wav" -[ 9, 13 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T165_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T195_P045.wav" -[ 9, 14 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P045.wav" -[ 9, 15 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T135_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T225_P045.wav" -[ 9, 16 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P045.wav" -[ 9, 17 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T105_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T255_P045.wav" -[ 9, 18 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P045.wav" -[ 9, 19 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T075_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T285_P045.wav" -[ 9, 20 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P045.wav" -[ 9, 21 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T045_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T315_P045.wav" -[ 9, 22 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P045.wav" -[ 9, 23 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T015_P045.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T345_P045.wav" - -[ 10, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P060.wav" -[ 10, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P060.wav" -[ 10, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P060.wav" -[ 10, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P060.wav" -[ 10, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P060.wav" -[ 10, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P060.wav" -[ 10, 6 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P060.wav" -[ 10, 7 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T150_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T210_P060.wav" -[ 10, 8 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P060.wav" -[ 10, 9 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T090_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T270_P060.wav" -[ 10, 10 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P060.wav" -[ 10, 11 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T030_P060.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T330_P060.wav" - -[ 11, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P075.wav" -[ 11, 1 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P075.wav" -[ 11, 2 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P075.wav" -[ 11, 3 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T180_P075.wav" -[ 11, 4 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T120_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T240_P075.wav" -[ 11, 5 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T060_P075.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T300_P075.wav" - -[ 12, 0 ] = wave (0) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P090.wav" - + wave (1) : "./IRC/RAW/WAV/IRC_1005_R/IRC_1005_R_R0195_T000_P090.wav" - diff --git a/libs/openal-soft-1.15.1/hrtf_defs/MIT_KEMAR.def b/libs/openal-soft-1.15.1/hrtf_defs/MIT_KEMAR.def deleted file mode 100644 index 62412b2..0000000 --- a/libs/openal-soft-1.15.1/hrtf_defs/MIT_KEMAR.def +++ /dev/null @@ -1,819 +0,0 @@ -# This is a makehrtf HRIR definition file. It is used to define the layout -# and source data to be processed into an OpenAL Soft compatible HRTF. -# -# This definition is used to transform the left ear HRIRs from the full set -# of KEMAR HRIRs provided by Bill Gardner and Keith -# Martin of MIT Media Laboratory. -# -# The data (full.tar.Z or full.zip) is available from: -# -# http://sound.media.mit.edu/resources/KEMAR.html -# -# It is copyright 1994 by MIT Media Laboratory, and provided free of charge -# with no restrictions on use so long as the authors (above) are cited. -# -# This definition is used to generate the internal HRTF table used by OpenAL -# Soft. - -# The following are the dataset metrics. They must always be specified at -# start of a definition file, but their order is not important. - -# Sampling rate of the HRIR data (in hertz). -rate = 44100 - -# The number of points to use from the HRIR data. This should be a -# sufficiently large value (to encompass the entire impulse response). It -# cannot be smaller than the truncation size (default is 32) specified on the -# command line. -points = 512 - -# A list of the number of azimuths measured for each elevation. There must -# be at least 5 elevations covering the 180 degrees for the dataset to be -# viable. -azimuths = 1, 12, 24, 36, 45, 56, 60, 72, 72, 72, 72, 72, 60, 56, 45, 36, 24, 12, 1 - -# The approximate radius (measured ear-to-ear) of the listener's head (in -# meters). This does not have to match the dataset, since makehrtf uses a -# spherical model to reconstruct the propagation delay. -radius = 0.09 - -# The distance between the source and the listener (in meters). This does -# have to match the dataset, but it's effect is minimal at the moment due to -# the coupled nature of OpenAL Soft's HRTF model. -distance = 1.4 - -# Following the metrics is the list of source HRIRs for each elevation and -# azimuth pair. They don't have to be specified in order, but the final -# composition must not be sparse. They can however begin above a number of -# elevations (as typical for HRIR measurements). -# -# The elevation and azimuth indices are used to determine the resulting polar -# coordinates following OpenAL Soft's convention (-90 degree elevation -# increasing counter-clockwise from the bottom; 0 degree azimuth increasing -# clockwise from the front). -# -# More than one HRIR can be used per source, in which case the average -# magnitude response of all references for that source is used. -# -# Source specification is of the form (~BNF): -# -# source = '[' ev_index ',' az_index ']' '=' source_ref [ '+' source_ref ]* -# -# ev_index = unsigned_integer -# az_index = unsigned_integer -# source_ref = ref_spec ':' filename -# -# ref_spec = ( wave_fmt '(' wave_parms ')' [ '@' start_sample ] ) | -# ( bin_fmt '(' bini_parms ')' [ '@' start_bytes ] ) | -# ( bin_fmt '(' binf_parms ')' [ '@' start_bytes ] ) | -# ( ascii_fmt '(' asci_parms ')' [ '@' start_elements ] ) | -# ( ascii_fmt '(' ascf_parms ')' [ '@' start_elements ] ) -# filename = double_quoted_string -# -# wave_fmt = 'wave' -# wave_parms = channel -# bin_fmt = 'bin_le' | 'bin_be' -# bini_parms = 'int' ',' byte_size [ ',' bin_sig_bits ] [ ';' skip_bytes ] -# binf_parms = 'fp' ',' byte_size [ ';' skip_bytes ] -# ascii_fmt = 'ascii' -# asci_parms = 'int' ',' sig_bits [ ';' skip_elements ] -# ascf_parms = 'fp' [ ';' skip_elements ] -# start_sample = unsigned_integer -# start_bytes = unsigned_integer -# start_elements = unsigned_integer -# -# channel = unsigned_integer -# byte_size = unsigned_integer -# bin_sig_bits = signed_integer -# skip_bytes = unsigned_integer -# sig_bits = unsigned_integer -# skip_elements = unsigned_integer -# -# For bin_sig_bits, positive values mean the significant bits start at the -# MSB (padding toward the LSB) while negative values mean they start at the -# LSB. - -[ 5, 0 ] = wave (0) : "./MITfull/elev-40/L-40e000a.wav" -[ 5, 1 ] = wave (0) : "./MITfull/elev-40/L-40e006a.wav" -[ 5, 2 ] = wave (0) : "./MITfull/elev-40/L-40e013a.wav" -[ 5, 3 ] = wave (0) : "./MITfull/elev-40/L-40e019a.wav" -[ 5, 4 ] = wave (0) : "./MITfull/elev-40/L-40e026a.wav" -[ 5, 5 ] = wave (0) : "./MITfull/elev-40/L-40e032a.wav" -[ 5, 6 ] = wave (0) : "./MITfull/elev-40/L-40e039a.wav" -[ 5, 7 ] = wave (0) : "./MITfull/elev-40/L-40e045a.wav" -[ 5, 8 ] = wave (0) : "./MITfull/elev-40/L-40e051a.wav" -[ 5, 9 ] = wave (0) : "./MITfull/elev-40/L-40e058a.wav" -[ 5, 10 ] = wave (0) : "./MITfull/elev-40/L-40e064a.wav" -[ 5, 11 ] = wave (0) : "./MITfull/elev-40/L-40e071a.wav" -[ 5, 12 ] = wave (0) : "./MITfull/elev-40/L-40e077a.wav" -[ 5, 13 ] = wave (0) : "./MITfull/elev-40/L-40e084a.wav" -[ 5, 14 ] = wave (0) : "./MITfull/elev-40/L-40e090a.wav" -[ 5, 15 ] = wave (0) : "./MITfull/elev-40/L-40e096a.wav" -[ 5, 16 ] = wave (0) : "./MITfull/elev-40/L-40e103a.wav" -[ 5, 17 ] = wave (0) : "./MITfull/elev-40/L-40e109a.wav" -[ 5, 18 ] = wave (0) : "./MITfull/elev-40/L-40e116a.wav" -[ 5, 19 ] = wave (0) : "./MITfull/elev-40/L-40e122a.wav" -[ 5, 20 ] = wave (0) : "./MITfull/elev-40/L-40e129a.wav" -[ 5, 21 ] = wave (0) : "./MITfull/elev-40/L-40e135a.wav" -[ 5, 22 ] = wave (0) : "./MITfull/elev-40/L-40e141a.wav" -[ 5, 23 ] = wave (0) : "./MITfull/elev-40/L-40e148a.wav" -[ 5, 24 ] = wave (0) : "./MITfull/elev-40/L-40e154a.wav" -[ 5, 25 ] = wave (0) : "./MITfull/elev-40/L-40e161a.wav" -[ 5, 26 ] = wave (0) : "./MITfull/elev-40/L-40e167a.wav" -[ 5, 27 ] = wave (0) : "./MITfull/elev-40/L-40e174a.wav" -[ 5, 28 ] = wave (0) : "./MITfull/elev-40/L-40e180a.wav" -[ 5, 29 ] = wave (0) : "./MITfull/elev-40/L-40e186a.wav" -[ 5, 30 ] = wave (0) : "./MITfull/elev-40/L-40e193a.wav" -[ 5, 31 ] = wave (0) : "./MITfull/elev-40/L-40e199a.wav" -[ 5, 32 ] = wave (0) : "./MITfull/elev-40/L-40e206a.wav" -[ 5, 33 ] = wave (0) : "./MITfull/elev-40/L-40e212a.wav" -[ 5, 34 ] = wave (0) : "./MITfull/elev-40/L-40e219a.wav" -[ 5, 35 ] = wave (0) : "./MITfull/elev-40/L-40e225a.wav" -[ 5, 36 ] = wave (0) : "./MITfull/elev-40/L-40e231a.wav" -[ 5, 37 ] = wave (0) : "./MITfull/elev-40/L-40e238a.wav" -[ 5, 38 ] = wave (0) : "./MITfull/elev-40/L-40e244a.wav" -[ 5, 39 ] = wave (0) : "./MITfull/elev-40/L-40e251a.wav" -[ 5, 40 ] = wave (0) : "./MITfull/elev-40/L-40e257a.wav" -[ 5, 41 ] = wave (0) : "./MITfull/elev-40/L-40e264a.wav" -[ 5, 42 ] = wave (0) : "./MITfull/elev-40/L-40e270a.wav" -[ 5, 43 ] = wave (0) : "./MITfull/elev-40/L-40e276a.wav" -[ 5, 44 ] = wave (0) : "./MITfull/elev-40/L-40e283a.wav" -[ 5, 45 ] = wave (0) : "./MITfull/elev-40/L-40e289a.wav" -[ 5, 46 ] = wave (0) : "./MITfull/elev-40/L-40e296a.wav" -[ 5, 47 ] = wave (0) : "./MITfull/elev-40/L-40e302a.wav" -[ 5, 48 ] = wave (0) : "./MITfull/elev-40/L-40e309a.wav" -[ 5, 49 ] = wave (0) : "./MITfull/elev-40/L-40e315a.wav" -[ 5, 50 ] = wave (0) : "./MITfull/elev-40/L-40e321a.wav" -[ 5, 51 ] = wave (0) : "./MITfull/elev-40/L-40e328a.wav" -[ 5, 52 ] = wave (0) : "./MITfull/elev-40/L-40e334a.wav" -[ 5, 53 ] = wave (0) : "./MITfull/elev-40/L-40e341a.wav" -[ 5, 54 ] = wave (0) : "./MITfull/elev-40/L-40e347a.wav" -[ 5, 55 ] = wave (0) : "./MITfull/elev-40/L-40e354a.wav" - -[ 6, 0 ] = wave (0) : "./MITfull/elev-30/L-30e000a.wav" -[ 6, 1 ] = wave (0) : "./MITfull/elev-30/L-30e006a.wav" -[ 6, 2 ] = wave (0) : "./MITfull/elev-30/L-30e012a.wav" -[ 6, 3 ] = wave (0) : "./MITfull/elev-30/L-30e018a.wav" -[ 6, 4 ] = wave (0) : "./MITfull/elev-30/L-30e024a.wav" -[ 6, 5 ] = wave (0) : "./MITfull/elev-30/L-30e030a.wav" -[ 6, 6 ] = wave (0) : "./MITfull/elev-30/L-30e036a.wav" -[ 6, 7 ] = wave (0) : "./MITfull/elev-30/L-30e042a.wav" -[ 6, 8 ] = wave (0) : "./MITfull/elev-30/L-30e048a.wav" -[ 6, 9 ] = wave (0) : "./MITfull/elev-30/L-30e054a.wav" -[ 6, 10 ] = wave (0) : "./MITfull/elev-30/L-30e060a.wav" -[ 6, 11 ] = wave (0) : "./MITfull/elev-30/L-30e066a.wav" -[ 6, 12 ] = wave (0) : "./MITfull/elev-30/L-30e072a.wav" -[ 6, 13 ] = wave (0) : "./MITfull/elev-30/L-30e078a.wav" -[ 6, 14 ] = wave (0) : "./MITfull/elev-30/L-30e084a.wav" -[ 6, 15 ] = wave (0) : "./MITfull/elev-30/L-30e090a.wav" -[ 6, 16 ] = wave (0) : "./MITfull/elev-30/L-30e096a.wav" -[ 6, 17 ] = wave (0) : "./MITfull/elev-30/L-30e102a.wav" -[ 6, 18 ] = wave (0) : "./MITfull/elev-30/L-30e108a.wav" -[ 6, 19 ] = wave (0) : "./MITfull/elev-30/L-30e114a.wav" -[ 6, 20 ] = wave (0) : "./MITfull/elev-30/L-30e120a.wav" -[ 6, 21 ] = wave (0) : "./MITfull/elev-30/L-30e126a.wav" -[ 6, 22 ] = wave (0) : "./MITfull/elev-30/L-30e132a.wav" -[ 6, 23 ] = wave (0) : "./MITfull/elev-30/L-30e138a.wav" -[ 6, 24 ] = wave (0) : "./MITfull/elev-30/L-30e144a.wav" -[ 6, 25 ] = wave (0) : "./MITfull/elev-30/L-30e150a.wav" -[ 6, 26 ] = wave (0) : "./MITfull/elev-30/L-30e156a.wav" -[ 6, 27 ] = wave (0) : "./MITfull/elev-30/L-30e162a.wav" -[ 6, 28 ] = wave (0) : "./MITfull/elev-30/L-30e168a.wav" -[ 6, 29 ] = wave (0) : "./MITfull/elev-30/L-30e174a.wav" -[ 6, 30 ] = wave (0) : "./MITfull/elev-30/L-30e180a.wav" -[ 6, 31 ] = wave (0) : "./MITfull/elev-30/L-30e186a.wav" -[ 6, 32 ] = wave (0) : "./MITfull/elev-30/L-30e192a.wav" -[ 6, 33 ] = wave (0) : "./MITfull/elev-30/L-30e198a.wav" -[ 6, 34 ] = wave (0) : "./MITfull/elev-30/L-30e204a.wav" -[ 6, 35 ] = wave (0) : "./MITfull/elev-30/L-30e210a.wav" -[ 6, 36 ] = wave (0) : "./MITfull/elev-30/L-30e216a.wav" -[ 6, 37 ] = wave (0) : "./MITfull/elev-30/L-30e222a.wav" -[ 6, 38 ] = wave (0) : "./MITfull/elev-30/L-30e228a.wav" -[ 6, 39 ] = wave (0) : "./MITfull/elev-30/L-30e234a.wav" -[ 6, 40 ] = wave (0) : "./MITfull/elev-30/L-30e240a.wav" -[ 6, 41 ] = wave (0) : "./MITfull/elev-30/L-30e246a.wav" -[ 6, 42 ] = wave (0) : "./MITfull/elev-30/L-30e252a.wav" -[ 6, 43 ] = wave (0) : "./MITfull/elev-30/L-30e258a.wav" -[ 6, 44 ] = wave (0) : "./MITfull/elev-30/L-30e264a.wav" -[ 6, 45 ] = wave (0) : "./MITfull/elev-30/L-30e270a.wav" -[ 6, 46 ] = wave (0) : "./MITfull/elev-30/L-30e276a.wav" -[ 6, 47 ] = wave (0) : "./MITfull/elev-30/L-30e282a.wav" -[ 6, 48 ] = wave (0) : "./MITfull/elev-30/L-30e288a.wav" -[ 6, 49 ] = wave (0) : "./MITfull/elev-30/L-30e294a.wav" -[ 6, 50 ] = wave (0) : "./MITfull/elev-30/L-30e300a.wav" -[ 6, 51 ] = wave (0) : "./MITfull/elev-30/L-30e306a.wav" -[ 6, 52 ] = wave (0) : "./MITfull/elev-30/L-30e312a.wav" -[ 6, 53 ] = wave (0) : "./MITfull/elev-30/L-30e318a.wav" -[ 6, 54 ] = wave (0) : "./MITfull/elev-30/L-30e324a.wav" -[ 6, 55 ] = wave (0) : "./MITfull/elev-30/L-30e330a.wav" -[ 6, 56 ] = wave (0) : "./MITfull/elev-30/L-30e336a.wav" -[ 6, 57 ] = wave (0) : "./MITfull/elev-30/L-30e342a.wav" -[ 6, 58 ] = wave (0) : "./MITfull/elev-30/L-30e348a.wav" -[ 6, 59 ] = wave (0) : "./MITfull/elev-30/L-30e354a.wav" - -[ 7, 0 ] = wave (0) : "./MITfull/elev-20/L-20e000a.wav" -[ 7, 1 ] = wave (0) : "./MITfull/elev-20/L-20e005a.wav" -[ 7, 2 ] = wave (0) : "./MITfull/elev-20/L-20e010a.wav" -[ 7, 3 ] = wave (0) : "./MITfull/elev-20/L-20e015a.wav" -[ 7, 4 ] = wave (0) : "./MITfull/elev-20/L-20e020a.wav" -[ 7, 5 ] = wave (0) : "./MITfull/elev-20/L-20e025a.wav" -[ 7, 6 ] = wave (0) : "./MITfull/elev-20/L-20e030a.wav" -[ 7, 7 ] = wave (0) : "./MITfull/elev-20/L-20e035a.wav" -[ 7, 8 ] = wave (0) : "./MITfull/elev-20/L-20e040a.wav" -[ 7, 9 ] = wave (0) : "./MITfull/elev-20/L-20e045a.wav" -[ 7, 10 ] = wave (0) : "./MITfull/elev-20/L-20e050a.wav" -[ 7, 11 ] = wave (0) : "./MITfull/elev-20/L-20e055a.wav" -[ 7, 12 ] = wave (0) : "./MITfull/elev-20/L-20e060a.wav" -[ 7, 13 ] = wave (0) : "./MITfull/elev-20/L-20e065a.wav" -[ 7, 14 ] = wave (0) : "./MITfull/elev-20/L-20e070a.wav" -[ 7, 15 ] = wave (0) : "./MITfull/elev-20/L-20e075a.wav" -[ 7, 16 ] = wave (0) : "./MITfull/elev-20/L-20e080a.wav" -[ 7, 17 ] = wave (0) : "./MITfull/elev-20/L-20e085a.wav" -[ 7, 18 ] = wave (0) : "./MITfull/elev-20/L-20e090a.wav" -[ 7, 19 ] = wave (0) : "./MITfull/elev-20/L-20e095a.wav" -[ 7, 20 ] = wave (0) : "./MITfull/elev-20/L-20e100a.wav" -[ 7, 21 ] = wave (0) : "./MITfull/elev-20/L-20e105a.wav" -[ 7, 22 ] = wave (0) : "./MITfull/elev-20/L-20e110a.wav" -[ 7, 23 ] = wave (0) : "./MITfull/elev-20/L-20e115a.wav" -[ 7, 24 ] = wave (0) : "./MITfull/elev-20/L-20e120a.wav" -[ 7, 25 ] = wave (0) : "./MITfull/elev-20/L-20e125a.wav" -[ 7, 26 ] = wave (0) : "./MITfull/elev-20/L-20e130a.wav" -[ 7, 27 ] = wave (0) : "./MITfull/elev-20/L-20e135a.wav" -[ 7, 28 ] = wave (0) : "./MITfull/elev-20/L-20e140a.wav" -[ 7, 29 ] = wave (0) : "./MITfull/elev-20/L-20e145a.wav" -[ 7, 30 ] = wave (0) : "./MITfull/elev-20/L-20e150a.wav" -[ 7, 31 ] = wave (0) : "./MITfull/elev-20/L-20e155a.wav" -[ 7, 32 ] = wave (0) : "./MITfull/elev-20/L-20e160a.wav" -[ 7, 33 ] = wave (0) : "./MITfull/elev-20/L-20e165a.wav" -[ 7, 34 ] = wave (0) : "./MITfull/elev-20/L-20e170a.wav" -[ 7, 35 ] = wave (0) : "./MITfull/elev-20/L-20e175a.wav" -[ 7, 36 ] = wave (0) : "./MITfull/elev-20/L-20e180a.wav" -[ 7, 37 ] = wave (0) : "./MITfull/elev-20/L-20e185a.wav" -[ 7, 38 ] = wave (0) : "./MITfull/elev-20/L-20e190a.wav" -[ 7, 39 ] = wave (0) : "./MITfull/elev-20/L-20e195a.wav" -[ 7, 40 ] = wave (0) : "./MITfull/elev-20/L-20e200a.wav" -[ 7, 41 ] = wave (0) : "./MITfull/elev-20/L-20e205a.wav" -[ 7, 42 ] = wave (0) : "./MITfull/elev-20/L-20e210a.wav" -[ 7, 43 ] = wave (0) : "./MITfull/elev-20/L-20e215a.wav" -[ 7, 44 ] = wave (0) : "./MITfull/elev-20/L-20e220a.wav" -[ 7, 45 ] = wave (0) : "./MITfull/elev-20/L-20e225a.wav" -[ 7, 46 ] = wave (0) : "./MITfull/elev-20/L-20e230a.wav" -[ 7, 47 ] = wave (0) : "./MITfull/elev-20/L-20e235a.wav" -[ 7, 48 ] = wave (0) : "./MITfull/elev-20/L-20e240a.wav" -[ 7, 49 ] = wave (0) : "./MITfull/elev-20/L-20e245a.wav" -[ 7, 50 ] = wave (0) : "./MITfull/elev-20/L-20e250a.wav" -[ 7, 51 ] = wave (0) : "./MITfull/elev-20/L-20e255a.wav" -[ 7, 52 ] = wave (0) : "./MITfull/elev-20/L-20e260a.wav" -[ 7, 53 ] = wave (0) : "./MITfull/elev-20/L-20e265a.wav" -[ 7, 54 ] = wave (0) : "./MITfull/elev-20/L-20e270a.wav" -[ 7, 55 ] = wave (0) : "./MITfull/elev-20/L-20e275a.wav" -[ 7, 56 ] = wave (0) : "./MITfull/elev-20/L-20e280a.wav" -[ 7, 57 ] = wave (0) : "./MITfull/elev-20/L-20e285a.wav" -[ 7, 58 ] = wave (0) : "./MITfull/elev-20/L-20e290a.wav" -[ 7, 59 ] = wave (0) : "./MITfull/elev-20/L-20e295a.wav" -[ 7, 60 ] = wave (0) : "./MITfull/elev-20/L-20e300a.wav" -[ 7, 61 ] = wave (0) : "./MITfull/elev-20/L-20e305a.wav" -[ 7, 62 ] = wave (0) : "./MITfull/elev-20/L-20e310a.wav" -[ 7, 63 ] = wave (0) : "./MITfull/elev-20/L-20e315a.wav" -[ 7, 64 ] = wave (0) : "./MITfull/elev-20/L-20e320a.wav" -[ 7, 65 ] = wave (0) : "./MITfull/elev-20/L-20e325a.wav" -[ 7, 66 ] = wave (0) : "./MITfull/elev-20/L-20e330a.wav" -[ 7, 67 ] = wave (0) : "./MITfull/elev-20/L-20e335a.wav" -[ 7, 68 ] = wave (0) : "./MITfull/elev-20/L-20e340a.wav" -[ 7, 69 ] = wave (0) : "./MITfull/elev-20/L-20e345a.wav" -[ 7, 70 ] = wave (0) : "./MITfull/elev-20/L-20e350a.wav" -[ 7, 71 ] = wave (0) : "./MITfull/elev-20/L-20e355a.wav" - -[ 8, 0 ] = wave (0) : "./MITfull/elev-10/L-10e000a.wav" -[ 8, 1 ] = wave (0) : "./MITfull/elev-10/L-10e005a.wav" -[ 8, 2 ] = wave (0) : "./MITfull/elev-10/L-10e010a.wav" -[ 8, 3 ] = wave (0) : "./MITfull/elev-10/L-10e015a.wav" -[ 8, 4 ] = wave (0) : "./MITfull/elev-10/L-10e020a.wav" -[ 8, 5 ] = wave (0) : "./MITfull/elev-10/L-10e025a.wav" -[ 8, 6 ] = wave (0) : "./MITfull/elev-10/L-10e030a.wav" -[ 8, 7 ] = wave (0) : "./MITfull/elev-10/L-10e035a.wav" -[ 8, 8 ] = wave (0) : "./MITfull/elev-10/L-10e040a.wav" -[ 8, 9 ] = wave (0) : "./MITfull/elev-10/L-10e045a.wav" -[ 8, 10 ] = wave (0) : "./MITfull/elev-10/L-10e050a.wav" -[ 8, 11 ] = wave (0) : "./MITfull/elev-10/L-10e055a.wav" -[ 8, 12 ] = wave (0) : "./MITfull/elev-10/L-10e060a.wav" -[ 8, 13 ] = wave (0) : "./MITfull/elev-10/L-10e065a.wav" -[ 8, 14 ] = wave (0) : "./MITfull/elev-10/L-10e070a.wav" -[ 8, 15 ] = wave (0) : "./MITfull/elev-10/L-10e075a.wav" -[ 8, 16 ] = wave (0) : "./MITfull/elev-10/L-10e080a.wav" -[ 8, 17 ] = wave (0) : "./MITfull/elev-10/L-10e085a.wav" -[ 8, 18 ] = wave (0) : "./MITfull/elev-10/L-10e090a.wav" -[ 8, 19 ] = wave (0) : "./MITfull/elev-10/L-10e095a.wav" -[ 8, 20 ] = wave (0) : "./MITfull/elev-10/L-10e100a.wav" -[ 8, 21 ] = wave (0) : "./MITfull/elev-10/L-10e105a.wav" -[ 8, 22 ] = wave (0) : "./MITfull/elev-10/L-10e110a.wav" -[ 8, 23 ] = wave (0) : "./MITfull/elev-10/L-10e115a.wav" -[ 8, 24 ] = wave (0) : "./MITfull/elev-10/L-10e120a.wav" -[ 8, 25 ] = wave (0) : "./MITfull/elev-10/L-10e125a.wav" -[ 8, 26 ] = wave (0) : "./MITfull/elev-10/L-10e130a.wav" -[ 8, 27 ] = wave (0) : "./MITfull/elev-10/L-10e135a.wav" -[ 8, 28 ] = wave (0) : "./MITfull/elev-10/L-10e140a.wav" -[ 8, 29 ] = wave (0) : "./MITfull/elev-10/L-10e145a.wav" -[ 8, 30 ] = wave (0) : "./MITfull/elev-10/L-10e150a.wav" -[ 8, 31 ] = wave (0) : "./MITfull/elev-10/L-10e155a.wav" -[ 8, 32 ] = wave (0) : "./MITfull/elev-10/L-10e160a.wav" -[ 8, 33 ] = wave (0) : "./MITfull/elev-10/L-10e165a.wav" -[ 8, 34 ] = wave (0) : "./MITfull/elev-10/L-10e170a.wav" -[ 8, 35 ] = wave (0) : "./MITfull/elev-10/L-10e175a.wav" -[ 8, 36 ] = wave (0) : "./MITfull/elev-10/L-10e180a.wav" -[ 8, 37 ] = wave (0) : "./MITfull/elev-10/L-10e185a.wav" -[ 8, 38 ] = wave (0) : "./MITfull/elev-10/L-10e190a.wav" -[ 8, 39 ] = wave (0) : "./MITfull/elev-10/L-10e195a.wav" -[ 8, 40 ] = wave (0) : "./MITfull/elev-10/L-10e200a.wav" -[ 8, 41 ] = wave (0) : "./MITfull/elev-10/L-10e205a.wav" -[ 8, 42 ] = wave (0) : "./MITfull/elev-10/L-10e210a.wav" -[ 8, 43 ] = wave (0) : "./MITfull/elev-10/L-10e215a.wav" -[ 8, 44 ] = wave (0) : "./MITfull/elev-10/L-10e220a.wav" -[ 8, 45 ] = wave (0) : "./MITfull/elev-10/L-10e225a.wav" -[ 8, 46 ] = wave (0) : "./MITfull/elev-10/L-10e230a.wav" -[ 8, 47 ] = wave (0) : "./MITfull/elev-10/L-10e235a.wav" -[ 8, 48 ] = wave (0) : "./MITfull/elev-10/L-10e240a.wav" -[ 8, 49 ] = wave (0) : "./MITfull/elev-10/L-10e245a.wav" -[ 8, 50 ] = wave (0) : "./MITfull/elev-10/L-10e250a.wav" -[ 8, 51 ] = wave (0) : "./MITfull/elev-10/L-10e255a.wav" -[ 8, 52 ] = wave (0) : "./MITfull/elev-10/L-10e260a.wav" -[ 8, 53 ] = wave (0) : "./MITfull/elev-10/L-10e265a.wav" -[ 8, 54 ] = wave (0) : "./MITfull/elev-10/L-10e270a.wav" -[ 8, 55 ] = wave (0) : "./MITfull/elev-10/L-10e275a.wav" -[ 8, 56 ] = wave (0) : "./MITfull/elev-10/L-10e280a.wav" -[ 8, 57 ] = wave (0) : "./MITfull/elev-10/L-10e285a.wav" -[ 8, 58 ] = wave (0) : "./MITfull/elev-10/L-10e290a.wav" -[ 8, 59 ] = wave (0) : "./MITfull/elev-10/L-10e295a.wav" -[ 8, 60 ] = wave (0) : "./MITfull/elev-10/L-10e300a.wav" -[ 8, 61 ] = wave (0) : "./MITfull/elev-10/L-10e305a.wav" -[ 8, 62 ] = wave (0) : "./MITfull/elev-10/L-10e310a.wav" -[ 8, 63 ] = wave (0) : "./MITfull/elev-10/L-10e315a.wav" -[ 8, 64 ] = wave (0) : "./MITfull/elev-10/L-10e320a.wav" -[ 8, 65 ] = wave (0) : "./MITfull/elev-10/L-10e325a.wav" -[ 8, 66 ] = wave (0) : "./MITfull/elev-10/L-10e330a.wav" -[ 8, 67 ] = wave (0) : "./MITfull/elev-10/L-10e335a.wav" -[ 8, 68 ] = wave (0) : "./MITfull/elev-10/L-10e340a.wav" -[ 8, 69 ] = wave (0) : "./MITfull/elev-10/L-10e345a.wav" -[ 8, 70 ] = wave (0) : "./MITfull/elev-10/L-10e350a.wav" -[ 8, 71 ] = wave (0) : "./MITfull/elev-10/L-10e355a.wav" - -[ 9, 0 ] = wave (0) : "./MITfull/elev0/L0e000a.wav" -[ 9, 1 ] = wave (0) : "./MITfull/elev0/L0e005a.wav" -[ 9, 2 ] = wave (0) : "./MITfull/elev0/L0e010a.wav" -[ 9, 3 ] = wave (0) : "./MITfull/elev0/L0e015a.wav" -[ 9, 4 ] = wave (0) : "./MITfull/elev0/L0e020a.wav" -[ 9, 5 ] = wave (0) : "./MITfull/elev0/L0e025a.wav" -[ 9, 6 ] = wave (0) : "./MITfull/elev0/L0e030a.wav" -[ 9, 7 ] = wave (0) : "./MITfull/elev0/L0e035a.wav" -[ 9, 8 ] = wave (0) : "./MITfull/elev0/L0e040a.wav" -[ 9, 9 ] = wave (0) : "./MITfull/elev0/L0e045a.wav" -[ 9, 10 ] = wave (0) : "./MITfull/elev0/L0e050a.wav" -[ 9, 11 ] = wave (0) : "./MITfull/elev0/L0e055a.wav" -[ 9, 12 ] = wave (0) : "./MITfull/elev0/L0e060a.wav" -[ 9, 13 ] = wave (0) : "./MITfull/elev0/L0e065a.wav" -[ 9, 14 ] = wave (0) : "./MITfull/elev0/L0e070a.wav" -[ 9, 15 ] = wave (0) : "./MITfull/elev0/L0e075a.wav" -[ 9, 16 ] = wave (0) : "./MITfull/elev0/L0e080a.wav" -[ 9, 17 ] = wave (0) : "./MITfull/elev0/L0e085a.wav" -[ 9, 18 ] = wave (0) : "./MITfull/elev0/L0e090a.wav" -[ 9, 19 ] = wave (0) : "./MITfull/elev0/L0e095a.wav" -[ 9, 20 ] = wave (0) : "./MITfull/elev0/L0e100a.wav" -[ 9, 21 ] = wave (0) : "./MITfull/elev0/L0e105a.wav" -[ 9, 22 ] = wave (0) : "./MITfull/elev0/L0e110a.wav" -[ 9, 23 ] = wave (0) : "./MITfull/elev0/L0e115a.wav" -[ 9, 24 ] = wave (0) : "./MITfull/elev0/L0e120a.wav" -[ 9, 25 ] = wave (0) : "./MITfull/elev0/L0e125a.wav" -[ 9, 26 ] = wave (0) : "./MITfull/elev0/L0e130a.wav" -[ 9, 27 ] = wave (0) : "./MITfull/elev0/L0e135a.wav" -[ 9, 28 ] = wave (0) : "./MITfull/elev0/L0e140a.wav" -[ 9, 29 ] = wave (0) : "./MITfull/elev0/L0e145a.wav" -[ 9, 30 ] = wave (0) : "./MITfull/elev0/L0e150a.wav" -[ 9, 31 ] = wave (0) : "./MITfull/elev0/L0e155a.wav" -[ 9, 32 ] = wave (0) : "./MITfull/elev0/L0e160a.wav" -[ 9, 33 ] = wave (0) : "./MITfull/elev0/L0e165a.wav" -[ 9, 34 ] = wave (0) : "./MITfull/elev0/L0e170a.wav" -[ 9, 35 ] = wave (0) : "./MITfull/elev0/L0e175a.wav" -[ 9, 36 ] = wave (0) : "./MITfull/elev0/L0e180a.wav" -[ 9, 37 ] = wave (0) : "./MITfull/elev0/L0e185a.wav" -[ 9, 38 ] = wave (0) : "./MITfull/elev0/L0e190a.wav" -[ 9, 39 ] = wave (0) : "./MITfull/elev0/L0e195a.wav" -[ 9, 40 ] = wave (0) : "./MITfull/elev0/L0e200a.wav" -[ 9, 41 ] = wave (0) : "./MITfull/elev0/L0e205a.wav" -[ 9, 42 ] = wave (0) : "./MITfull/elev0/L0e210a.wav" -[ 9, 43 ] = wave (0) : "./MITfull/elev0/L0e215a.wav" -[ 9, 44 ] = wave (0) : "./MITfull/elev0/L0e220a.wav" -[ 9, 45 ] = wave (0) : "./MITfull/elev0/L0e225a.wav" -[ 9, 46 ] = wave (0) : "./MITfull/elev0/L0e230a.wav" -[ 9, 47 ] = wave (0) : "./MITfull/elev0/L0e235a.wav" -[ 9, 48 ] = wave (0) : "./MITfull/elev0/L0e240a.wav" -[ 9, 49 ] = wave (0) : "./MITfull/elev0/L0e245a.wav" -[ 9, 50 ] = wave (0) : "./MITfull/elev0/L0e250a.wav" -[ 9, 51 ] = wave (0) : "./MITfull/elev0/L0e255a.wav" -[ 9, 52 ] = wave (0) : "./MITfull/elev0/L0e260a.wav" -[ 9, 53 ] = wave (0) : "./MITfull/elev0/L0e265a.wav" -[ 9, 54 ] = wave (0) : "./MITfull/elev0/L0e270a.wav" -[ 9, 55 ] = wave (0) : "./MITfull/elev0/L0e275a.wav" -[ 9, 56 ] = wave (0) : "./MITfull/elev0/L0e280a.wav" -[ 9, 57 ] = wave (0) : "./MITfull/elev0/L0e285a.wav" -[ 9, 58 ] = wave (0) : "./MITfull/elev0/L0e290a.wav" -[ 9, 59 ] = wave (0) : "./MITfull/elev0/L0e295a.wav" -[ 9, 60 ] = wave (0) : "./MITfull/elev0/L0e300a.wav" -[ 9, 61 ] = wave (0) : "./MITfull/elev0/L0e305a.wav" -[ 9, 62 ] = wave (0) : "./MITfull/elev0/L0e310a.wav" -[ 9, 63 ] = wave (0) : "./MITfull/elev0/L0e315a.wav" -[ 9, 64 ] = wave (0) : "./MITfull/elev0/L0e320a.wav" -[ 9, 65 ] = wave (0) : "./MITfull/elev0/L0e325a.wav" -[ 9, 66 ] = wave (0) : "./MITfull/elev0/L0e330a.wav" -[ 9, 67 ] = wave (0) : "./MITfull/elev0/L0e335a.wav" -[ 9, 68 ] = wave (0) : "./MITfull/elev0/L0e340a.wav" -[ 9, 69 ] = wave (0) : "./MITfull/elev0/L0e345a.wav" -[ 9, 70 ] = wave (0) : "./MITfull/elev0/L0e350a.wav" -[ 9, 71 ] = wave (0) : "./MITfull/elev0/L0e355a.wav" - -[ 10, 0 ] = wave (0) : "./MITfull/elev10/L10e000a.wav" -[ 10, 1 ] = wave (0) : "./MITfull/elev10/L10e005a.wav" -[ 10, 2 ] = wave (0) : "./MITfull/elev10/L10e010a.wav" -[ 10, 3 ] = wave (0) : "./MITfull/elev10/L10e015a.wav" -[ 10, 4 ] = wave (0) : "./MITfull/elev10/L10e020a.wav" -[ 10, 5 ] = wave (0) : "./MITfull/elev10/L10e025a.wav" -[ 10, 6 ] = wave (0) : "./MITfull/elev10/L10e030a.wav" -[ 10, 7 ] = wave (0) : "./MITfull/elev10/L10e035a.wav" -[ 10, 8 ] = wave (0) : "./MITfull/elev10/L10e040a.wav" -[ 10, 9 ] = wave (0) : "./MITfull/elev10/L10e045a.wav" -[ 10, 10 ] = wave (0) : "./MITfull/elev10/L10e050a.wav" -[ 10, 11 ] = wave (0) : "./MITfull/elev10/L10e055a.wav" -[ 10, 12 ] = wave (0) : "./MITfull/elev10/L10e060a.wav" -[ 10, 13 ] = wave (0) : "./MITfull/elev10/L10e065a.wav" -[ 10, 14 ] = wave (0) : "./MITfull/elev10/L10e070a.wav" -[ 10, 15 ] = wave (0) : "./MITfull/elev10/L10e075a.wav" -[ 10, 16 ] = wave (0) : "./MITfull/elev10/L10e080a.wav" -[ 10, 17 ] = wave (0) : "./MITfull/elev10/L10e085a.wav" -[ 10, 18 ] = wave (0) : "./MITfull/elev10/L10e090a.wav" -[ 10, 19 ] = wave (0) : "./MITfull/elev10/L10e095a.wav" -[ 10, 20 ] = wave (0) : "./MITfull/elev10/L10e100a.wav" -[ 10, 21 ] = wave (0) : "./MITfull/elev10/L10e105a.wav" -[ 10, 22 ] = wave (0) : "./MITfull/elev10/L10e110a.wav" -[ 10, 23 ] = wave (0) : "./MITfull/elev10/L10e115a.wav" -[ 10, 24 ] = wave (0) : "./MITfull/elev10/L10e120a.wav" -[ 10, 25 ] = wave (0) : "./MITfull/elev10/L10e125a.wav" -[ 10, 26 ] = wave (0) : "./MITfull/elev10/L10e130a.wav" -[ 10, 27 ] = wave (0) : "./MITfull/elev10/L10e135a.wav" -[ 10, 28 ] = wave (0) : "./MITfull/elev10/L10e140a.wav" -[ 10, 29 ] = wave (0) : "./MITfull/elev10/L10e145a.wav" -[ 10, 30 ] = wave (0) : "./MITfull/elev10/L10e150a.wav" -[ 10, 31 ] = wave (0) : "./MITfull/elev10/L10e155a.wav" -[ 10, 32 ] = wave (0) : "./MITfull/elev10/L10e160a.wav" -[ 10, 33 ] = wave (0) : "./MITfull/elev10/L10e165a.wav" -[ 10, 34 ] = wave (0) : "./MITfull/elev10/L10e170a.wav" -[ 10, 35 ] = wave (0) : "./MITfull/elev10/L10e175a.wav" -[ 10, 36 ] = wave (0) : "./MITfull/elev10/L10e180a.wav" -[ 10, 37 ] = wave (0) : "./MITfull/elev10/L10e185a.wav" -[ 10, 38 ] = wave (0) : "./MITfull/elev10/L10e190a.wav" -[ 10, 39 ] = wave (0) : "./MITfull/elev10/L10e195a.wav" -[ 10, 40 ] = wave (0) : "./MITfull/elev10/L10e200a.wav" -[ 10, 41 ] = wave (0) : "./MITfull/elev10/L10e205a.wav" -[ 10, 42 ] = wave (0) : "./MITfull/elev10/L10e210a.wav" -[ 10, 43 ] = wave (0) : "./MITfull/elev10/L10e215a.wav" -[ 10, 44 ] = wave (0) : "./MITfull/elev10/L10e220a.wav" -[ 10, 45 ] = wave (0) : "./MITfull/elev10/L10e225a.wav" -[ 10, 46 ] = wave (0) : "./MITfull/elev10/L10e230a.wav" -[ 10, 47 ] = wave (0) : "./MITfull/elev10/L10e235a.wav" -[ 10, 48 ] = wave (0) : "./MITfull/elev10/L10e240a.wav" -[ 10, 49 ] = wave (0) : "./MITfull/elev10/L10e245a.wav" -[ 10, 50 ] = wave (0) : "./MITfull/elev10/L10e250a.wav" -[ 10, 51 ] = wave (0) : "./MITfull/elev10/L10e255a.wav" -[ 10, 52 ] = wave (0) : "./MITfull/elev10/L10e260a.wav" -[ 10, 53 ] = wave (0) : "./MITfull/elev10/L10e265a.wav" -[ 10, 54 ] = wave (0) : "./MITfull/elev10/L10e270a.wav" -[ 10, 55 ] = wave (0) : "./MITfull/elev10/L10e275a.wav" -[ 10, 56 ] = wave (0) : "./MITfull/elev10/L10e280a.wav" -[ 10, 57 ] = wave (0) : "./MITfull/elev10/L10e285a.wav" -[ 10, 58 ] = wave (0) : "./MITfull/elev10/L10e290a.wav" -[ 10, 59 ] = wave (0) : "./MITfull/elev10/L10e295a.wav" -[ 10, 60 ] = wave (0) : "./MITfull/elev10/L10e300a.wav" -[ 10, 61 ] = wave (0) : "./MITfull/elev10/L10e305a.wav" -[ 10, 62 ] = wave (0) : "./MITfull/elev10/L10e310a.wav" -[ 10, 63 ] = wave (0) : "./MITfull/elev10/L10e315a.wav" -[ 10, 64 ] = wave (0) : "./MITfull/elev10/L10e320a.wav" -[ 10, 65 ] = wave (0) : "./MITfull/elev10/L10e325a.wav" -[ 10, 66 ] = wave (0) : "./MITfull/elev10/L10e330a.wav" -[ 10, 67 ] = wave (0) : "./MITfull/elev10/L10e335a.wav" -[ 10, 68 ] = wave (0) : "./MITfull/elev10/L10e340a.wav" -[ 10, 69 ] = wave (0) : "./MITfull/elev10/L10e345a.wav" -[ 10, 70 ] = wave (0) : "./MITfull/elev10/L10e350a.wav" -[ 10, 71 ] = wave (0) : "./MITfull/elev10/L10e355a.wav" - -[ 11, 0 ] = wave (0) : "./MITfull/elev20/L20e000a.wav" -[ 11, 1 ] = wave (0) : "./MITfull/elev20/L20e005a.wav" -[ 11, 2 ] = wave (0) : "./MITfull/elev20/L20e010a.wav" -[ 11, 3 ] = wave (0) : "./MITfull/elev20/L20e015a.wav" -[ 11, 4 ] = wave (0) : "./MITfull/elev20/L20e020a.wav" -[ 11, 5 ] = wave (0) : "./MITfull/elev20/L20e025a.wav" -[ 11, 6 ] = wave (0) : "./MITfull/elev20/L20e030a.wav" -[ 11, 7 ] = wave (0) : "./MITfull/elev20/L20e035a.wav" -[ 11, 8 ] = wave (0) : "./MITfull/elev20/L20e040a.wav" -[ 11, 9 ] = wave (0) : "./MITfull/elev20/L20e045a.wav" -[ 11, 10 ] = wave (0) : "./MITfull/elev20/L20e050a.wav" -[ 11, 11 ] = wave (0) : "./MITfull/elev20/L20e055a.wav" -[ 11, 12 ] = wave (0) : "./MITfull/elev20/L20e060a.wav" -[ 11, 13 ] = wave (0) : "./MITfull/elev20/L20e065a.wav" -[ 11, 14 ] = wave (0) : "./MITfull/elev20/L20e070a.wav" -[ 11, 15 ] = wave (0) : "./MITfull/elev20/L20e075a.wav" -[ 11, 16 ] = wave (0) : "./MITfull/elev20/L20e080a.wav" -[ 11, 17 ] = wave (0) : "./MITfull/elev20/L20e085a.wav" -[ 11, 18 ] = wave (0) : "./MITfull/elev20/L20e090a.wav" -[ 11, 19 ] = wave (0) : "./MITfull/elev20/L20e095a.wav" -[ 11, 20 ] = wave (0) : "./MITfull/elev20/L20e100a.wav" -[ 11, 21 ] = wave (0) : "./MITfull/elev20/L20e105a.wav" -[ 11, 22 ] = wave (0) : "./MITfull/elev20/L20e110a.wav" -[ 11, 23 ] = wave (0) : "./MITfull/elev20/L20e115a.wav" -[ 11, 24 ] = wave (0) : "./MITfull/elev20/L20e120a.wav" -[ 11, 25 ] = wave (0) : "./MITfull/elev20/L20e125a.wav" -[ 11, 26 ] = wave (0) : "./MITfull/elev20/L20e130a.wav" -[ 11, 27 ] = wave (0) : "./MITfull/elev20/L20e135a.wav" -[ 11, 28 ] = wave (0) : "./MITfull/elev20/L20e140a.wav" -[ 11, 29 ] = wave (0) : "./MITfull/elev20/L20e145a.wav" -[ 11, 30 ] = wave (0) : "./MITfull/elev20/L20e150a.wav" -[ 11, 31 ] = wave (0) : "./MITfull/elev20/L20e155a.wav" -[ 11, 32 ] = wave (0) : "./MITfull/elev20/L20e160a.wav" -[ 11, 33 ] = wave (0) : "./MITfull/elev20/L20e165a.wav" -[ 11, 34 ] = wave (0) : "./MITfull/elev20/L20e170a.wav" -[ 11, 35 ] = wave (0) : "./MITfull/elev20/L20e175a.wav" -[ 11, 36 ] = wave (0) : "./MITfull/elev20/L20e180a.wav" -[ 11, 37 ] = wave (0) : "./MITfull/elev20/L20e185a.wav" -[ 11, 38 ] = wave (0) : "./MITfull/elev20/L20e190a.wav" -[ 11, 39 ] = wave (0) : "./MITfull/elev20/L20e195a.wav" -[ 11, 40 ] = wave (0) : "./MITfull/elev20/L20e200a.wav" -[ 11, 41 ] = wave (0) : "./MITfull/elev20/L20e205a.wav" -[ 11, 42 ] = wave (0) : "./MITfull/elev20/L20e210a.wav" -[ 11, 43 ] = wave (0) : "./MITfull/elev20/L20e215a.wav" -[ 11, 44 ] = wave (0) : "./MITfull/elev20/L20e220a.wav" -[ 11, 45 ] = wave (0) : "./MITfull/elev20/L20e225a.wav" -[ 11, 46 ] = wave (0) : "./MITfull/elev20/L20e230a.wav" -[ 11, 47 ] = wave (0) : "./MITfull/elev20/L20e235a.wav" -[ 11, 48 ] = wave (0) : "./MITfull/elev20/L20e240a.wav" -[ 11, 49 ] = wave (0) : "./MITfull/elev20/L20e245a.wav" -[ 11, 50 ] = wave (0) : "./MITfull/elev20/L20e250a.wav" -[ 11, 51 ] = wave (0) : "./MITfull/elev20/L20e255a.wav" -[ 11, 52 ] = wave (0) : "./MITfull/elev20/L20e260a.wav" -[ 11, 53 ] = wave (0) : "./MITfull/elev20/L20e265a.wav" -[ 11, 54 ] = wave (0) : "./MITfull/elev20/L20e270a.wav" -[ 11, 55 ] = wave (0) : "./MITfull/elev20/L20e275a.wav" -[ 11, 56 ] = wave (0) : "./MITfull/elev20/L20e280a.wav" -[ 11, 57 ] = wave (0) : "./MITfull/elev20/L20e285a.wav" -[ 11, 58 ] = wave (0) : "./MITfull/elev20/L20e290a.wav" -[ 11, 59 ] = wave (0) : "./MITfull/elev20/L20e295a.wav" -[ 11, 60 ] = wave (0) : "./MITfull/elev20/L20e300a.wav" -[ 11, 61 ] = wave (0) : "./MITfull/elev20/L20e305a.wav" -[ 11, 62 ] = wave (0) : "./MITfull/elev20/L20e310a.wav" -[ 11, 63 ] = wave (0) : "./MITfull/elev20/L20e315a.wav" -[ 11, 64 ] = wave (0) : "./MITfull/elev20/L20e320a.wav" -[ 11, 65 ] = wave (0) : "./MITfull/elev20/L20e325a.wav" -[ 11, 66 ] = wave (0) : "./MITfull/elev20/L20e330a.wav" -[ 11, 67 ] = wave (0) : "./MITfull/elev20/L20e335a.wav" -[ 11, 68 ] = wave (0) : "./MITfull/elev20/L20e340a.wav" -[ 11, 69 ] = wave (0) : "./MITfull/elev20/L20e345a.wav" -[ 11, 70 ] = wave (0) : "./MITfull/elev20/L20e350a.wav" -[ 11, 71 ] = wave (0) : "./MITfull/elev20/L20e355a.wav" - -[ 12, 0 ] = wave (0) : "./MITfull/elev30/L30e000a.wav" -[ 12, 1 ] = wave (0) : "./MITfull/elev30/L30e006a.wav" -[ 12, 2 ] = wave (0) : "./MITfull/elev30/L30e012a.wav" -[ 12, 3 ] = wave (0) : "./MITfull/elev30/L30e018a.wav" -[ 12, 4 ] = wave (0) : "./MITfull/elev30/L30e024a.wav" -[ 12, 5 ] = wave (0) : "./MITfull/elev30/L30e030a.wav" -[ 12, 6 ] = wave (0) : "./MITfull/elev30/L30e036a.wav" -[ 12, 7 ] = wave (0) : "./MITfull/elev30/L30e042a.wav" -[ 12, 8 ] = wave (0) : "./MITfull/elev30/L30e048a.wav" -[ 12, 9 ] = wave (0) : "./MITfull/elev30/L30e054a.wav" -[ 12, 10 ] = wave (0) : "./MITfull/elev30/L30e060a.wav" -[ 12, 11 ] = wave (0) : "./MITfull/elev30/L30e066a.wav" -[ 12, 12 ] = wave (0) : "./MITfull/elev30/L30e072a.wav" -[ 12, 13 ] = wave (0) : "./MITfull/elev30/L30e078a.wav" -[ 12, 14 ] = wave (0) : "./MITfull/elev30/L30e084a.wav" -[ 12, 15 ] = wave (0) : "./MITfull/elev30/L30e090a.wav" -[ 12, 16 ] = wave (0) : "./MITfull/elev30/L30e096a.wav" -[ 12, 17 ] = wave (0) : "./MITfull/elev30/L30e102a.wav" -[ 12, 18 ] = wave (0) : "./MITfull/elev30/L30e108a.wav" -[ 12, 19 ] = wave (0) : "./MITfull/elev30/L30e114a.wav" -[ 12, 20 ] = wave (0) : "./MITfull/elev30/L30e120a.wav" -[ 12, 21 ] = wave (0) : "./MITfull/elev30/L30e126a.wav" -[ 12, 22 ] = wave (0) : "./MITfull/elev30/L30e132a.wav" -[ 12, 23 ] = wave (0) : "./MITfull/elev30/L30e138a.wav" -[ 12, 24 ] = wave (0) : "./MITfull/elev30/L30e144a.wav" -[ 12, 25 ] = wave (0) : "./MITfull/elev30/L30e150a.wav" -[ 12, 26 ] = wave (0) : "./MITfull/elev30/L30e156a.wav" -[ 12, 27 ] = wave (0) : "./MITfull/elev30/L30e162a.wav" -[ 12, 28 ] = wave (0) : "./MITfull/elev30/L30e168a.wav" -[ 12, 29 ] = wave (0) : "./MITfull/elev30/L30e174a.wav" -[ 12, 30 ] = wave (0) : "./MITfull/elev30/L30e180a.wav" -[ 12, 31 ] = wave (0) : "./MITfull/elev30/L30e186a.wav" -[ 12, 32 ] = wave (0) : "./MITfull/elev30/L30e192a.wav" -[ 12, 33 ] = wave (0) : "./MITfull/elev30/L30e198a.wav" -[ 12, 34 ] = wave (0) : "./MITfull/elev30/L30e204a.wav" -[ 12, 35 ] = wave (0) : "./MITfull/elev30/L30e210a.wav" -[ 12, 36 ] = wave (0) : "./MITfull/elev30/L30e216a.wav" -[ 12, 37 ] = wave (0) : "./MITfull/elev30/L30e222a.wav" -[ 12, 38 ] = wave (0) : "./MITfull/elev30/L30e228a.wav" -[ 12, 39 ] = wave (0) : "./MITfull/elev30/L30e234a.wav" -[ 12, 40 ] = wave (0) : "./MITfull/elev30/L30e240a.wav" -[ 12, 41 ] = wave (0) : "./MITfull/elev30/L30e246a.wav" -[ 12, 42 ] = wave (0) : "./MITfull/elev30/L30e252a.wav" -[ 12, 43 ] = wave (0) : "./MITfull/elev30/L30e258a.wav" -[ 12, 44 ] = wave (0) : "./MITfull/elev30/L30e264a.wav" -[ 12, 45 ] = wave (0) : "./MITfull/elev30/L30e270a.wav" -[ 12, 46 ] = wave (0) : "./MITfull/elev30/L30e276a.wav" -[ 12, 47 ] = wave (0) : "./MITfull/elev30/L30e282a.wav" -[ 12, 48 ] = wave (0) : "./MITfull/elev30/L30e288a.wav" -[ 12, 49 ] = wave (0) : "./MITfull/elev30/L30e294a.wav" -[ 12, 50 ] = wave (0) : "./MITfull/elev30/L30e300a.wav" -[ 12, 51 ] = wave (0) : "./MITfull/elev30/L30e306a.wav" -[ 12, 52 ] = wave (0) : "./MITfull/elev30/L30e312a.wav" -[ 12, 53 ] = wave (0) : "./MITfull/elev30/L30e318a.wav" -[ 12, 54 ] = wave (0) : "./MITfull/elev30/L30e324a.wav" -[ 12, 55 ] = wave (0) : "./MITfull/elev30/L30e330a.wav" -[ 12, 56 ] = wave (0) : "./MITfull/elev30/L30e336a.wav" -[ 12, 57 ] = wave (0) : "./MITfull/elev30/L30e342a.wav" -[ 12, 58 ] = wave (0) : "./MITfull/elev30/L30e348a.wav" -[ 12, 59 ] = wave (0) : "./MITfull/elev30/L30e354a.wav" - -[ 13, 0 ] = wave (0) : "./MITfull/elev40/L40e000a.wav" -[ 13, 1 ] = wave (0) : "./MITfull/elev40/L40e006a.wav" -[ 13, 2 ] = wave (0) : "./MITfull/elev40/L40e013a.wav" -[ 13, 3 ] = wave (0) : "./MITfull/elev40/L40e019a.wav" -[ 13, 4 ] = wave (0) : "./MITfull/elev40/L40e026a.wav" -[ 13, 5 ] = wave (0) : "./MITfull/elev40/L40e032a.wav" -[ 13, 6 ] = wave (0) : "./MITfull/elev40/L40e039a.wav" -[ 13, 7 ] = wave (0) : "./MITfull/elev40/L40e045a.wav" -[ 13, 8 ] = wave (0) : "./MITfull/elev40/L40e051a.wav" -[ 13, 9 ] = wave (0) : "./MITfull/elev40/L40e058a.wav" -[ 13, 10 ] = wave (0) : "./MITfull/elev40/L40e064a.wav" -[ 13, 11 ] = wave (0) : "./MITfull/elev40/L40e071a.wav" -[ 13, 12 ] = wave (0) : "./MITfull/elev40/L40e077a.wav" -[ 13, 13 ] = wave (0) : "./MITfull/elev40/L40e084a.wav" -[ 13, 14 ] = wave (0) : "./MITfull/elev40/L40e090a.wav" -[ 13, 15 ] = wave (0) : "./MITfull/elev40/L40e096a.wav" -[ 13, 16 ] = wave (0) : "./MITfull/elev40/L40e103a.wav" -[ 13, 17 ] = wave (0) : "./MITfull/elev40/L40e109a.wav" -[ 13, 18 ] = wave (0) : "./MITfull/elev40/L40e116a.wav" -[ 13, 19 ] = wave (0) : "./MITfull/elev40/L40e122a.wav" -[ 13, 20 ] = wave (0) : "./MITfull/elev40/L40e129a.wav" -[ 13, 21 ] = wave (0) : "./MITfull/elev40/L40e135a.wav" -[ 13, 22 ] = wave (0) : "./MITfull/elev40/L40e141a.wav" -[ 13, 23 ] = wave (0) : "./MITfull/elev40/L40e148a.wav" -[ 13, 24 ] = wave (0) : "./MITfull/elev40/L40e154a.wav" -[ 13, 25 ] = wave (0) : "./MITfull/elev40/L40e161a.wav" -[ 13, 26 ] = wave (0) : "./MITfull/elev40/L40e167a.wav" -[ 13, 27 ] = wave (0) : "./MITfull/elev40/L40e174a.wav" -[ 13, 28 ] = wave (0) : "./MITfull/elev40/L40e180a.wav" -[ 13, 29 ] = wave (0) : "./MITfull/elev40/L40e186a.wav" -[ 13, 30 ] = wave (0) : "./MITfull/elev40/L40e193a.wav" -[ 13, 31 ] = wave (0) : "./MITfull/elev40/L40e199a.wav" -[ 13, 32 ] = wave (0) : "./MITfull/elev40/L40e206a.wav" -[ 13, 33 ] = wave (0) : "./MITfull/elev40/L40e212a.wav" -[ 13, 34 ] = wave (0) : "./MITfull/elev40/L40e219a.wav" -[ 13, 35 ] = wave (0) : "./MITfull/elev40/L40e225a.wav" -[ 13, 36 ] = wave (0) : "./MITfull/elev40/L40e231a.wav" -[ 13, 37 ] = wave (0) : "./MITfull/elev40/L40e238a.wav" -[ 13, 38 ] = wave (0) : "./MITfull/elev40/L40e244a.wav" -[ 13, 39 ] = wave (0) : "./MITfull/elev40/L40e251a.wav" -[ 13, 40 ] = wave (0) : "./MITfull/elev40/L40e257a.wav" -[ 13, 41 ] = wave (0) : "./MITfull/elev40/L40e264a.wav" -[ 13, 42 ] = wave (0) : "./MITfull/elev40/L40e270a.wav" -[ 13, 43 ] = wave (0) : "./MITfull/elev40/L40e276a.wav" -[ 13, 44 ] = wave (0) : "./MITfull/elev40/L40e283a.wav" -[ 13, 45 ] = wave (0) : "./MITfull/elev40/L40e289a.wav" -[ 13, 46 ] = wave (0) : "./MITfull/elev40/L40e296a.wav" -[ 13, 47 ] = wave (0) : "./MITfull/elev40/L40e302a.wav" -[ 13, 48 ] = wave (0) : "./MITfull/elev40/L40e309a.wav" -[ 13, 49 ] = wave (0) : "./MITfull/elev40/L40e315a.wav" -[ 13, 50 ] = wave (0) : "./MITfull/elev40/L40e321a.wav" -[ 13, 51 ] = wave (0) : "./MITfull/elev40/L40e328a.wav" -[ 13, 52 ] = wave (0) : "./MITfull/elev40/L40e334a.wav" -[ 13, 53 ] = wave (0) : "./MITfull/elev40/L40e341a.wav" -[ 13, 54 ] = wave (0) : "./MITfull/elev40/L40e347a.wav" -[ 13, 55 ] = wave (0) : "./MITfull/elev40/L40e354a.wav" - -[ 14, 0 ] = wave (0) : "./MITfull/elev50/L50e000a.wav" -[ 14, 1 ] = wave (0) : "./MITfull/elev50/L50e008a.wav" -[ 14, 2 ] = wave (0) : "./MITfull/elev50/L50e016a.wav" -[ 14, 3 ] = wave (0) : "./MITfull/elev50/L50e024a.wav" -[ 14, 4 ] = wave (0) : "./MITfull/elev50/L50e032a.wav" -[ 14, 5 ] = wave (0) : "./MITfull/elev50/L50e040a.wav" -[ 14, 6 ] = wave (0) : "./MITfull/elev50/L50e048a.wav" -[ 14, 7 ] = wave (0) : "./MITfull/elev50/L50e056a.wav" -[ 14, 8 ] = wave (0) : "./MITfull/elev50/L50e064a.wav" -[ 14, 9 ] = wave (0) : "./MITfull/elev50/L50e072a.wav" -[ 14, 10 ] = wave (0) : "./MITfull/elev50/L50e080a.wav" -[ 14, 11 ] = wave (0) : "./MITfull/elev50/L50e088a.wav" -[ 14, 12 ] = wave (0) : "./MITfull/elev50/L50e096a.wav" -[ 14, 13 ] = wave (0) : "./MITfull/elev50/L50e104a.wav" -[ 14, 14 ] = wave (0) : "./MITfull/elev50/L50e112a.wav" -[ 14, 15 ] = wave (0) : "./MITfull/elev50/L50e120a.wav" -[ 14, 16 ] = wave (0) : "./MITfull/elev50/L50e128a.wav" -[ 14, 17 ] = wave (0) : "./MITfull/elev50/L50e136a.wav" -[ 14, 18 ] = wave (0) : "./MITfull/elev50/L50e144a.wav" -[ 14, 19 ] = wave (0) : "./MITfull/elev50/L50e152a.wav" -[ 14, 20 ] = wave (0) : "./MITfull/elev50/L50e160a.wav" -[ 14, 21 ] = wave (0) : "./MITfull/elev50/L50e168a.wav" -[ 14, 22 ] = wave (0) : "./MITfull/elev50/L50e176a.wav" -[ 14, 23 ] = wave (0) : "./MITfull/elev50/L50e184a.wav" -[ 14, 24 ] = wave (0) : "./MITfull/elev50/L50e192a.wav" -[ 14, 25 ] = wave (0) : "./MITfull/elev50/L50e200a.wav" -[ 14, 26 ] = wave (0) : "./MITfull/elev50/L50e208a.wav" -[ 14, 27 ] = wave (0) : "./MITfull/elev50/L50e216a.wav" -[ 14, 28 ] = wave (0) : "./MITfull/elev50/L50e224a.wav" -[ 14, 29 ] = wave (0) : "./MITfull/elev50/L50e232a.wav" -[ 14, 30 ] = wave (0) : "./MITfull/elev50/L50e240a.wav" -[ 14, 31 ] = wave (0) : "./MITfull/elev50/L50e248a.wav" -[ 14, 32 ] = wave (0) : "./MITfull/elev50/L50e256a.wav" -[ 14, 33 ] = wave (0) : "./MITfull/elev50/L50e264a.wav" -[ 14, 34 ] = wave (0) : "./MITfull/elev50/L50e272a.wav" -[ 14, 35 ] = wave (0) : "./MITfull/elev50/L50e280a.wav" -[ 14, 36 ] = wave (0) : "./MITfull/elev50/L50e288a.wav" -[ 14, 37 ] = wave (0) : "./MITfull/elev50/L50e296a.wav" -[ 14, 38 ] = wave (0) : "./MITfull/elev50/L50e304a.wav" -[ 14, 39 ] = wave (0) : "./MITfull/elev50/L50e312a.wav" -[ 14, 40 ] = wave (0) : "./MITfull/elev50/L50e320a.wav" -[ 14, 41 ] = wave (0) : "./MITfull/elev50/L50e328a.wav" -[ 14, 42 ] = wave (0) : "./MITfull/elev50/L50e336a.wav" -[ 14, 43 ] = wave (0) : "./MITfull/elev50/L50e344a.wav" -[ 14, 44 ] = wave (0) : "./MITfull/elev50/L50e352a.wav" - -[ 15, 0 ] = wave (0) : "./MITfull/elev60/L60e000a.wav" -[ 15, 1 ] = wave (0) : "./MITfull/elev60/L60e010a.wav" -[ 15, 2 ] = wave (0) : "./MITfull/elev60/L60e020a.wav" -[ 15, 3 ] = wave (0) : "./MITfull/elev60/L60e030a.wav" -[ 15, 4 ] = wave (0) : "./MITfull/elev60/L60e040a.wav" -[ 15, 5 ] = wave (0) : "./MITfull/elev60/L60e050a.wav" -[ 15, 6 ] = wave (0) : "./MITfull/elev60/L60e060a.wav" -[ 15, 7 ] = wave (0) : "./MITfull/elev60/L60e070a.wav" -[ 15, 8 ] = wave (0) : "./MITfull/elev60/L60e080a.wav" -[ 15, 9 ] = wave (0) : "./MITfull/elev60/L60e090a.wav" -[ 15, 10 ] = wave (0) : "./MITfull/elev60/L60e100a.wav" -[ 15, 11 ] = wave (0) : "./MITfull/elev60/L60e110a.wav" -[ 15, 12 ] = wave (0) : "./MITfull/elev60/L60e120a.wav" -[ 15, 13 ] = wave (0) : "./MITfull/elev60/L60e130a.wav" -[ 15, 14 ] = wave (0) : "./MITfull/elev60/L60e140a.wav" -[ 15, 15 ] = wave (0) : "./MITfull/elev60/L60e150a.wav" -[ 15, 16 ] = wave (0) : "./MITfull/elev60/L60e160a.wav" -[ 15, 17 ] = wave (0) : "./MITfull/elev60/L60e170a.wav" -[ 15, 18 ] = wave (0) : "./MITfull/elev60/L60e180a.wav" -[ 15, 19 ] = wave (0) : "./MITfull/elev60/L60e190a.wav" -[ 15, 20 ] = wave (0) : "./MITfull/elev60/L60e200a.wav" -[ 15, 21 ] = wave (0) : "./MITfull/elev60/L60e210a.wav" -[ 15, 22 ] = wave (0) : "./MITfull/elev60/L60e220a.wav" -[ 15, 23 ] = wave (0) : "./MITfull/elev60/L60e230a.wav" -[ 15, 24 ] = wave (0) : "./MITfull/elev60/L60e240a.wav" -[ 15, 25 ] = wave (0) : "./MITfull/elev60/L60e250a.wav" -[ 15, 26 ] = wave (0) : "./MITfull/elev60/L60e260a.wav" -[ 15, 27 ] = wave (0) : "./MITfull/elev60/L60e270a.wav" -[ 15, 28 ] = wave (0) : "./MITfull/elev60/L60e280a.wav" -[ 15, 29 ] = wave (0) : "./MITfull/elev60/L60e290a.wav" -[ 15, 30 ] = wave (0) : "./MITfull/elev60/L60e300a.wav" -[ 15, 31 ] = wave (0) : "./MITfull/elev60/L60e310a.wav" -[ 15, 32 ] = wave (0) : "./MITfull/elev60/L60e320a.wav" -[ 15, 33 ] = wave (0) : "./MITfull/elev60/L60e330a.wav" -[ 15, 34 ] = wave (0) : "./MITfull/elev60/L60e340a.wav" -[ 15, 35 ] = wave (0) : "./MITfull/elev60/L60e350a.wav" - -[ 16, 0 ] = wave (0) : "./MITfull/elev70/L70e000a.wav" -[ 16, 1 ] = wave (0) : "./MITfull/elev70/L70e015a.wav" -[ 16, 2 ] = wave (0) : "./MITfull/elev70/L70e030a.wav" -[ 16, 3 ] = wave (0) : "./MITfull/elev70/L70e045a.wav" -[ 16, 4 ] = wave (0) : "./MITfull/elev70/L70e060a.wav" -[ 16, 5 ] = wave (0) : "./MITfull/elev70/L70e075a.wav" -[ 16, 6 ] = wave (0) : "./MITfull/elev70/L70e090a.wav" -[ 16, 7 ] = wave (0) : "./MITfull/elev70/L70e105a.wav" -[ 16, 8 ] = wave (0) : "./MITfull/elev70/L70e120a.wav" -[ 16, 9 ] = wave (0) : "./MITfull/elev70/L70e135a.wav" -[ 16, 10 ] = wave (0) : "./MITfull/elev70/L70e150a.wav" -[ 16, 11 ] = wave (0) : "./MITfull/elev70/L70e165a.wav" -[ 16, 12 ] = wave (0) : "./MITfull/elev70/L70e180a.wav" -[ 16, 13 ] = wave (0) : "./MITfull/elev70/L70e195a.wav" -[ 16, 14 ] = wave (0) : "./MITfull/elev70/L70e210a.wav" -[ 16, 15 ] = wave (0) : "./MITfull/elev70/L70e225a.wav" -[ 16, 16 ] = wave (0) : "./MITfull/elev70/L70e240a.wav" -[ 16, 17 ] = wave (0) : "./MITfull/elev70/L70e255a.wav" -[ 16, 18 ] = wave (0) : "./MITfull/elev70/L70e270a.wav" -[ 16, 19 ] = wave (0) : "./MITfull/elev70/L70e285a.wav" -[ 16, 20 ] = wave (0) : "./MITfull/elev70/L70e300a.wav" -[ 16, 21 ] = wave (0) : "./MITfull/elev70/L70e315a.wav" -[ 16, 22 ] = wave (0) : "./MITfull/elev70/L70e330a.wav" -[ 16, 23 ] = wave (0) : "./MITfull/elev70/L70e345a.wav" - -[ 17, 0 ] = wave (0) : "./MITfull/elev80/L80e000a.wav" -[ 17, 1 ] = wave (0) : "./MITfull/elev80/L80e030a.wav" -[ 17, 2 ] = wave (0) : "./MITfull/elev80/L80e060a.wav" -[ 17, 3 ] = wave (0) : "./MITfull/elev80/L80e090a.wav" -[ 17, 4 ] = wave (0) : "./MITfull/elev80/L80e120a.wav" -[ 17, 5 ] = wave (0) : "./MITfull/elev80/L80e150a.wav" -[ 17, 6 ] = wave (0) : "./MITfull/elev80/L80e180a.wav" -[ 17, 7 ] = wave (0) : "./MITfull/elev80/L80e210a.wav" -[ 17, 8 ] = wave (0) : "./MITfull/elev80/L80e240a.wav" -[ 17, 9 ] = wave (0) : "./MITfull/elev80/L80e270a.wav" -[ 17, 10 ] = wave (0) : "./MITfull/elev80/L80e300a.wav" -[ 17, 11 ] = wave (0) : "./MITfull/elev80/L80e330a.wav" - -[ 18, 0 ] = wave (0) : "./MITfull/elev90/L90e000a.wav" - diff --git a/libs/openal-soft-1.15.1/include/AL/al.h b/libs/openal-soft-1.15.1/include/AL/al.h deleted file mode 100755 index 413b383..0000000 --- a/libs/openal-soft-1.15.1/include/AL/al.h +++ /dev/null @@ -1,656 +0,0 @@ -#ifndef AL_AL_H -#define AL_AL_H - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifndef AL_API - #if defined(AL_LIBTYPE_STATIC) - #define AL_API - #elif defined(_WIN32) - #define AL_API __declspec(dllimport) - #else - #define AL_API extern - #endif -#endif - -#if defined(_WIN32) - #define AL_APIENTRY __cdecl -#else - #define AL_APIENTRY -#endif - - -/** Deprecated macro. */ -#define OPENAL -#define ALAPI AL_API -#define ALAPIENTRY AL_APIENTRY -#define AL_INVALID (-1) -#define AL_ILLEGAL_ENUM AL_INVALID_ENUM -#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION - -/** Supported AL version. */ -#define AL_VERSION_1_0 -#define AL_VERSION_1_1 - -/** 8-bit boolean */ -typedef char ALboolean; - -/** character */ -typedef char ALchar; - -/** signed 8-bit 2's complement integer */ -typedef signed char ALbyte; - -/** unsigned 8-bit integer */ -typedef unsigned char ALubyte; - -/** signed 16-bit 2's complement integer */ -typedef short ALshort; - -/** unsigned 16-bit integer */ -typedef unsigned short ALushort; - -/** signed 32-bit 2's complement integer */ -typedef int ALint; - -/** unsigned 32-bit integer */ -typedef unsigned int ALuint; - -/** non-negative 32-bit binary integer size */ -typedef int ALsizei; - -/** enumerated 32-bit value */ -typedef int ALenum; - -/** 32-bit IEEE754 floating-point */ -typedef float ALfloat; - -/** 64-bit IEEE754 floating-point */ -typedef double ALdouble; - -/** void type (for opaque pointers only) */ -typedef void ALvoid; - - -/* Enumerant values begin at column 50. No tabs. */ - -/** "no distance model" or "no buffer" */ -#define AL_NONE 0 - -/** Boolean False. */ -#define AL_FALSE 0 - -/** Boolean True. */ -#define AL_TRUE 1 - - -/** - * Relative source. - * Type: ALboolean - * Range: [AL_TRUE, AL_FALSE] - * Default: AL_FALSE - * - * Specifies if the Source has relative coordinates. - */ -#define AL_SOURCE_RELATIVE 0x202 - - -/** - * Inner cone angle, in degrees. - * Type: ALint, ALfloat - * Range: [0 - 360] - * Default: 360 - * - * The angle covered by the inner cone, where the source will not attenuate. - */ -#define AL_CONE_INNER_ANGLE 0x1001 - -/** - * Outer cone angle, in degrees. - * Range: [0 - 360] - * Default: 360 - * - * The angle covered by the outer cone, where the source will be fully - * attenuated. - */ -#define AL_CONE_OUTER_ANGLE 0x1002 - -/** - * Source pitch. - * Type: ALfloat - * Range: [0.5 - 2.0] - * Default: 1.0 - * - * A multiplier for the frequency (sample rate) of the source's buffer. - */ -#define AL_PITCH 0x1003 - -/** - * Source or listener position. - * Type: ALfloat[3], ALint[3] - * Default: {0, 0, 0} - * - * The source or listener location in three dimensional space. - * - * OpenAL, like OpenGL, uses a right handed coordinate system, where in a - * frontal default view X (thumb) points right, Y points up (index finger), and - * Z points towards the viewer/camera (middle finger). - * - * To switch from a left handed coordinate system, flip the sign on the Z - * coordinate. - */ -#define AL_POSITION 0x1004 - -/** - * Source direction. - * Type: ALfloat[3], ALint[3] - * Default: {0, 0, 0} - * - * Specifies the current direction in local space. - * A zero-length vector specifies an omni-directional source (cone is ignored). - */ -#define AL_DIRECTION 0x1005 - -/** - * Source or listener velocity. - * Type: ALfloat[3], ALint[3] - * Default: {0, 0, 0} - * - * Specifies the current velocity in local space. - */ -#define AL_VELOCITY 0x1006 - -/** - * Source looping. - * Type: ALboolean - * Range: [AL_TRUE, AL_FALSE] - * Default: AL_FALSE - * - * Specifies whether source is looping. - */ -#define AL_LOOPING 0x1007 - -/** - * Source buffer. - * Type: ALuint - * Range: any valid Buffer. - * - * Specifies the buffer to provide sound samples. - */ -#define AL_BUFFER 0x1009 - -/** - * Source or listener gain. - * Type: ALfloat - * Range: [0.0 - ] - * - * A value of 1.0 means unattenuated. Each division by 2 equals an attenuation - * of about -6dB. Each multiplicaton by 2 equals an amplification of about - * +6dB. - * - * A value of 0.0 is meaningless with respect to a logarithmic scale; it is - * silent. - */ -#define AL_GAIN 0x100A - -/** - * Minimum source gain. - * Type: ALfloat - * Range: [0.0 - 1.0] - * - * The minimum gain allowed for a source, after distance and cone attenation is - * applied (if applicable). - */ -#define AL_MIN_GAIN 0x100D - -/** - * Maximum source gain. - * Type: ALfloat - * Range: [0.0 - 1.0] - * - * The maximum gain allowed for a source, after distance and cone attenation is - * applied (if applicable). - */ -#define AL_MAX_GAIN 0x100E - -/** - * Listener orientation. - * Type: ALfloat[6] - * Default: {0.0, 0.0, -1.0, 0.0, 1.0, 0.0} - * - * Effectively two three dimensional vectors. The first vector is the front (or - * "at") and the second is the top (or "up"). - * - * Both vectors are in local space. - */ -#define AL_ORIENTATION 0x100F - -/** - * Source state (query only). - * Type: ALint - * Range: [AL_INITIAL, AL_PLAYING, AL_PAUSED, AL_STOPPED] - */ -#define AL_SOURCE_STATE 0x1010 - -/** Source state value. */ -#define AL_INITIAL 0x1011 -#define AL_PLAYING 0x1012 -#define AL_PAUSED 0x1013 -#define AL_STOPPED 0x1014 - -/** - * Source Buffer Queue size (query only). - * Type: ALint - * - * The number of buffers queued using alSourceQueueBuffers, minus the buffers - * removed with alSourceUnqueueBuffers. - */ -#define AL_BUFFERS_QUEUED 0x1015 - -/** - * Source Buffer Queue processed count (query only). - * Type: ALint - * - * The number of queued buffers that have been fully processed, and can be - * removed with alSourceUnqueueBuffers. - * - * Looping sources will never fully process buffers because they will be set to - * play again for when the source loops. - */ -#define AL_BUFFERS_PROCESSED 0x1016 - -/** - * Source reference distance. - * Type: ALfloat - * Range: [0.0 - ] - * Default: 1.0 - * - * The distance in units that no attenuation occurs. - * - * At 0.0, no distance attenuation ever occurs on non-linear attenuation models. - */ -#define AL_REFERENCE_DISTANCE 0x1020 - -/** - * Source rolloff factor. - * Type: ALfloat - * Range: [0.0 - ] - * Default: 1.0 - * - * Multiplier to exaggerate or diminish distance attenuation. - * - * At 0.0, no distance attenuation ever occurs. - */ -#define AL_ROLLOFF_FACTOR 0x1021 - -/** - * Outer cone gain. - * Type: ALfloat - * Range: [0.0 - 1.0] - * Default: 0.0 - * - * The gain attenuation applied when the listener is outside of the source's - * outer cone. - */ -#define AL_CONE_OUTER_GAIN 0x1022 - -/** - * Source maximum distance. - * Type: ALfloat - * Range: [0.0 - ] - * Default: +inf - * - * The distance above which the source is not attenuated any further with a - * clamped distance model, or where attenuation reaches 0.0 gain for linear - * distance models with a default rolloff factor. - */ -#define AL_MAX_DISTANCE 0x1023 - -/** Source buffer position, in seconds */ -#define AL_SEC_OFFSET 0x1024 -/** Source buffer position, in sample frames */ -#define AL_SAMPLE_OFFSET 0x1025 -/** Source buffer position, in bytes */ -#define AL_BYTE_OFFSET 0x1026 - -/** - * Source type (query only). - * Type: ALint - * Range: [AL_STATIC, AL_STREAMING, AL_UNDETERMINED] - * - * A Source is Static if a Buffer has been attached using AL_BUFFER. - * - * A Source is Streaming if one or more Buffers have been attached using - * alSourceQueueBuffers. - * - * A Source is Undetermined when it has the NULL buffer attached using - * AL_BUFFER. - */ -#define AL_SOURCE_TYPE 0x1027 - -/** Source type value. */ -#define AL_STATIC 0x1028 -#define AL_STREAMING 0x1029 -#define AL_UNDETERMINED 0x1030 - -/** Buffer format specifier. */ -#define AL_FORMAT_MONO8 0x1100 -#define AL_FORMAT_MONO16 0x1101 -#define AL_FORMAT_STEREO8 0x1102 -#define AL_FORMAT_STEREO16 0x1103 - -/** Buffer frequency (query only). */ -#define AL_FREQUENCY 0x2001 -/** Buffer bits per sample (query only). */ -#define AL_BITS 0x2002 -/** Buffer channel count (query only). */ -#define AL_CHANNELS 0x2003 -/** Buffer data size (query only). */ -#define AL_SIZE 0x2004 - -/** - * Buffer state. - * - * Not for public use. - */ -#define AL_UNUSED 0x2010 -#define AL_PENDING 0x2011 -#define AL_PROCESSED 0x2012 - - -/** No error. */ -#define AL_NO_ERROR 0 - -/** Invalid name paramater passed to AL call. */ -#define AL_INVALID_NAME 0xA001 - -/** Invalid enum parameter passed to AL call. */ -#define AL_INVALID_ENUM 0xA002 - -/** Invalid value parameter passed to AL call. */ -#define AL_INVALID_VALUE 0xA003 - -/** Illegal AL call. */ -#define AL_INVALID_OPERATION 0xA004 - -/** Not enough memory. */ -#define AL_OUT_OF_MEMORY 0xA005 - - -/** Context string: Vendor ID. */ -#define AL_VENDOR 0xB001 -/** Context string: Version. */ -#define AL_VERSION 0xB002 -/** Context string: Renderer ID. */ -#define AL_RENDERER 0xB003 -/** Context string: Space-separated extension list. */ -#define AL_EXTENSIONS 0xB004 - - -/** - * Doppler scale. - * Type: ALfloat - * Range: [0.0 - ] - * Default: 1.0 - * - * Scale for source and listener velocities. - */ -#define AL_DOPPLER_FACTOR 0xC000 -AL_API void AL_APIENTRY alDopplerFactor(ALfloat value); - -/** - * Doppler velocity (deprecated). - * - * A multiplier applied to the Speed of Sound. - */ -#define AL_DOPPLER_VELOCITY 0xC001 -AL_API void AL_APIENTRY alDopplerVelocity(ALfloat value); - -/** - * Speed of Sound, in units per second. - * Type: ALfloat - * Range: [0.0001 - ] - * Default: 343.3 - * - * The speed at which sound waves are assumed to travel, when calculating the - * doppler effect. - */ -#define AL_SPEED_OF_SOUND 0xC003 -AL_API void AL_APIENTRY alSpeedOfSound(ALfloat value); - -/** - * Distance attenuation model. - * Type: ALint - * Range: [AL_NONE, AL_INVERSE_DISTANCE, AL_INVERSE_DISTANCE_CLAMPED, - * AL_LINEAR_DISTANCE, AL_LINEAR_DISTANCE_CLAMPED, - * AL_EXPONENT_DISTANCE, AL_EXPONENT_DISTANCE_CLAMPED] - * Default: AL_INVERSE_DISTANCE_CLAMPED - * - * The model by which sources attenuate with distance. - * - * None - No distance attenuation. - * Inverse - Doubling the distance halves the source gain. - * Linear - Linear gain scaling between the reference and max distances. - * Exponent - Exponential gain dropoff. - * - * Clamped variations work like the non-clamped counterparts, except the - * distance calculated is clamped between the reference and max distances. - */ -#define AL_DISTANCE_MODEL 0xD000 -AL_API void AL_APIENTRY alDistanceModel(ALenum distanceModel); - -/** Distance model value. */ -#define AL_INVERSE_DISTANCE 0xD001 -#define AL_INVERSE_DISTANCE_CLAMPED 0xD002 -#define AL_LINEAR_DISTANCE 0xD003 -#define AL_LINEAR_DISTANCE_CLAMPED 0xD004 -#define AL_EXPONENT_DISTANCE 0xD005 -#define AL_EXPONENT_DISTANCE_CLAMPED 0xD006 - -/** Renderer State management. */ -AL_API void AL_APIENTRY alEnable(ALenum capability); -AL_API void AL_APIENTRY alDisable(ALenum capability); -AL_API ALboolean AL_APIENTRY alIsEnabled(ALenum capability); - -/** State retrieval. */ -AL_API const ALchar* AL_APIENTRY alGetString(ALenum param); -AL_API void AL_APIENTRY alGetBooleanv(ALenum param, ALboolean *values); -AL_API void AL_APIENTRY alGetIntegerv(ALenum param, ALint *values); -AL_API void AL_APIENTRY alGetFloatv(ALenum param, ALfloat *values); -AL_API void AL_APIENTRY alGetDoublev(ALenum param, ALdouble *values); -AL_API ALboolean AL_APIENTRY alGetBoolean(ALenum param); -AL_API ALint AL_APIENTRY alGetInteger(ALenum param); -AL_API ALfloat AL_APIENTRY alGetFloat(ALenum param); -AL_API ALdouble AL_APIENTRY alGetDouble(ALenum param); - -/** - * Error retrieval. - * - * Obtain the first error generated in the AL context since the last check. - */ -AL_API ALenum AL_APIENTRY alGetError(void); - -/** - * Extension support. - * - * Query for the presence of an extension, and obtain any appropriate function - * pointers and enum values. - */ -AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extname); -AL_API void* AL_APIENTRY alGetProcAddress(const ALchar *fname); -AL_API ALenum AL_APIENTRY alGetEnumValue(const ALchar *ename); - - -/** Set Listener parameters */ -AL_API void AL_APIENTRY alListenerf(ALenum param, ALfloat value); -AL_API void AL_APIENTRY alListener3f(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -AL_API void AL_APIENTRY alListenerfv(ALenum param, const ALfloat *values); -AL_API void AL_APIENTRY alListeneri(ALenum param, ALint value); -AL_API void AL_APIENTRY alListener3i(ALenum param, ALint value1, ALint value2, ALint value3); -AL_API void AL_APIENTRY alListeneriv(ALenum param, const ALint *values); - -/** Get Listener parameters */ -AL_API void AL_APIENTRY alGetListenerf(ALenum param, ALfloat *value); -AL_API void AL_APIENTRY alGetListener3f(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -AL_API void AL_APIENTRY alGetListenerfv(ALenum param, ALfloat *values); -AL_API void AL_APIENTRY alGetListeneri(ALenum param, ALint *value); -AL_API void AL_APIENTRY alGetListener3i(ALenum param, ALint *value1, ALint *value2, ALint *value3); -AL_API void AL_APIENTRY alGetListeneriv(ALenum param, ALint *values); - - -/** Create Source objects. */ -AL_API void AL_APIENTRY alGenSources(ALsizei n, ALuint *sources); -/** Delete Source objects. */ -AL_API void AL_APIENTRY alDeleteSources(ALsizei n, const ALuint *sources); -/** Verify a handle is a valid Source. */ -AL_API ALboolean AL_APIENTRY alIsSource(ALuint source); - -/** Set Source parameters. */ -AL_API void AL_APIENTRY alSourcef(ALuint source, ALenum param, ALfloat value); -AL_API void AL_APIENTRY alSource3f(ALuint source, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -AL_API void AL_APIENTRY alSourcefv(ALuint source, ALenum param, const ALfloat *values); -AL_API void AL_APIENTRY alSourcei(ALuint source, ALenum param, ALint value); -AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum param, ALint value1, ALint value2, ALint value3); -AL_API void AL_APIENTRY alSourceiv(ALuint source, ALenum param, const ALint *values); - -/** Get Source parameters. */ -AL_API void AL_APIENTRY alGetSourcef(ALuint source, ALenum param, ALfloat *value); -AL_API void AL_APIENTRY alGetSource3f(ALuint source, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -AL_API void AL_APIENTRY alGetSourcefv(ALuint source, ALenum param, ALfloat *values); -AL_API void AL_APIENTRY alGetSourcei(ALuint source, ALenum param, ALint *value); -AL_API void AL_APIENTRY alGetSource3i(ALuint source, ALenum param, ALint *value1, ALint *value2, ALint *value3); -AL_API void AL_APIENTRY alGetSourceiv(ALuint source, ALenum param, ALint *values); - - -/** Play, replay, or resume (if paused) a list of Sources */ -AL_API void AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources); -/** Stop a list of Sources */ -AL_API void AL_APIENTRY alSourceStopv(ALsizei n, const ALuint *sources); -/** Rewind a list of Sources */ -AL_API void AL_APIENTRY alSourceRewindv(ALsizei n, const ALuint *sources); -/** Pause a list of Sources */ -AL_API void AL_APIENTRY alSourcePausev(ALsizei n, const ALuint *sources); - -/** Play, replay, or resume a Source */ -AL_API void AL_APIENTRY alSourcePlay(ALuint source); -/** Stop a Source */ -AL_API void AL_APIENTRY alSourceStop(ALuint source); -/** Rewind a Source (set playback postiton to beginning) */ -AL_API void AL_APIENTRY alSourceRewind(ALuint source); -/** Pause a Source */ -AL_API void AL_APIENTRY alSourcePause(ALuint source); - -/** Queue buffers onto a source */ -AL_API void AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei nb, const ALuint *buffers); -/** Unqueue processed buffers from a source */ -AL_API void AL_APIENTRY alSourceUnqueueBuffers(ALuint source, ALsizei nb, ALuint *buffers); - - -/** Create Buffer objects */ -AL_API void AL_APIENTRY alGenBuffers(ALsizei n, ALuint *buffers); -/** Delete Buffer objects */ -AL_API void AL_APIENTRY alDeleteBuffers(ALsizei n, const ALuint *buffers); -/** Verify a handle is a valid Buffer */ -AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint buffer); - -/** Specifies the data to be copied into a buffer */ -AL_API void AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq); - -/** Set Buffer parameters, */ -AL_API void AL_APIENTRY alBufferf(ALuint buffer, ALenum param, ALfloat value); -AL_API void AL_APIENTRY alBuffer3f(ALuint buffer, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -AL_API void AL_APIENTRY alBufferfv(ALuint buffer, ALenum param, const ALfloat *values); -AL_API void AL_APIENTRY alBufferi(ALuint buffer, ALenum param, ALint value); -AL_API void AL_APIENTRY alBuffer3i(ALuint buffer, ALenum param, ALint value1, ALint value2, ALint value3); -AL_API void AL_APIENTRY alBufferiv(ALuint buffer, ALenum param, const ALint *values); - -/** Get Buffer parameters. */ -AL_API void AL_APIENTRY alGetBufferf(ALuint buffer, ALenum param, ALfloat *value); -AL_API void AL_APIENTRY alGetBuffer3f(ALuint buffer, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -AL_API void AL_APIENTRY alGetBufferfv(ALuint buffer, ALenum param, ALfloat *values); -AL_API void AL_APIENTRY alGetBufferi(ALuint buffer, ALenum param, ALint *value); -AL_API void AL_APIENTRY alGetBuffer3i(ALuint buffer, ALenum param, ALint *value1, ALint *value2, ALint *value3); -AL_API void AL_APIENTRY alGetBufferiv(ALuint buffer, ALenum param, ALint *values); - -/** Pointer-to-function type, useful for dynamically getting AL entry points. */ -typedef void (AL_APIENTRY *LPALENABLE)(ALenum capability); -typedef void (AL_APIENTRY *LPALDISABLE)(ALenum capability); -typedef ALboolean (AL_APIENTRY *LPALISENABLED)(ALenum capability); -typedef const ALchar* (AL_APIENTRY *LPALGETSTRING)(ALenum param); -typedef void (AL_APIENTRY *LPALGETBOOLEANV)(ALenum param, ALboolean *values); -typedef void (AL_APIENTRY *LPALGETINTEGERV)(ALenum param, ALint *values); -typedef void (AL_APIENTRY *LPALGETFLOATV)(ALenum param, ALfloat *values); -typedef void (AL_APIENTRY *LPALGETDOUBLEV)(ALenum param, ALdouble *values); -typedef ALboolean (AL_APIENTRY *LPALGETBOOLEAN)(ALenum param); -typedef ALint (AL_APIENTRY *LPALGETINTEGER)(ALenum param); -typedef ALfloat (AL_APIENTRY *LPALGETFLOAT)(ALenum param); -typedef ALdouble (AL_APIENTRY *LPALGETDOUBLE)(ALenum param); -typedef ALenum (AL_APIENTRY *LPALGETERROR)(void); -typedef ALboolean (AL_APIENTRY *LPALISEXTENSIONPRESENT)(const ALchar *extname); -typedef void* (AL_APIENTRY *LPALGETPROCADDRESS)(const ALchar *fname); -typedef ALenum (AL_APIENTRY *LPALGETENUMVALUE)(const ALchar *ename); -typedef void (AL_APIENTRY *LPALLISTENERF)(ALenum param, ALfloat value); -typedef void (AL_APIENTRY *LPALLISTENER3F)(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -typedef void (AL_APIENTRY *LPALLISTENERFV)(ALenum param, const ALfloat *values); -typedef void (AL_APIENTRY *LPALLISTENERI)(ALenum param, ALint value); -typedef void (AL_APIENTRY *LPALLISTENER3I)(ALenum param, ALint value1, ALint value2, ALint value3); -typedef void (AL_APIENTRY *LPALLISTENERIV)(ALenum param, const ALint *values); -typedef void (AL_APIENTRY *LPALGETLISTENERF)(ALenum param, ALfloat *value); -typedef void (AL_APIENTRY *LPALGETLISTENER3F)(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -typedef void (AL_APIENTRY *LPALGETLISTENERFV)(ALenum param, ALfloat *values); -typedef void (AL_APIENTRY *LPALGETLISTENERI)(ALenum param, ALint *value); -typedef void (AL_APIENTRY *LPALGETLISTENER3I)(ALenum param, ALint *value1, ALint *value2, ALint *value3); -typedef void (AL_APIENTRY *LPALGETLISTENERIV)(ALenum param, ALint *values); -typedef void (AL_APIENTRY *LPALGENSOURCES)(ALsizei n, ALuint *sources); -typedef void (AL_APIENTRY *LPALDELETESOURCES)(ALsizei n, const ALuint *sources); -typedef ALboolean (AL_APIENTRY *LPALISSOURCE)(ALuint source); -typedef void (AL_APIENTRY *LPALSOURCEF)(ALuint source, ALenum param, ALfloat value); -typedef void (AL_APIENTRY *LPALSOURCE3F)(ALuint source, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -typedef void (AL_APIENTRY *LPALSOURCEFV)(ALuint source, ALenum param, const ALfloat *values); -typedef void (AL_APIENTRY *LPALSOURCEI)(ALuint source, ALenum param, ALint value); -typedef void (AL_APIENTRY *LPALSOURCE3I)(ALuint source, ALenum param, ALint value1, ALint value2, ALint value3); -typedef void (AL_APIENTRY *LPALSOURCEIV)(ALuint source, ALenum param, const ALint *values); -typedef void (AL_APIENTRY *LPALGETSOURCEF)(ALuint source, ALenum param, ALfloat *value); -typedef void (AL_APIENTRY *LPALGETSOURCE3F)(ALuint source, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -typedef void (AL_APIENTRY *LPALGETSOURCEFV)(ALuint source, ALenum param, ALfloat *values); -typedef void (AL_APIENTRY *LPALGETSOURCEI)(ALuint source, ALenum param, ALint *value); -typedef void (AL_APIENTRY *LPALGETSOURCE3I)(ALuint source, ALenum param, ALint *value1, ALint *value2, ALint *value3); -typedef void (AL_APIENTRY *LPALGETSOURCEIV)(ALuint source, ALenum param, ALint *values); -typedef void (AL_APIENTRY *LPALSOURCEPLAYV)(ALsizei n, const ALuint *sources); -typedef void (AL_APIENTRY *LPALSOURCESTOPV)(ALsizei n, const ALuint *sources); -typedef void (AL_APIENTRY *LPALSOURCEREWINDV)(ALsizei n, const ALuint *sources); -typedef void (AL_APIENTRY *LPALSOURCEPAUSEV)(ALsizei n, const ALuint *sources); -typedef void (AL_APIENTRY *LPALSOURCEPLAY)(ALuint source); -typedef void (AL_APIENTRY *LPALSOURCESTOP)(ALuint source); -typedef void (AL_APIENTRY *LPALSOURCEREWIND)(ALuint source); -typedef void (AL_APIENTRY *LPALSOURCEPAUSE)(ALuint source); -typedef void (AL_APIENTRY *LPALSOURCEQUEUEBUFFERS)(ALuint source, ALsizei nb, const ALuint *buffers); -typedef void (AL_APIENTRY *LPALSOURCEUNQUEUEBUFFERS)(ALuint source, ALsizei nb, ALuint *buffers); -typedef void (AL_APIENTRY *LPALGENBUFFERS)(ALsizei n, ALuint *buffers); -typedef void (AL_APIENTRY *LPALDELETEBUFFERS)(ALsizei n, const ALuint *buffers); -typedef ALboolean (AL_APIENTRY *LPALISBUFFER)(ALuint buffer); -typedef void (AL_APIENTRY *LPALBUFFERDATA)(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq); -typedef void (AL_APIENTRY *LPALBUFFERF)(ALuint buffer, ALenum param, ALfloat value); -typedef void (AL_APIENTRY *LPALBUFFER3F)(ALuint buffer, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3); -typedef void (AL_APIENTRY *LPALBUFFERFV)(ALuint buffer, ALenum param, const ALfloat *values); -typedef void (AL_APIENTRY *LPALBUFFERI)(ALuint buffer, ALenum param, ALint value); -typedef void (AL_APIENTRY *LPALBUFFER3I)(ALuint buffer, ALenum param, ALint value1, ALint value2, ALint value3); -typedef void (AL_APIENTRY *LPALBUFFERIV)(ALuint buffer, ALenum param, const ALint *values); -typedef void (AL_APIENTRY *LPALGETBUFFERF)(ALuint buffer, ALenum param, ALfloat *value); -typedef void (AL_APIENTRY *LPALGETBUFFER3F)(ALuint buffer, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3); -typedef void (AL_APIENTRY *LPALGETBUFFERFV)(ALuint buffer, ALenum param, ALfloat *values); -typedef void (AL_APIENTRY *LPALGETBUFFERI)(ALuint buffer, ALenum param, ALint *value); -typedef void (AL_APIENTRY *LPALGETBUFFER3I)(ALuint buffer, ALenum param, ALint *value1, ALint *value2, ALint *value3); -typedef void (AL_APIENTRY *LPALGETBUFFERIV)(ALuint buffer, ALenum param, ALint *values); -typedef void (AL_APIENTRY *LPALDOPPLERFACTOR)(ALfloat value); -typedef void (AL_APIENTRY *LPALDOPPLERVELOCITY)(ALfloat value); -typedef void (AL_APIENTRY *LPALSPEEDOFSOUND)(ALfloat value); -typedef void (AL_APIENTRY *LPALDISTANCEMODEL)(ALenum distanceModel); - -#if defined(__cplusplus) -} /* extern "C" */ -#endif - -#endif /* AL_AL_H */ diff --git a/libs/openal-soft-1.15.1/include/AL/alc.h b/libs/openal-soft-1.15.1/include/AL/alc.h deleted file mode 100755 index 294e8b3..0000000 --- a/libs/openal-soft-1.15.1/include/AL/alc.h +++ /dev/null @@ -1,237 +0,0 @@ -#ifndef AL_ALC_H -#define AL_ALC_H - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifndef ALC_API - #if defined(AL_LIBTYPE_STATIC) - #define ALC_API - #elif defined(_WIN32) - #define ALC_API __declspec(dllimport) - #else - #define ALC_API extern - #endif -#endif - -#if defined(_WIN32) - #define ALC_APIENTRY __cdecl -#else - #define ALC_APIENTRY -#endif - - -/** Deprecated macro. */ -#define ALCAPI ALC_API -#define ALCAPIENTRY ALC_APIENTRY -#define ALC_INVALID 0 - -/** Supported ALC version? */ -#define ALC_VERSION_0_1 1 - -/** Opaque device handle */ -typedef struct ALCdevice_struct ALCdevice; -/** Opaque context handle */ -typedef struct ALCcontext_struct ALCcontext; - -/** 8-bit boolean */ -typedef char ALCboolean; - -/** character */ -typedef char ALCchar; - -/** signed 8-bit 2's complement integer */ -typedef signed char ALCbyte; - -/** unsigned 8-bit integer */ -typedef unsigned char ALCubyte; - -/** signed 16-bit 2's complement integer */ -typedef short ALCshort; - -/** unsigned 16-bit integer */ -typedef unsigned short ALCushort; - -/** signed 32-bit 2's complement integer */ -typedef int ALCint; - -/** unsigned 32-bit integer */ -typedef unsigned int ALCuint; - -/** non-negative 32-bit binary integer size */ -typedef int ALCsizei; - -/** enumerated 32-bit value */ -typedef int ALCenum; - -/** 32-bit IEEE754 floating-point */ -typedef float ALCfloat; - -/** 64-bit IEEE754 floating-point */ -typedef double ALCdouble; - -/** void type (for opaque pointers only) */ -typedef void ALCvoid; - - -/* Enumerant values begin at column 50. No tabs. */ - -/** Boolean False. */ -#define ALC_FALSE 0 - -/** Boolean True. */ -#define ALC_TRUE 1 - -/** Context attribute: Hz. */ -#define ALC_FREQUENCY 0x1007 - -/** Context attribute: Hz. */ -#define ALC_REFRESH 0x1008 - -/** Context attribute: AL_TRUE or AL_FALSE. */ -#define ALC_SYNC 0x1009 - -/** Context attribute: requested Mono (3D) Sources. */ -#define ALC_MONO_SOURCES 0x1010 - -/** Context attribute: requested Stereo Sources. */ -#define ALC_STEREO_SOURCES 0x1011 - -/** No error. */ -#define ALC_NO_ERROR 0 - -/** Invalid device handle. */ -#define ALC_INVALID_DEVICE 0xA001 - -/** Invalid context handle. */ -#define ALC_INVALID_CONTEXT 0xA002 - -/** Invalid enum parameter passed to an ALC call. */ -#define ALC_INVALID_ENUM 0xA003 - -/** Invalid value parameter passed to an ALC call. */ -#define ALC_INVALID_VALUE 0xA004 - -/** Out of memory. */ -#define ALC_OUT_OF_MEMORY 0xA005 - - -/** Runtime ALC version. */ -#define ALC_MAJOR_VERSION 0x1000 -#define ALC_MINOR_VERSION 0x1001 - -/** Context attribute list properties. */ -#define ALC_ATTRIBUTES_SIZE 0x1002 -#define ALC_ALL_ATTRIBUTES 0x1003 - -/** String for the default device specifier. */ -#define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004 -/** - * String for the given device's specifier. - * - * If device handle is NULL, it is instead a null-char separated list of - * strings of known device specifiers (list ends with an empty string). - */ -#define ALC_DEVICE_SPECIFIER 0x1005 -/** String for space-separated list of ALC extensions. */ -#define ALC_EXTENSIONS 0x1006 - - -/** Capture extension */ -#define ALC_EXT_CAPTURE 1 -/** - * String for the given capture device's specifier. - * - * If device handle is NULL, it is instead a null-char separated list of - * strings of known capture device specifiers (list ends with an empty string). - */ -#define ALC_CAPTURE_DEVICE_SPECIFIER 0x310 -/** String for the default capture device specifier. */ -#define ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311 -/** Number of sample frames available for capture. */ -#define ALC_CAPTURE_SAMPLES 0x312 - - -/** Enumerate All extension */ -#define ALC_ENUMERATE_ALL_EXT 1 -/** String for the default extended device specifier. */ -#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012 -/** - * String for the given extended device's specifier. - * - * If device handle is NULL, it is instead a null-char separated list of - * strings of known extended device specifiers (list ends with an empty string). - */ -#define ALC_ALL_DEVICES_SPECIFIER 0x1013 - - -/** Context management. */ -ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCint* attrlist); -ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent(ALCcontext *context); -ALC_API void ALC_APIENTRY alcProcessContext(ALCcontext *context); -ALC_API void ALC_APIENTRY alcSuspendContext(ALCcontext *context); -ALC_API void ALC_APIENTRY alcDestroyContext(ALCcontext *context); -ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(void); -ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice(ALCcontext *context); - -/** Device management. */ -ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *devicename); -ALC_API ALCboolean ALC_APIENTRY alcCloseDevice(ALCdevice *device); - - -/** - * Error support. - * - * Obtain the most recent Device error. - */ -ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device); - -/** - * Extension support. - * - * Query for the presence of an extension, and obtain any appropriate - * function pointers and enum values. - */ -ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname); -ALC_API void* ALC_APIENTRY alcGetProcAddress(ALCdevice *device, const ALCchar *funcname); -ALC_API ALCenum ALC_APIENTRY alcGetEnumValue(ALCdevice *device, const ALCchar *enumname); - -/** Query function. */ -ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *device, ALCenum param); -ALC_API void ALC_APIENTRY alcGetIntegerv(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values); - -/** Capture function. */ -ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize); -ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice(ALCdevice *device); -ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device); -ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device); -ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer, ALCsizei samples); - -/** Pointer-to-function type, useful for dynamically getting ALC entry points. */ -typedef ALCcontext* (ALC_APIENTRY *LPALCCREATECONTEXT)(ALCdevice *device, const ALCint *attrlist); -typedef ALCboolean (ALC_APIENTRY *LPALCMAKECONTEXTCURRENT)(ALCcontext *context); -typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)(ALCcontext *context); -typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)(ALCcontext *context); -typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)(ALCcontext *context); -typedef ALCcontext* (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)(void); -typedef ALCdevice* (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)(ALCcontext *context); -typedef ALCdevice* (ALC_APIENTRY *LPALCOPENDEVICE)(const ALCchar *devicename); -typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)(ALCdevice *device); -typedef ALCenum (ALC_APIENTRY *LPALCGETERROR)(ALCdevice *device); -typedef ALCboolean (ALC_APIENTRY *LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname); -typedef void* (ALC_APIENTRY *LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname); -typedef ALCenum (ALC_APIENTRY *LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname); -typedef const ALCchar* (ALC_APIENTRY *LPALCGETSTRING)(ALCdevice *device, ALCenum param); -typedef void (ALC_APIENTRY *LPALCGETINTEGERV)(ALCdevice *device, ALCenum param, ALCsizei size, ALCint *values); -typedef ALCdevice* (ALC_APIENTRY *LPALCCAPTUREOPENDEVICE)(const ALCchar *devicename, ALCuint frequency, ALCenum format, ALCsizei buffersize); -typedef ALCboolean (ALC_APIENTRY *LPALCCAPTURECLOSEDEVICE)(ALCdevice *device); -typedef void (ALC_APIENTRY *LPALCCAPTURESTART)(ALCdevice *device); -typedef void (ALC_APIENTRY *LPALCCAPTURESTOP)(ALCdevice *device); -typedef void (ALC_APIENTRY *LPALCCAPTURESAMPLES)(ALCdevice *device, ALCvoid *buffer, ALCsizei samples); - -#if defined(__cplusplus) -} -#endif - -#endif /* AL_ALC_H */ diff --git a/libs/openal-soft-1.15.1/include/AL/alext.h b/libs/openal-soft-1.15.1/include/AL/alext.h deleted file mode 100755 index 0447f2b..0000000 --- a/libs/openal-soft-1.15.1/include/AL/alext.h +++ /dev/null @@ -1,355 +0,0 @@ -/** - * OpenAL cross platform audio library - * Copyright (C) 2008 by authors. - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * Or go to http://www.gnu.org/copyleft/lgpl.html - */ - -#ifndef AL_ALEXT_H -#define AL_ALEXT_H - -#include -/* Define int64_t and uint64_t types */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(_WIN32) && defined(__GNUC__) -#include -#elif defined(_WIN32) -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif - -#include "alc.h" -#include "al.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef AL_LOKI_IMA_ADPCM_format -#define AL_LOKI_IMA_ADPCM_format 1 -#define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000 -#define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001 -#endif - -#ifndef AL_LOKI_WAVE_format -#define AL_LOKI_WAVE_format 1 -#define AL_FORMAT_WAVE_EXT 0x10002 -#endif - -#ifndef AL_EXT_vorbis -#define AL_EXT_vorbis 1 -#define AL_FORMAT_VORBIS_EXT 0x10003 -#endif - -#ifndef AL_LOKI_quadriphonic -#define AL_LOKI_quadriphonic 1 -#define AL_FORMAT_QUAD8_LOKI 0x10004 -#define AL_FORMAT_QUAD16_LOKI 0x10005 -#endif - -#ifndef AL_EXT_float32 -#define AL_EXT_float32 1 -#define AL_FORMAT_MONO_FLOAT32 0x10010 -#define AL_FORMAT_STEREO_FLOAT32 0x10011 -#endif - -#ifndef AL_EXT_double -#define AL_EXT_double 1 -#define AL_FORMAT_MONO_DOUBLE_EXT 0x10012 -#define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013 -#endif - -#ifndef AL_EXT_MULAW -#define AL_EXT_MULAW 1 -#define AL_FORMAT_MONO_MULAW_EXT 0x10014 -#define AL_FORMAT_STEREO_MULAW_EXT 0x10015 -#endif - -#ifndef AL_EXT_ALAW -#define AL_EXT_ALAW 1 -#define AL_FORMAT_MONO_ALAW_EXT 0x10016 -#define AL_FORMAT_STEREO_ALAW_EXT 0x10017 -#endif - -#ifndef ALC_LOKI_audio_channel -#define ALC_LOKI_audio_channel 1 -#define ALC_CHAN_MAIN_LOKI 0x500001 -#define ALC_CHAN_PCM_LOKI 0x500002 -#define ALC_CHAN_CD_LOKI 0x500003 -#endif - -#ifndef AL_EXT_MCFORMATS -#define AL_EXT_MCFORMATS 1 -#define AL_FORMAT_QUAD8 0x1204 -#define AL_FORMAT_QUAD16 0x1205 -#define AL_FORMAT_QUAD32 0x1206 -#define AL_FORMAT_REAR8 0x1207 -#define AL_FORMAT_REAR16 0x1208 -#define AL_FORMAT_REAR32 0x1209 -#define AL_FORMAT_51CHN8 0x120A -#define AL_FORMAT_51CHN16 0x120B -#define AL_FORMAT_51CHN32 0x120C -#define AL_FORMAT_61CHN8 0x120D -#define AL_FORMAT_61CHN16 0x120E -#define AL_FORMAT_61CHN32 0x120F -#define AL_FORMAT_71CHN8 0x1210 -#define AL_FORMAT_71CHN16 0x1211 -#define AL_FORMAT_71CHN32 0x1212 -#endif - -#ifndef AL_EXT_MULAW_MCFORMATS -#define AL_EXT_MULAW_MCFORMATS 1 -#define AL_FORMAT_MONO_MULAW 0x10014 -#define AL_FORMAT_STEREO_MULAW 0x10015 -#define AL_FORMAT_QUAD_MULAW 0x10021 -#define AL_FORMAT_REAR_MULAW 0x10022 -#define AL_FORMAT_51CHN_MULAW 0x10023 -#define AL_FORMAT_61CHN_MULAW 0x10024 -#define AL_FORMAT_71CHN_MULAW 0x10025 -#endif - -#ifndef AL_EXT_IMA4 -#define AL_EXT_IMA4 1 -#define AL_FORMAT_MONO_IMA4 0x1300 -#define AL_FORMAT_STEREO_IMA4 0x1301 -#endif - -#ifndef AL_EXT_STATIC_BUFFER -#define AL_EXT_STATIC_BUFFER 1 -typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei); -#ifdef AL_ALEXT_PROTOTYPES -AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq); -#endif -#endif - -#ifndef ALC_EXT_EFX -#define ALC_EXT_EFX 1 -#include "efx.h" -#endif - -#ifndef ALC_EXT_disconnect -#define ALC_EXT_disconnect 1 -#define ALC_CONNECTED 0x313 -#endif - -#ifndef ALC_EXT_thread_local_context -#define ALC_EXT_thread_local_context 1 -typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context); -typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void); -#ifdef AL_ALEXT_PROTOTYPES -ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context); -ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void); -#endif -#endif - -#ifndef AL_EXT_source_distance_model -#define AL_EXT_source_distance_model 1 -#define AL_SOURCE_DISTANCE_MODEL 0x200 -#endif - -#ifndef AL_SOFT_buffer_sub_data -#define AL_SOFT_buffer_sub_data 1 -#define AL_BYTE_RW_OFFSETS_SOFT 0x1031 -#define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032 -typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei); -#ifdef AL_ALEXT_PROTOTYPES -AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length); -#endif -#endif - -#ifndef AL_SOFT_loop_points -#define AL_SOFT_loop_points 1 -#define AL_LOOP_POINTS_SOFT 0x2015 -#endif - -#ifndef AL_EXT_FOLDBACK -#define AL_EXT_FOLDBACK 1 -#define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK" -#define AL_FOLDBACK_EVENT_BLOCK 0x4112 -#define AL_FOLDBACK_EVENT_START 0x4111 -#define AL_FOLDBACK_EVENT_STOP 0x4113 -#define AL_FOLDBACK_MODE_MONO 0x4101 -#define AL_FOLDBACK_MODE_STEREO 0x4102 -typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei); -typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK); -typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void); -#ifdef AL_ALEXT_PROTOTYPES -AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback); -AL_API void AL_APIENTRY alRequestFoldbackStop(void); -#endif -#endif - -#ifndef ALC_EXT_DEDICATED -#define ALC_EXT_DEDICATED 1 -#define AL_DEDICATED_GAIN 0x0001 -#define AL_EFFECT_DEDICATED_DIALOGUE 0x9001 -#define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000 -#endif - -#ifndef AL_SOFT_buffer_samples -#define AL_SOFT_buffer_samples 1 -/* Channel configurations */ -#define AL_MONO_SOFT 0x1500 -#define AL_STEREO_SOFT 0x1501 -#define AL_REAR_SOFT 0x1502 -#define AL_QUAD_SOFT 0x1503 -#define AL_5POINT1_SOFT 0x1504 -#define AL_6POINT1_SOFT 0x1505 -#define AL_7POINT1_SOFT 0x1506 - -/* Sample types */ -#define AL_BYTE_SOFT 0x1400 -#define AL_UNSIGNED_BYTE_SOFT 0x1401 -#define AL_SHORT_SOFT 0x1402 -#define AL_UNSIGNED_SHORT_SOFT 0x1403 -#define AL_INT_SOFT 0x1404 -#define AL_UNSIGNED_INT_SOFT 0x1405 -#define AL_FLOAT_SOFT 0x1406 -#define AL_DOUBLE_SOFT 0x1407 -#define AL_BYTE3_SOFT 0x1408 -#define AL_UNSIGNED_BYTE3_SOFT 0x1409 - -/* Storage formats */ -#define AL_MONO8_SOFT 0x1100 -#define AL_MONO16_SOFT 0x1101 -#define AL_MONO32F_SOFT 0x10010 -#define AL_STEREO8_SOFT 0x1102 -#define AL_STEREO16_SOFT 0x1103 -#define AL_STEREO32F_SOFT 0x10011 -#define AL_QUAD8_SOFT 0x1204 -#define AL_QUAD16_SOFT 0x1205 -#define AL_QUAD32F_SOFT 0x1206 -#define AL_REAR8_SOFT 0x1207 -#define AL_REAR16_SOFT 0x1208 -#define AL_REAR32F_SOFT 0x1209 -#define AL_5POINT1_8_SOFT 0x120A -#define AL_5POINT1_16_SOFT 0x120B -#define AL_5POINT1_32F_SOFT 0x120C -#define AL_6POINT1_8_SOFT 0x120D -#define AL_6POINT1_16_SOFT 0x120E -#define AL_6POINT1_32F_SOFT 0x120F -#define AL_7POINT1_8_SOFT 0x1210 -#define AL_7POINT1_16_SOFT 0x1211 -#define AL_7POINT1_32F_SOFT 0x1212 - -/* Buffer attributes */ -#define AL_INTERNAL_FORMAT_SOFT 0x2008 -#define AL_BYTE_LENGTH_SOFT 0x2009 -#define AL_SAMPLE_LENGTH_SOFT 0x200A -#define AL_SEC_LENGTH_SOFT 0x200B - -typedef void (AL_APIENTRY*LPALBUFFERSAMPLESSOFT)(ALuint,ALuint,ALenum,ALsizei,ALenum,ALenum,const ALvoid*); -typedef void (AL_APIENTRY*LPALBUFFERSUBSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,const ALvoid*); -typedef void (AL_APIENTRY*LPALGETBUFFERSAMPLESSOFT)(ALuint,ALsizei,ALsizei,ALenum,ALenum,ALvoid*); -typedef ALboolean (AL_APIENTRY*LPALISBUFFERFORMATSUPPORTEDSOFT)(ALenum); -#ifdef AL_ALEXT_PROTOTYPES -AL_API void AL_APIENTRY alBufferSamplesSOFT(ALuint buffer, ALuint samplerate, ALenum internalformat, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data); -AL_API void AL_APIENTRY alBufferSubSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, const ALvoid *data); -AL_API void AL_APIENTRY alGetBufferSamplesSOFT(ALuint buffer, ALsizei offset, ALsizei samples, ALenum channels, ALenum type, ALvoid *data); -AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format); -#endif -#endif - -#ifndef AL_SOFT_direct_channels -#define AL_SOFT_direct_channels 1 -#define AL_DIRECT_CHANNELS_SOFT 0x1033 -#endif - -#ifndef ALC_SOFT_loopback -#define ALC_SOFT_loopback 1 -#define ALC_FORMAT_CHANNELS_SOFT 0x1990 -#define ALC_FORMAT_TYPE_SOFT 0x1991 - -/* Sample types */ -#define ALC_BYTE_SOFT 0x1400 -#define ALC_UNSIGNED_BYTE_SOFT 0x1401 -#define ALC_SHORT_SOFT 0x1402 -#define ALC_UNSIGNED_SHORT_SOFT 0x1403 -#define ALC_INT_SOFT 0x1404 -#define ALC_UNSIGNED_INT_SOFT 0x1405 -#define ALC_FLOAT_SOFT 0x1406 - -/* Channel configurations */ -#define ALC_MONO_SOFT 0x1500 -#define ALC_STEREO_SOFT 0x1501 -#define ALC_QUAD_SOFT 0x1503 -#define ALC_5POINT1_SOFT 0x1504 -#define ALC_6POINT1_SOFT 0x1505 -#define ALC_7POINT1_SOFT 0x1506 - -typedef ALCdevice* (ALC_APIENTRY*LPALCLOOPBACKOPENDEVICESOFT)(const ALCchar*); -typedef ALCboolean (ALC_APIENTRY*LPALCISRENDERFORMATSUPPORTEDSOFT)(ALCdevice*,ALCsizei,ALCenum,ALCenum); -typedef void (ALC_APIENTRY*LPALCRENDERSAMPLESSOFT)(ALCdevice*,ALCvoid*,ALCsizei); -#ifdef AL_ALEXT_PROTOTYPES -ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceName); -ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT(ALCdevice *device, ALCsizei freq, ALCenum channels, ALCenum type); -ALC_API void ALC_APIENTRY alcRenderSamplesSOFT(ALCdevice *device, ALCvoid *buffer, ALCsizei samples); -#endif -#endif - -#ifndef AL_EXT_STEREO_ANGLES -#define AL_EXT_STEREO_ANGLES 1 -#define AL_STEREO_ANGLES 0x1030 -#endif - -#ifndef AL_EXT_SOURCE_RADIUS -#define AL_EXT_SOURCE_RADIUS 1 -#define AL_SOURCE_RADIUS 0x1031 -#endif - -#ifndef AL_SOFT_source_latency -#define AL_SOFT_source_latency 1 -#define AL_SAMPLE_OFFSET_LATENCY_SOFT 0x1200 -#define AL_SEC_OFFSET_LATENCY_SOFT 0x1201 -typedef int64_t ALint64SOFT; -typedef uint64_t ALuint64SOFT; -typedef void (AL_APIENTRY*LPALSOURCEDSOFT)(ALuint,ALenum,ALdouble); -typedef void (AL_APIENTRY*LPALSOURCE3DSOFT)(ALuint,ALenum,ALdouble,ALdouble,ALdouble); -typedef void (AL_APIENTRY*LPALSOURCEDVSOFT)(ALuint,ALenum,const ALdouble*); -typedef void (AL_APIENTRY*LPALGETSOURCEDSOFT)(ALuint,ALenum,ALdouble*); -typedef void (AL_APIENTRY*LPALGETSOURCE3DSOFT)(ALuint,ALenum,ALdouble*,ALdouble*,ALdouble*); -typedef void (AL_APIENTRY*LPALGETSOURCEDVSOFT)(ALuint,ALenum,ALdouble*); -typedef void (AL_APIENTRY*LPALSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT); -typedef void (AL_APIENTRY*LPALSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT,ALint64SOFT,ALint64SOFT); -typedef void (AL_APIENTRY*LPALSOURCEI64VSOFT)(ALuint,ALenum,const ALint64SOFT*); -typedef void (AL_APIENTRY*LPALGETSOURCEI64SOFT)(ALuint,ALenum,ALint64SOFT*); -typedef void (AL_APIENTRY*LPALGETSOURCE3I64SOFT)(ALuint,ALenum,ALint64SOFT*,ALint64SOFT*,ALint64SOFT*); -typedef void (AL_APIENTRY*LPALGETSOURCEI64VSOFT)(ALuint,ALenum,ALint64SOFT*); -#ifdef AL_ALEXT_PROTOTYPES -AL_API void AL_APIENTRY alSourcedSOFT(ALuint source, ALenum param, ALdouble value); -AL_API void AL_APIENTRY alSource3dSOFT(ALuint source, ALenum param, ALdouble value1, ALdouble value2, ALdouble value3); -AL_API void AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdouble *values); -AL_API void AL_APIENTRY alGetSourcedSOFT(ALuint source, ALenum param, ALdouble *value); -AL_API void AL_APIENTRY alGetSource3dSOFT(ALuint source, ALenum param, ALdouble *value1, ALdouble *value2, ALdouble *value3); -AL_API void AL_APIENTRY alGetSourcedvSOFT(ALuint source, ALenum param, ALdouble *values); -AL_API void AL_APIENTRY alSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT value); -AL_API void AL_APIENTRY alSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT value1, ALint64SOFT value2, ALint64SOFT value3); -AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALint64SOFT *values); -AL_API void AL_APIENTRY alGetSourcei64SOFT(ALuint source, ALenum param, ALint64SOFT *value); -AL_API void AL_APIENTRY alGetSource3i64SOFT(ALuint source, ALenum param, ALint64SOFT *value1, ALint64SOFT *value2, ALint64SOFT *value3); -AL_API void AL_APIENTRY alGetSourcei64vSOFT(ALuint source, ALenum param, ALint64SOFT *values); -#endif -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/libs/openal-soft-1.15.1/include/AL/efx-creative.h b/libs/openal-soft-1.15.1/include/AL/efx-creative.h deleted file mode 100755 index 0a04c98..0000000 --- a/libs/openal-soft-1.15.1/include/AL/efx-creative.h +++ /dev/null @@ -1,3 +0,0 @@ -/* The tokens that would be defined here are already defined in efx.h. This - * empty file is here to provide compatibility with Windows-based projects - * that would include it. */ diff --git a/libs/openal-soft-1.15.1/include/AL/efx-presets.h b/libs/openal-soft-1.15.1/include/AL/efx-presets.h deleted file mode 100755 index 86dcbda..0000000 --- a/libs/openal-soft-1.15.1/include/AL/efx-presets.h +++ /dev/null @@ -1,402 +0,0 @@ -/* Reverb presets for EFX */ - -#ifndef EFX_PRESETS_H -#define EFX_PRESETS_H - -#ifndef EFXEAXREVERBPROPERTIES_DEFINED -#define EFXEAXREVERBPROPERTIES_DEFINED -typedef struct { - float flDensity; - float flDiffusion; - float flGain; - float flGainHF; - float flGainLF; - float flDecayTime; - float flDecayHFRatio; - float flDecayLFRatio; - float flReflectionsGain; - float flReflectionsDelay; - float flReflectionsPan[3]; - float flLateReverbGain; - float flLateReverbDelay; - float flLateReverbPan[3]; - float flEchoTime; - float flEchoDepth; - float flModulationTime; - float flModulationDepth; - float flAirAbsorptionGainHF; - float flHFReference; - float flLFReference; - float flRoomRolloffFactor; - int iDecayHFLimit; -} EFXEAXREVERBPROPERTIES, *LPEFXEAXREVERBPROPERTIES; -#endif - -/* Default Presets */ - -#define EFX_REVERB_PRESET_GENERIC \ - { 1.0000f, 1.0000f, 0.3162f, 0.8913f, 1.0000f, 1.4900f, 0.8300f, 1.0000f, 0.0500f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PADDEDCELL \ - { 0.1715f, 1.0000f, 0.3162f, 0.0010f, 1.0000f, 0.1700f, 0.1000f, 1.0000f, 0.2500f, 0.0010f, { 0.0000f, 0.0000f, 0.0000f }, 1.2691f, 0.0020f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ROOM \ - { 0.4287f, 1.0000f, 0.3162f, 0.5929f, 1.0000f, 0.4000f, 0.8300f, 1.0000f, 0.1503f, 0.0020f, { 0.0000f, 0.0000f, 0.0000f }, 1.0629f, 0.0030f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_BATHROOM \ - { 0.1715f, 1.0000f, 0.3162f, 0.2512f, 1.0000f, 1.4900f, 0.5400f, 1.0000f, 0.6531f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 3.2734f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_LIVINGROOM \ - { 0.9766f, 1.0000f, 0.3162f, 0.0010f, 1.0000f, 0.5000f, 0.1000f, 1.0000f, 0.2051f, 0.0030f, { 0.0000f, 0.0000f, 0.0000f }, 0.2805f, 0.0040f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_STONEROOM \ - { 1.0000f, 1.0000f, 0.3162f, 0.7079f, 1.0000f, 2.3100f, 0.6400f, 1.0000f, 0.4411f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.1003f, 0.0170f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_AUDITORIUM \ - { 1.0000f, 1.0000f, 0.3162f, 0.5781f, 1.0000f, 4.3200f, 0.5900f, 1.0000f, 0.4032f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.7170f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CONCERTHALL \ - { 1.0000f, 1.0000f, 0.3162f, 0.5623f, 1.0000f, 3.9200f, 0.7000f, 1.0000f, 0.2427f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.9977f, 0.0290f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CAVE \ - { 1.0000f, 1.0000f, 0.3162f, 1.0000f, 1.0000f, 2.9100f, 1.3000f, 1.0000f, 0.5000f, 0.0150f, { 0.0000f, 0.0000f, 0.0000f }, 0.7063f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_ARENA \ - { 1.0000f, 1.0000f, 0.3162f, 0.4477f, 1.0000f, 7.2400f, 0.3300f, 1.0000f, 0.2612f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.0186f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_HANGAR \ - { 1.0000f, 1.0000f, 0.3162f, 0.3162f, 1.0000f, 10.0500f, 0.2300f, 1.0000f, 0.5000f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.2560f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CARPETEDHALLWAY \ - { 0.4287f, 1.0000f, 0.3162f, 0.0100f, 1.0000f, 0.3000f, 0.1000f, 1.0000f, 0.1215f, 0.0020f, { 0.0000f, 0.0000f, 0.0000f }, 0.1531f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_HALLWAY \ - { 0.3645f, 1.0000f, 0.3162f, 0.7079f, 1.0000f, 1.4900f, 0.5900f, 1.0000f, 0.2458f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.6615f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_STONECORRIDOR \ - { 1.0000f, 1.0000f, 0.3162f, 0.7612f, 1.0000f, 2.7000f, 0.7900f, 1.0000f, 0.2472f, 0.0130f, { 0.0000f, 0.0000f, 0.0000f }, 1.5758f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ALLEY \ - { 1.0000f, 0.3000f, 0.3162f, 0.7328f, 1.0000f, 1.4900f, 0.8600f, 1.0000f, 0.2500f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 0.9954f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.1250f, 0.9500f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FOREST \ - { 1.0000f, 0.3000f, 0.3162f, 0.0224f, 1.0000f, 1.4900f, 0.5400f, 1.0000f, 0.0525f, 0.1620f, { 0.0000f, 0.0000f, 0.0000f }, 0.7682f, 0.0880f, { 0.0000f, 0.0000f, 0.0000f }, 0.1250f, 1.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CITY \ - { 1.0000f, 0.5000f, 0.3162f, 0.3981f, 1.0000f, 1.4900f, 0.6700f, 1.0000f, 0.0730f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 0.1427f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_MOUNTAINS \ - { 1.0000f, 0.2700f, 0.3162f, 0.0562f, 1.0000f, 1.4900f, 0.2100f, 1.0000f, 0.0407f, 0.3000f, { 0.0000f, 0.0000f, 0.0000f }, 0.1919f, 0.1000f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_QUARRY \ - { 1.0000f, 1.0000f, 0.3162f, 0.3162f, 1.0000f, 1.4900f, 0.8300f, 1.0000f, 0.0000f, 0.0610f, { 0.0000f, 0.0000f, 0.0000f }, 1.7783f, 0.0250f, { 0.0000f, 0.0000f, 0.0000f }, 0.1250f, 0.7000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PLAIN \ - { 1.0000f, 0.2100f, 0.3162f, 0.1000f, 1.0000f, 1.4900f, 0.5000f, 1.0000f, 0.0585f, 0.1790f, { 0.0000f, 0.0000f, 0.0000f }, 0.1089f, 0.1000f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PARKINGLOT \ - { 1.0000f, 1.0000f, 0.3162f, 1.0000f, 1.0000f, 1.6500f, 1.5000f, 1.0000f, 0.2082f, 0.0080f, { 0.0000f, 0.0000f, 0.0000f }, 0.2652f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_SEWERPIPE \ - { 0.3071f, 0.8000f, 0.3162f, 0.3162f, 1.0000f, 2.8100f, 0.1400f, 1.0000f, 1.6387f, 0.0140f, { 0.0000f, 0.0000f, 0.0000f }, 3.2471f, 0.0210f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_UNDERWATER \ - { 0.3645f, 1.0000f, 0.3162f, 0.0100f, 1.0000f, 1.4900f, 0.1000f, 1.0000f, 0.5963f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 7.0795f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 1.1800f, 0.3480f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DRUGGED \ - { 0.4287f, 0.5000f, 0.3162f, 1.0000f, 1.0000f, 8.3900f, 1.3900f, 1.0000f, 0.8760f, 0.0020f, { 0.0000f, 0.0000f, 0.0000f }, 3.1081f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 1.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_DIZZY \ - { 0.3645f, 0.6000f, 0.3162f, 0.6310f, 1.0000f, 17.2300f, 0.5600f, 1.0000f, 0.1392f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.4937f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.8100f, 0.3100f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_PSYCHOTIC \ - { 0.0625f, 0.5000f, 0.3162f, 0.8404f, 1.0000f, 7.5600f, 0.9100f, 1.0000f, 0.4864f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 2.4378f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 4.0000f, 1.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -/* Castle Presets */ - -#define EFX_REVERB_PRESET_CASTLE_SMALLROOM \ - { 1.0000f, 0.8900f, 0.3162f, 0.3981f, 0.1000f, 1.2200f, 0.8300f, 0.3100f, 0.8913f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 1.9953f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.1380f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_SHORTPASSAGE \ - { 1.0000f, 0.8900f, 0.3162f, 0.3162f, 0.1000f, 2.3200f, 0.8300f, 0.3100f, 0.8913f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0230f, { 0.0000f, 0.0000f, 0.0000f }, 0.1380f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_MEDIUMROOM \ - { 1.0000f, 0.9300f, 0.3162f, 0.2818f, 0.1000f, 2.0400f, 0.8300f, 0.4600f, 0.6310f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 1.5849f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.1550f, 0.0300f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_LARGEROOM \ - { 1.0000f, 0.8200f, 0.3162f, 0.2818f, 0.1259f, 2.5300f, 0.8300f, 0.5000f, 0.4467f, 0.0340f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0160f, { 0.0000f, 0.0000f, 0.0000f }, 0.1850f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_LONGPASSAGE \ - { 1.0000f, 0.8900f, 0.3162f, 0.3981f, 0.1000f, 3.4200f, 0.8300f, 0.3100f, 0.8913f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0230f, { 0.0000f, 0.0000f, 0.0000f }, 0.1380f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_HALL \ - { 1.0000f, 0.8100f, 0.3162f, 0.2818f, 0.1778f, 3.1400f, 0.7900f, 0.6200f, 0.1778f, 0.0560f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0240f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_CUPBOARD \ - { 1.0000f, 0.8900f, 0.3162f, 0.2818f, 0.1000f, 0.6700f, 0.8700f, 0.3100f, 1.4125f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 3.5481f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 0.1380f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CASTLE_COURTYARD \ - { 1.0000f, 0.4200f, 0.3162f, 0.4467f, 0.1995f, 2.1300f, 0.6100f, 0.2300f, 0.2239f, 0.1600f, { 0.0000f, 0.0000f, 0.0000f }, 0.7079f, 0.0360f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.3700f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_CASTLE_ALCOVE \ - { 1.0000f, 0.8900f, 0.3162f, 0.5012f, 0.1000f, 1.6400f, 0.8700f, 0.3100f, 1.0000f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0340f, { 0.0000f, 0.0000f, 0.0000f }, 0.1380f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 5168.6001f, 139.5000f, 0.0000f, 0x1 } - -/* Factory Presets */ - -#define EFX_REVERB_PRESET_FACTORY_SMALLROOM \ - { 0.3645f, 0.8200f, 0.3162f, 0.7943f, 0.5012f, 1.7200f, 0.6500f, 1.3100f, 0.7079f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.7783f, 0.0240f, { 0.0000f, 0.0000f, 0.0000f }, 0.1190f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_SHORTPASSAGE \ - { 0.3645f, 0.6400f, 0.2512f, 0.7943f, 0.5012f, 2.5300f, 0.6500f, 1.3100f, 1.0000f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0380f, { 0.0000f, 0.0000f, 0.0000f }, 0.1350f, 0.2300f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_MEDIUMROOM \ - { 0.4287f, 0.8200f, 0.2512f, 0.7943f, 0.5012f, 2.7600f, 0.6500f, 1.3100f, 0.2818f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0230f, { 0.0000f, 0.0000f, 0.0000f }, 0.1740f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_LARGEROOM \ - { 0.4287f, 0.7500f, 0.2512f, 0.7079f, 0.6310f, 4.2400f, 0.5100f, 1.3100f, 0.1778f, 0.0390f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0230f, { 0.0000f, 0.0000f, 0.0000f }, 0.2310f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_LONGPASSAGE \ - { 0.3645f, 0.6400f, 0.2512f, 0.7943f, 0.5012f, 4.0600f, 0.6500f, 1.3100f, 1.0000f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0370f, { 0.0000f, 0.0000f, 0.0000f }, 0.1350f, 0.2300f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_HALL \ - { 0.4287f, 0.7500f, 0.3162f, 0.7079f, 0.6310f, 7.4300f, 0.5100f, 1.3100f, 0.0631f, 0.0730f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0270f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_CUPBOARD \ - { 0.3071f, 0.6300f, 0.2512f, 0.7943f, 0.5012f, 0.4900f, 0.6500f, 1.3100f, 1.2589f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.9953f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 0.1070f, 0.0700f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_COURTYARD \ - { 0.3071f, 0.5700f, 0.3162f, 0.3162f, 0.6310f, 2.3200f, 0.2900f, 0.5600f, 0.2239f, 0.1400f, { 0.0000f, 0.0000f, 0.0000f }, 0.3981f, 0.0390f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2900f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_FACTORY_ALCOVE \ - { 0.3645f, 0.5900f, 0.2512f, 0.7943f, 0.5012f, 3.1400f, 0.6500f, 1.3100f, 1.4125f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.0000f, 0.0380f, { 0.0000f, 0.0000f, 0.0000f }, 0.1140f, 0.1000f, 0.2500f, 0.0000f, 0.9943f, 3762.6001f, 362.5000f, 0.0000f, 0x1 } - -/* Ice Palace Presets */ - -#define EFX_REVERB_PRESET_ICEPALACE_SMALLROOM \ - { 1.0000f, 0.8400f, 0.3162f, 0.5623f, 0.2818f, 1.5100f, 1.5300f, 0.2700f, 0.8913f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.1640f, 0.1400f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_SHORTPASSAGE \ - { 1.0000f, 0.7500f, 0.3162f, 0.5623f, 0.2818f, 1.7900f, 1.4600f, 0.2800f, 0.5012f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0190f, { 0.0000f, 0.0000f, 0.0000f }, 0.1770f, 0.0900f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_MEDIUMROOM \ - { 1.0000f, 0.8700f, 0.3162f, 0.5623f, 0.4467f, 2.2200f, 1.5300f, 0.3200f, 0.3981f, 0.0390f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0270f, { 0.0000f, 0.0000f, 0.0000f }, 0.1860f, 0.1200f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_LARGEROOM \ - { 1.0000f, 0.8100f, 0.3162f, 0.5623f, 0.4467f, 3.1400f, 1.5300f, 0.3200f, 0.2512f, 0.0390f, { 0.0000f, 0.0000f, 0.0000f }, 1.0000f, 0.0270f, { 0.0000f, 0.0000f, 0.0000f }, 0.2140f, 0.1100f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_LONGPASSAGE \ - { 1.0000f, 0.7700f, 0.3162f, 0.5623f, 0.3981f, 3.0100f, 1.4600f, 0.2800f, 0.7943f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0250f, { 0.0000f, 0.0000f, 0.0000f }, 0.1860f, 0.0400f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_HALL \ - { 1.0000f, 0.7600f, 0.3162f, 0.4467f, 0.5623f, 5.4900f, 1.5300f, 0.3800f, 0.1122f, 0.0540f, { 0.0000f, 0.0000f, 0.0000f }, 0.6310f, 0.0520f, { 0.0000f, 0.0000f, 0.0000f }, 0.2260f, 0.1100f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_CUPBOARD \ - { 1.0000f, 0.8300f, 0.3162f, 0.5012f, 0.2239f, 0.7600f, 1.5300f, 0.2600f, 1.1220f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.9953f, 0.0160f, { 0.0000f, 0.0000f, 0.0000f }, 0.1430f, 0.0800f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_COURTYARD \ - { 1.0000f, 0.5900f, 0.3162f, 0.2818f, 0.3162f, 2.0400f, 1.2000f, 0.3800f, 0.3162f, 0.1730f, { 0.0000f, 0.0000f, 0.0000f }, 0.3162f, 0.0430f, { 0.0000f, 0.0000f, 0.0000f }, 0.2350f, 0.4800f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_ICEPALACE_ALCOVE \ - { 1.0000f, 0.8400f, 0.3162f, 0.5623f, 0.2818f, 2.7600f, 1.4600f, 0.2800f, 1.1220f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.1610f, 0.0900f, 0.2500f, 0.0000f, 0.9943f, 12428.5000f, 99.6000f, 0.0000f, 0x1 } - -/* Space Station Presets */ - -#define EFX_REVERB_PRESET_SPACESTATION_SMALLROOM \ - { 0.2109f, 0.7000f, 0.3162f, 0.7079f, 0.8913f, 1.7200f, 0.8200f, 0.5500f, 0.7943f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0130f, { 0.0000f, 0.0000f, 0.0000f }, 0.1880f, 0.2600f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_SHORTPASSAGE \ - { 0.2109f, 0.8700f, 0.3162f, 0.6310f, 0.8913f, 3.5700f, 0.5000f, 0.5500f, 1.0000f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0160f, { 0.0000f, 0.0000f, 0.0000f }, 0.1720f, 0.2000f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_MEDIUMROOM \ - { 0.2109f, 0.7500f, 0.3162f, 0.6310f, 0.8913f, 3.0100f, 0.5000f, 0.5500f, 0.3981f, 0.0340f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0350f, { 0.0000f, 0.0000f, 0.0000f }, 0.2090f, 0.3100f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_LARGEROOM \ - { 0.3645f, 0.8100f, 0.3162f, 0.6310f, 0.8913f, 3.8900f, 0.3800f, 0.6100f, 0.3162f, 0.0560f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0350f, { 0.0000f, 0.0000f, 0.0000f }, 0.2330f, 0.2800f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_LONGPASSAGE \ - { 0.4287f, 0.8200f, 0.3162f, 0.6310f, 0.8913f, 4.6200f, 0.6200f, 0.5500f, 1.0000f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0310f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2300f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_HALL \ - { 0.4287f, 0.8700f, 0.3162f, 0.6310f, 0.8913f, 7.1100f, 0.3800f, 0.6100f, 0.1778f, 0.1000f, { 0.0000f, 0.0000f, 0.0000f }, 0.6310f, 0.0470f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2500f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_CUPBOARD \ - { 0.1715f, 0.5600f, 0.3162f, 0.7079f, 0.8913f, 0.7900f, 0.8100f, 0.5500f, 1.4125f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.7783f, 0.0180f, { 0.0000f, 0.0000f, 0.0000f }, 0.1810f, 0.3100f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPACESTATION_ALCOVE \ - { 0.2109f, 0.7800f, 0.3162f, 0.7079f, 0.8913f, 1.1600f, 0.8100f, 0.5500f, 1.4125f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 1.0000f, 0.0180f, { 0.0000f, 0.0000f, 0.0000f }, 0.1920f, 0.2100f, 0.2500f, 0.0000f, 0.9943f, 3316.1001f, 458.2000f, 0.0000f, 0x1 } - -/* Wooden Galleon Presets */ - -#define EFX_REVERB_PRESET_WOODEN_SMALLROOM \ - { 1.0000f, 1.0000f, 0.3162f, 0.1122f, 0.3162f, 0.7900f, 0.3200f, 0.8700f, 1.0000f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0290f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_SHORTPASSAGE \ - { 1.0000f, 1.0000f, 0.3162f, 0.1259f, 0.3162f, 1.7500f, 0.5000f, 0.8700f, 0.8913f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 0.6310f, 0.0240f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_MEDIUMROOM \ - { 1.0000f, 1.0000f, 0.3162f, 0.1000f, 0.2818f, 1.4700f, 0.4200f, 0.8200f, 0.8913f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0290f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_LARGEROOM \ - { 1.0000f, 1.0000f, 0.3162f, 0.0891f, 0.2818f, 2.6500f, 0.3300f, 0.8200f, 0.8913f, 0.0660f, { 0.0000f, 0.0000f, 0.0000f }, 0.7943f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_LONGPASSAGE \ - { 1.0000f, 1.0000f, 0.3162f, 0.1000f, 0.3162f, 1.9900f, 0.4000f, 0.7900f, 1.0000f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.4467f, 0.0360f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_HALL \ - { 1.0000f, 1.0000f, 0.3162f, 0.0794f, 0.2818f, 3.4500f, 0.3000f, 0.8200f, 0.8913f, 0.0880f, { 0.0000f, 0.0000f, 0.0000f }, 0.7943f, 0.0630f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_CUPBOARD \ - { 1.0000f, 1.0000f, 0.3162f, 0.1413f, 0.3162f, 0.5600f, 0.4600f, 0.9100f, 1.1220f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0280f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_COURTYARD \ - { 1.0000f, 0.6500f, 0.3162f, 0.0794f, 0.3162f, 1.7900f, 0.3500f, 0.7900f, 0.5623f, 0.1230f, { 0.0000f, 0.0000f, 0.0000f }, 0.1000f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_WOODEN_ALCOVE \ - { 1.0000f, 1.0000f, 0.3162f, 0.1259f, 0.3162f, 1.2200f, 0.6200f, 0.9100f, 1.1220f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 0.7079f, 0.0240f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 4705.0000f, 99.6000f, 0.0000f, 0x1 } - -/* Sports Presets */ - -#define EFX_REVERB_PRESET_SPORT_EMPTYSTADIUM \ - { 1.0000f, 1.0000f, 0.3162f, 0.4467f, 0.7943f, 6.2600f, 0.5100f, 1.1000f, 0.0631f, 0.1830f, { 0.0000f, 0.0000f, 0.0000f }, 0.3981f, 0.0380f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPORT_SQUASHCOURT \ - { 1.0000f, 0.7500f, 0.3162f, 0.3162f, 0.7943f, 2.2200f, 0.9100f, 1.1600f, 0.4467f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 0.7943f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.1260f, 0.1900f, 0.2500f, 0.0000f, 0.9943f, 7176.8999f, 211.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPORT_SMALLSWIMMINGPOOL \ - { 1.0000f, 0.7000f, 0.3162f, 0.7943f, 0.8913f, 2.7600f, 1.2500f, 1.1400f, 0.6310f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.7943f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.1790f, 0.1500f, 0.8950f, 0.1900f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_SPORT_LARGESWIMMINGPOOL \ - { 1.0000f, 0.8200f, 0.3162f, 0.7943f, 1.0000f, 5.4900f, 1.3100f, 1.1400f, 0.4467f, 0.0390f, { 0.0000f, 0.0000f, 0.0000f }, 0.5012f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.2220f, 0.5500f, 1.1590f, 0.2100f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_SPORT_GYMNASIUM \ - { 1.0000f, 0.8100f, 0.3162f, 0.4467f, 0.8913f, 3.1400f, 1.0600f, 1.3500f, 0.3981f, 0.0290f, { 0.0000f, 0.0000f, 0.0000f }, 0.5623f, 0.0450f, { 0.0000f, 0.0000f, 0.0000f }, 0.1460f, 0.1400f, 0.2500f, 0.0000f, 0.9943f, 7176.8999f, 211.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPORT_FULLSTADIUM \ - { 1.0000f, 1.0000f, 0.3162f, 0.0708f, 0.7943f, 5.2500f, 0.1700f, 0.8000f, 0.1000f, 0.1880f, { 0.0000f, 0.0000f, 0.0000f }, 0.2818f, 0.0380f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SPORT_STADIUMTANNOY \ - { 1.0000f, 0.7800f, 0.3162f, 0.5623f, 0.5012f, 2.5300f, 0.8800f, 0.6800f, 0.2818f, 0.2300f, { 0.0000f, 0.0000f, 0.0000f }, 0.5012f, 0.0630f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -/* Prefab Presets */ - -#define EFX_REVERB_PRESET_PREFAB_WORKSHOP \ - { 0.4287f, 1.0000f, 0.3162f, 0.1413f, 0.3981f, 0.7600f, 1.0000f, 1.0000f, 1.0000f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_PREFAB_SCHOOLROOM \ - { 0.4022f, 0.6900f, 0.3162f, 0.6310f, 0.5012f, 0.9800f, 0.4500f, 0.1800f, 1.4125f, 0.0170f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0150f, { 0.0000f, 0.0000f, 0.0000f }, 0.0950f, 0.1400f, 0.2500f, 0.0000f, 0.9943f, 7176.8999f, 211.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PREFAB_PRACTISEROOM \ - { 0.4022f, 0.8700f, 0.3162f, 0.3981f, 0.5012f, 1.1200f, 0.5600f, 0.1800f, 1.2589f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0110f, { 0.0000f, 0.0000f, 0.0000f }, 0.0950f, 0.1400f, 0.2500f, 0.0000f, 0.9943f, 7176.8999f, 211.2000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PREFAB_OUTHOUSE \ - { 1.0000f, 0.8200f, 0.3162f, 0.1122f, 0.1585f, 1.3800f, 0.3800f, 0.3500f, 0.8913f, 0.0240f, { 0.0000f, 0.0000f, -0.0000f }, 0.6310f, 0.0440f, { 0.0000f, 0.0000f, 0.0000f }, 0.1210f, 0.1700f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 107.5000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_PREFAB_CARAVAN \ - { 1.0000f, 1.0000f, 0.3162f, 0.0891f, 0.1259f, 0.4300f, 1.5000f, 1.0000f, 1.0000f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 1.9953f, 0.0120f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -/* Dome and Pipe Presets */ - -#define EFX_REVERB_PRESET_DOME_TOMB \ - { 1.0000f, 0.7900f, 0.3162f, 0.3548f, 0.2239f, 4.1800f, 0.2100f, 0.1000f, 0.3868f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 1.6788f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 0.1770f, 0.1900f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_PIPE_SMALL \ - { 1.0000f, 1.0000f, 0.3162f, 0.3548f, 0.2239f, 5.0400f, 0.1000f, 0.1000f, 0.5012f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 2.5119f, 0.0150f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DOME_SAINTPAULS \ - { 1.0000f, 0.8700f, 0.3162f, 0.3548f, 0.2239f, 10.4800f, 0.1900f, 0.1000f, 0.1778f, 0.0900f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0420f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.1200f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PIPE_LONGTHIN \ - { 0.2560f, 0.9100f, 0.3162f, 0.4467f, 0.2818f, 9.2100f, 0.1800f, 0.1000f, 0.7079f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 0.7079f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_PIPE_LARGE \ - { 1.0000f, 1.0000f, 0.3162f, 0.3548f, 0.2239f, 8.4500f, 0.1000f, 0.1000f, 0.3981f, 0.0460f, { 0.0000f, 0.0000f, 0.0000f }, 1.5849f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_PIPE_RESONANT \ - { 0.1373f, 0.9100f, 0.3162f, 0.4467f, 0.2818f, 6.8100f, 0.1800f, 0.1000f, 0.7079f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.0000f, 0.0220f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 20.0000f, 0.0000f, 0x0 } - -/* Outdoors Presets */ - -#define EFX_REVERB_PRESET_OUTDOORS_BACKYARD \ - { 1.0000f, 0.4500f, 0.3162f, 0.2512f, 0.5012f, 1.1200f, 0.3400f, 0.4600f, 0.4467f, 0.0690f, { 0.0000f, 0.0000f, -0.0000f }, 0.7079f, 0.0230f, { 0.0000f, 0.0000f, 0.0000f }, 0.2180f, 0.3400f, 0.2500f, 0.0000f, 0.9943f, 4399.1001f, 242.9000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_OUTDOORS_ROLLINGPLAINS \ - { 1.0000f, 0.0000f, 0.3162f, 0.0112f, 0.6310f, 2.1300f, 0.2100f, 0.4600f, 0.1778f, 0.3000f, { 0.0000f, 0.0000f, -0.0000f }, 0.4467f, 0.0190f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.2500f, 0.0000f, 0.9943f, 4399.1001f, 242.9000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_OUTDOORS_DEEPCANYON \ - { 1.0000f, 0.7400f, 0.3162f, 0.1778f, 0.6310f, 3.8900f, 0.2100f, 0.4600f, 0.3162f, 0.2230f, { 0.0000f, 0.0000f, -0.0000f }, 0.3548f, 0.0190f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.2500f, 0.0000f, 0.9943f, 4399.1001f, 242.9000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_OUTDOORS_CREEK \ - { 1.0000f, 0.3500f, 0.3162f, 0.1778f, 0.5012f, 2.1300f, 0.2100f, 0.4600f, 0.3981f, 0.1150f, { 0.0000f, 0.0000f, -0.0000f }, 0.1995f, 0.0310f, { 0.0000f, 0.0000f, 0.0000f }, 0.2180f, 0.3400f, 0.2500f, 0.0000f, 0.9943f, 4399.1001f, 242.9000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_OUTDOORS_VALLEY \ - { 1.0000f, 0.2800f, 0.3162f, 0.0282f, 0.1585f, 2.8800f, 0.2600f, 0.3500f, 0.1413f, 0.2630f, { 0.0000f, 0.0000f, -0.0000f }, 0.3981f, 0.1000f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.3400f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 107.5000f, 0.0000f, 0x0 } - -/* Mood Presets */ - -#define EFX_REVERB_PRESET_MOOD_HEAVEN \ - { 1.0000f, 0.9400f, 0.3162f, 0.7943f, 0.4467f, 5.0400f, 1.1200f, 0.5600f, 0.2427f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0290f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0800f, 2.7420f, 0.0500f, 0.9977f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_MOOD_HELL \ - { 1.0000f, 0.5700f, 0.3162f, 0.3548f, 0.4467f, 3.5700f, 0.4900f, 2.0000f, 0.0000f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.1100f, 0.0400f, 2.1090f, 0.5200f, 0.9943f, 5000.0000f, 139.5000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_MOOD_MEMORY \ - { 1.0000f, 0.8500f, 0.3162f, 0.6310f, 0.3548f, 4.0600f, 0.8200f, 0.5600f, 0.0398f, 0.0000f, { 0.0000f, 0.0000f, 0.0000f }, 1.1220f, 0.0000f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.4740f, 0.4500f, 0.9886f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -/* Driving Presets */ - -#define EFX_REVERB_PRESET_DRIVING_COMMENTATOR \ - { 1.0000f, 0.0000f, 3.1623f, 0.5623f, 0.5012f, 2.4200f, 0.8800f, 0.6800f, 0.1995f, 0.0930f, { 0.0000f, 0.0000f, 0.0000f }, 0.2512f, 0.0170f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 1.0000f, 0.2500f, 0.0000f, 0.9886f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DRIVING_PITGARAGE \ - { 0.4287f, 0.5900f, 0.3162f, 0.7079f, 0.5623f, 1.7200f, 0.9300f, 0.8700f, 0.5623f, 0.0000f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0160f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.1100f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_DRIVING_INCAR_RACER \ - { 0.0832f, 0.8000f, 0.3162f, 1.0000f, 0.7943f, 0.1700f, 2.0000f, 0.4100f, 1.7783f, 0.0070f, { 0.0000f, 0.0000f, 0.0000f }, 0.7079f, 0.0150f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 10268.2002f, 251.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DRIVING_INCAR_SPORTS \ - { 0.0832f, 0.8000f, 0.3162f, 0.6310f, 1.0000f, 0.1700f, 0.7500f, 0.4100f, 1.0000f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 0.5623f, 0.0000f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 10268.2002f, 251.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DRIVING_INCAR_LUXURY \ - { 0.2560f, 1.0000f, 0.3162f, 0.1000f, 0.5012f, 0.1300f, 0.4100f, 0.4600f, 0.7943f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 1.5849f, 0.0100f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 10268.2002f, 251.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_DRIVING_FULLGRANDSTAND \ - { 1.0000f, 1.0000f, 0.3162f, 0.2818f, 0.6310f, 3.0100f, 1.3700f, 1.2800f, 0.3548f, 0.0900f, { 0.0000f, 0.0000f, 0.0000f }, 0.1778f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 10420.2002f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_DRIVING_EMPTYGRANDSTAND \ - { 1.0000f, 1.0000f, 0.3162f, 1.0000f, 0.7943f, 4.6200f, 1.7500f, 1.4000f, 0.2082f, 0.0900f, { 0.0000f, 0.0000f, 0.0000f }, 0.2512f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.0000f, 0.9943f, 10420.2002f, 250.0000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_DRIVING_TUNNEL \ - { 1.0000f, 0.8100f, 0.3162f, 0.3981f, 0.8913f, 3.4200f, 0.9400f, 1.3100f, 0.7079f, 0.0510f, { 0.0000f, 0.0000f, 0.0000f }, 0.7079f, 0.0470f, { 0.0000f, 0.0000f, 0.0000f }, 0.2140f, 0.0500f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 155.3000f, 0.0000f, 0x1 } - -/* City Presets */ - -#define EFX_REVERB_PRESET_CITY_STREETS \ - { 1.0000f, 0.7800f, 0.3162f, 0.7079f, 0.8913f, 1.7900f, 1.1200f, 0.9100f, 0.2818f, 0.0460f, { 0.0000f, 0.0000f, 0.0000f }, 0.1995f, 0.0280f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2000f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CITY_SUBWAY \ - { 1.0000f, 0.7400f, 0.3162f, 0.7079f, 0.8913f, 3.0100f, 1.2300f, 0.9100f, 0.7079f, 0.0460f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0280f, { 0.0000f, 0.0000f, 0.0000f }, 0.1250f, 0.2100f, 0.2500f, 0.0000f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CITY_MUSEUM \ - { 1.0000f, 0.8200f, 0.3162f, 0.1778f, 0.1778f, 3.2800f, 1.4000f, 0.5700f, 0.2512f, 0.0390f, { 0.0000f, 0.0000f, -0.0000f }, 0.8913f, 0.0340f, { 0.0000f, 0.0000f, 0.0000f }, 0.1300f, 0.1700f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 107.5000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_CITY_LIBRARY \ - { 1.0000f, 0.8200f, 0.3162f, 0.2818f, 0.0891f, 2.7600f, 0.8900f, 0.4100f, 0.3548f, 0.0290f, { 0.0000f, 0.0000f, -0.0000f }, 0.8913f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 0.1300f, 0.1700f, 0.2500f, 0.0000f, 0.9943f, 2854.3999f, 107.5000f, 0.0000f, 0x0 } - -#define EFX_REVERB_PRESET_CITY_UNDERPASS \ - { 1.0000f, 0.8200f, 0.3162f, 0.4467f, 0.8913f, 3.5700f, 1.1200f, 0.9100f, 0.3981f, 0.0590f, { 0.0000f, 0.0000f, 0.0000f }, 0.8913f, 0.0370f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.1400f, 0.2500f, 0.0000f, 0.9920f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CITY_ABANDONED \ - { 1.0000f, 0.6900f, 0.3162f, 0.7943f, 0.8913f, 3.2800f, 1.1700f, 0.9100f, 0.4467f, 0.0440f, { 0.0000f, 0.0000f, 0.0000f }, 0.2818f, 0.0240f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.2000f, 0.2500f, 0.0000f, 0.9966f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -/* Misc. Presets */ - -#define EFX_REVERB_PRESET_DUSTYROOM \ - { 0.3645f, 0.5600f, 0.3162f, 0.7943f, 0.7079f, 1.7900f, 0.3800f, 0.2100f, 0.5012f, 0.0020f, { 0.0000f, 0.0000f, 0.0000f }, 1.2589f, 0.0060f, { 0.0000f, 0.0000f, 0.0000f }, 0.2020f, 0.0500f, 0.2500f, 0.0000f, 0.9886f, 13046.0000f, 163.3000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_CHAPEL \ - { 1.0000f, 0.8400f, 0.3162f, 0.5623f, 1.0000f, 4.6200f, 0.6400f, 1.2300f, 0.4467f, 0.0320f, { 0.0000f, 0.0000f, 0.0000f }, 0.7943f, 0.0490f, { 0.0000f, 0.0000f, 0.0000f }, 0.2500f, 0.0000f, 0.2500f, 0.1100f, 0.9943f, 5000.0000f, 250.0000f, 0.0000f, 0x1 } - -#define EFX_REVERB_PRESET_SMALLWATERROOM \ - { 1.0000f, 0.7000f, 0.3162f, 0.4477f, 1.0000f, 1.5100f, 1.2500f, 1.1400f, 0.8913f, 0.0200f, { 0.0000f, 0.0000f, 0.0000f }, 1.4125f, 0.0300f, { 0.0000f, 0.0000f, 0.0000f }, 0.1790f, 0.1500f, 0.8950f, 0.1900f, 0.9920f, 5000.0000f, 250.0000f, 0.0000f, 0x0 } - -#endif /* EFX_PRESETS_H */ diff --git a/libs/openal-soft-1.15.1/include/AL/efx.h b/libs/openal-soft-1.15.1/include/AL/efx.h deleted file mode 100755 index 5776698..0000000 --- a/libs/openal-soft-1.15.1/include/AL/efx.h +++ /dev/null @@ -1,761 +0,0 @@ -#ifndef AL_EFX_H -#define AL_EFX_H - - -#include "alc.h" -#include "al.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define ALC_EXT_EFX_NAME "ALC_EXT_EFX" - -#define ALC_EFX_MAJOR_VERSION 0x20001 -#define ALC_EFX_MINOR_VERSION 0x20002 -#define ALC_MAX_AUXILIARY_SENDS 0x20003 - - -/* Listener properties. */ -#define AL_METERS_PER_UNIT 0x20004 - -/* Source properties. */ -#define AL_DIRECT_FILTER 0x20005 -#define AL_AUXILIARY_SEND_FILTER 0x20006 -#define AL_AIR_ABSORPTION_FACTOR 0x20007 -#define AL_ROOM_ROLLOFF_FACTOR 0x20008 -#define AL_CONE_OUTER_GAINHF 0x20009 -#define AL_DIRECT_FILTER_GAINHF_AUTO 0x2000A -#define AL_AUXILIARY_SEND_FILTER_GAIN_AUTO 0x2000B -#define AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO 0x2000C - - -/* Effect properties. */ - -/* Reverb effect parameters */ -#define AL_REVERB_DENSITY 0x0001 -#define AL_REVERB_DIFFUSION 0x0002 -#define AL_REVERB_GAIN 0x0003 -#define AL_REVERB_GAINHF 0x0004 -#define AL_REVERB_DECAY_TIME 0x0005 -#define AL_REVERB_DECAY_HFRATIO 0x0006 -#define AL_REVERB_REFLECTIONS_GAIN 0x0007 -#define AL_REVERB_REFLECTIONS_DELAY 0x0008 -#define AL_REVERB_LATE_REVERB_GAIN 0x0009 -#define AL_REVERB_LATE_REVERB_DELAY 0x000A -#define AL_REVERB_AIR_ABSORPTION_GAINHF 0x000B -#define AL_REVERB_ROOM_ROLLOFF_FACTOR 0x000C -#define AL_REVERB_DECAY_HFLIMIT 0x000D - -/* EAX Reverb effect parameters */ -#define AL_EAXREVERB_DENSITY 0x0001 -#define AL_EAXREVERB_DIFFUSION 0x0002 -#define AL_EAXREVERB_GAIN 0x0003 -#define AL_EAXREVERB_GAINHF 0x0004 -#define AL_EAXREVERB_GAINLF 0x0005 -#define AL_EAXREVERB_DECAY_TIME 0x0006 -#define AL_EAXREVERB_DECAY_HFRATIO 0x0007 -#define AL_EAXREVERB_DECAY_LFRATIO 0x0008 -#define AL_EAXREVERB_REFLECTIONS_GAIN 0x0009 -#define AL_EAXREVERB_REFLECTIONS_DELAY 0x000A -#define AL_EAXREVERB_REFLECTIONS_PAN 0x000B -#define AL_EAXREVERB_LATE_REVERB_GAIN 0x000C -#define AL_EAXREVERB_LATE_REVERB_DELAY 0x000D -#define AL_EAXREVERB_LATE_REVERB_PAN 0x000E -#define AL_EAXREVERB_ECHO_TIME 0x000F -#define AL_EAXREVERB_ECHO_DEPTH 0x0010 -#define AL_EAXREVERB_MODULATION_TIME 0x0011 -#define AL_EAXREVERB_MODULATION_DEPTH 0x0012 -#define AL_EAXREVERB_AIR_ABSORPTION_GAINHF 0x0013 -#define AL_EAXREVERB_HFREFERENCE 0x0014 -#define AL_EAXREVERB_LFREFERENCE 0x0015 -#define AL_EAXREVERB_ROOM_ROLLOFF_FACTOR 0x0016 -#define AL_EAXREVERB_DECAY_HFLIMIT 0x0017 - -/* Chorus effect parameters */ -#define AL_CHORUS_WAVEFORM 0x0001 -#define AL_CHORUS_PHASE 0x0002 -#define AL_CHORUS_RATE 0x0003 -#define AL_CHORUS_DEPTH 0x0004 -#define AL_CHORUS_FEEDBACK 0x0005 -#define AL_CHORUS_DELAY 0x0006 - -/* Distortion effect parameters */ -#define AL_DISTORTION_EDGE 0x0001 -#define AL_DISTORTION_GAIN 0x0002 -#define AL_DISTORTION_LOWPASS_CUTOFF 0x0003 -#define AL_DISTORTION_EQCENTER 0x0004 -#define AL_DISTORTION_EQBANDWIDTH 0x0005 - -/* Echo effect parameters */ -#define AL_ECHO_DELAY 0x0001 -#define AL_ECHO_LRDELAY 0x0002 -#define AL_ECHO_DAMPING 0x0003 -#define AL_ECHO_FEEDBACK 0x0004 -#define AL_ECHO_SPREAD 0x0005 - -/* Flanger effect parameters */ -#define AL_FLANGER_WAVEFORM 0x0001 -#define AL_FLANGER_PHASE 0x0002 -#define AL_FLANGER_RATE 0x0003 -#define AL_FLANGER_DEPTH 0x0004 -#define AL_FLANGER_FEEDBACK 0x0005 -#define AL_FLANGER_DELAY 0x0006 - -/* Frequency shifter effect parameters */ -#define AL_FREQUENCY_SHIFTER_FREQUENCY 0x0001 -#define AL_FREQUENCY_SHIFTER_LEFT_DIRECTION 0x0002 -#define AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION 0x0003 - -/* Vocal morpher effect parameters */ -#define AL_VOCAL_MORPHER_PHONEMEA 0x0001 -#define AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING 0x0002 -#define AL_VOCAL_MORPHER_PHONEMEB 0x0003 -#define AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING 0x0004 -#define AL_VOCAL_MORPHER_WAVEFORM 0x0005 -#define AL_VOCAL_MORPHER_RATE 0x0006 - -/* Pitchshifter effect parameters */ -#define AL_PITCH_SHIFTER_COARSE_TUNE 0x0001 -#define AL_PITCH_SHIFTER_FINE_TUNE 0x0002 - -/* Ringmodulator effect parameters */ -#define AL_RING_MODULATOR_FREQUENCY 0x0001 -#define AL_RING_MODULATOR_HIGHPASS_CUTOFF 0x0002 -#define AL_RING_MODULATOR_WAVEFORM 0x0003 - -/* Autowah effect parameters */ -#define AL_AUTOWAH_ATTACK_TIME 0x0001 -#define AL_AUTOWAH_RELEASE_TIME 0x0002 -#define AL_AUTOWAH_RESONANCE 0x0003 -#define AL_AUTOWAH_PEAK_GAIN 0x0004 - -/* Compressor effect parameters */ -#define AL_COMPRESSOR_ONOFF 0x0001 - -/* Equalizer effect parameters */ -#define AL_EQUALIZER_LOW_GAIN 0x0001 -#define AL_EQUALIZER_LOW_CUTOFF 0x0002 -#define AL_EQUALIZER_MID1_GAIN 0x0003 -#define AL_EQUALIZER_MID1_CENTER 0x0004 -#define AL_EQUALIZER_MID1_WIDTH 0x0005 -#define AL_EQUALIZER_MID2_GAIN 0x0006 -#define AL_EQUALIZER_MID2_CENTER 0x0007 -#define AL_EQUALIZER_MID2_WIDTH 0x0008 -#define AL_EQUALIZER_HIGH_GAIN 0x0009 -#define AL_EQUALIZER_HIGH_CUTOFF 0x000A - -/* Effect type */ -#define AL_EFFECT_FIRST_PARAMETER 0x0000 -#define AL_EFFECT_LAST_PARAMETER 0x8000 -#define AL_EFFECT_TYPE 0x8001 - -/* Effect types, used with the AL_EFFECT_TYPE property */ -#define AL_EFFECT_NULL 0x0000 -#define AL_EFFECT_REVERB 0x0001 -#define AL_EFFECT_CHORUS 0x0002 -#define AL_EFFECT_DISTORTION 0x0003 -#define AL_EFFECT_ECHO 0x0004 -#define AL_EFFECT_FLANGER 0x0005 -#define AL_EFFECT_FREQUENCY_SHIFTER 0x0006 -#define AL_EFFECT_VOCAL_MORPHER 0x0007 -#define AL_EFFECT_PITCH_SHIFTER 0x0008 -#define AL_EFFECT_RING_MODULATOR 0x0009 -#define AL_EFFECT_AUTOWAH 0x000A -#define AL_EFFECT_COMPRESSOR 0x000B -#define AL_EFFECT_EQUALIZER 0x000C -#define AL_EFFECT_EAXREVERB 0x8000 - -/* Auxiliary Effect Slot properties. */ -#define AL_EFFECTSLOT_EFFECT 0x0001 -#define AL_EFFECTSLOT_GAIN 0x0002 -#define AL_EFFECTSLOT_AUXILIARY_SEND_AUTO 0x0003 - -/* NULL Auxiliary Slot ID to disable a source send. */ -#define AL_EFFECTSLOT_NULL 0x0000 - - -/* Filter properties. */ - -/* Lowpass filter parameters */ -#define AL_LOWPASS_GAIN 0x0001 -#define AL_LOWPASS_GAINHF 0x0002 - -/* Highpass filter parameters */ -#define AL_HIGHPASS_GAIN 0x0001 -#define AL_HIGHPASS_GAINLF 0x0002 - -/* Bandpass filter parameters */ -#define AL_BANDPASS_GAIN 0x0001 -#define AL_BANDPASS_GAINLF 0x0002 -#define AL_BANDPASS_GAINHF 0x0003 - -/* Filter type */ -#define AL_FILTER_FIRST_PARAMETER 0x0000 -#define AL_FILTER_LAST_PARAMETER 0x8000 -#define AL_FILTER_TYPE 0x8001 - -/* Filter types, used with the AL_FILTER_TYPE property */ -#define AL_FILTER_NULL 0x0000 -#define AL_FILTER_LOWPASS 0x0001 -#define AL_FILTER_HIGHPASS 0x0002 -#define AL_FILTER_BANDPASS 0x0003 - - -/* Effect object function types. */ -typedef void (AL_APIENTRY *LPALGENEFFECTS)(ALsizei, ALuint*); -typedef void (AL_APIENTRY *LPALDELETEEFFECTS)(ALsizei, const ALuint*); -typedef ALboolean (AL_APIENTRY *LPALISEFFECT)(ALuint); -typedef void (AL_APIENTRY *LPALEFFECTI)(ALuint, ALenum, ALint); -typedef void (AL_APIENTRY *LPALEFFECTIV)(ALuint, ALenum, const ALint*); -typedef void (AL_APIENTRY *LPALEFFECTF)(ALuint, ALenum, ALfloat); -typedef void (AL_APIENTRY *LPALEFFECTFV)(ALuint, ALenum, const ALfloat*); -typedef void (AL_APIENTRY *LPALGETEFFECTI)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETEFFECTIV)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETEFFECTF)(ALuint, ALenum, ALfloat*); -typedef void (AL_APIENTRY *LPALGETEFFECTFV)(ALuint, ALenum, ALfloat*); - -/* Filter object function types. */ -typedef void (AL_APIENTRY *LPALGENFILTERS)(ALsizei, ALuint*); -typedef void (AL_APIENTRY *LPALDELETEFILTERS)(ALsizei, const ALuint*); -typedef ALboolean (AL_APIENTRY *LPALISFILTER)(ALuint); -typedef void (AL_APIENTRY *LPALFILTERI)(ALuint, ALenum, ALint); -typedef void (AL_APIENTRY *LPALFILTERIV)(ALuint, ALenum, const ALint*); -typedef void (AL_APIENTRY *LPALFILTERF)(ALuint, ALenum, ALfloat); -typedef void (AL_APIENTRY *LPALFILTERFV)(ALuint, ALenum, const ALfloat*); -typedef void (AL_APIENTRY *LPALGETFILTERI)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETFILTERIV)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETFILTERF)(ALuint, ALenum, ALfloat*); -typedef void (AL_APIENTRY *LPALGETFILTERFV)(ALuint, ALenum, ALfloat*); - -/* Auxiliary Effect Slot object function types. */ -typedef void (AL_APIENTRY *LPALGENAUXILIARYEFFECTSLOTS)(ALsizei, ALuint*); -typedef void (AL_APIENTRY *LPALDELETEAUXILIARYEFFECTSLOTS)(ALsizei, const ALuint*); -typedef ALboolean (AL_APIENTRY *LPALISAUXILIARYEFFECTSLOT)(ALuint); -typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTI)(ALuint, ALenum, ALint); -typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTIV)(ALuint, ALenum, const ALint*); -typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTF)(ALuint, ALenum, ALfloat); -typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTFV)(ALuint, ALenum, const ALfloat*); -typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTI)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTIV)(ALuint, ALenum, ALint*); -typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTF)(ALuint, ALenum, ALfloat*); -typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTFV)(ALuint, ALenum, ALfloat*); - -#ifdef AL_ALEXT_PROTOTYPES -AL_API ALvoid AL_APIENTRY alGenEffects(ALsizei n, ALuint *effects); -AL_API ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, const ALuint *effects); -AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect); -AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue); -AL_API ALvoid AL_APIENTRY alEffectiv(ALuint effect, ALenum param, const ALint *piValues); -AL_API ALvoid AL_APIENTRY alEffectf(ALuint effect, ALenum param, ALfloat flValue); -AL_API ALvoid AL_APIENTRY alEffectfv(ALuint effect, ALenum param, const ALfloat *pflValues); -AL_API ALvoid AL_APIENTRY alGetEffecti(ALuint effect, ALenum param, ALint *piValue); -AL_API ALvoid AL_APIENTRY alGetEffectiv(ALuint effect, ALenum param, ALint *piValues); -AL_API ALvoid AL_APIENTRY alGetEffectf(ALuint effect, ALenum param, ALfloat *pflValue); -AL_API ALvoid AL_APIENTRY alGetEffectfv(ALuint effect, ALenum param, ALfloat *pflValues); - -AL_API ALvoid AL_APIENTRY alGenFilters(ALsizei n, ALuint *filters); -AL_API ALvoid AL_APIENTRY alDeleteFilters(ALsizei n, const ALuint *filters); -AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter); -AL_API ALvoid AL_APIENTRY alFilteri(ALuint filter, ALenum param, ALint iValue); -AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, const ALint *piValues); -AL_API ALvoid AL_APIENTRY alFilterf(ALuint filter, ALenum param, ALfloat flValue); -AL_API ALvoid AL_APIENTRY alFilterfv(ALuint filter, ALenum param, const ALfloat *pflValues); -AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piValue); -AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piValues); -AL_API ALvoid AL_APIENTRY alGetFilterf(ALuint filter, ALenum param, ALfloat *pflValue); -AL_API ALvoid AL_APIENTRY alGetFilterfv(ALuint filter, ALenum param, ALfloat *pflValues); - -AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots); -AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, const ALuint *effectslots); -AL_API ALboolean AL_APIENTRY alIsAuxiliaryEffectSlot(ALuint effectslot); -AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param, ALint iValue); -AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotiv(ALuint effectslot, ALenum param, const ALint *piValues); -AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotf(ALuint effectslot, ALenum param, ALfloat flValue); -AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotfv(ALuint effectslot, ALenum param, const ALfloat *pflValues); -AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSloti(ALuint effectslot, ALenum param, ALint *piValue); -AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotiv(ALuint effectslot, ALenum param, ALint *piValues); -AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotf(ALuint effectslot, ALenum param, ALfloat *pflValue); -AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotfv(ALuint effectslot, ALenum param, ALfloat *pflValues); -#endif - -/* Filter ranges and defaults. */ - -/* Lowpass filter */ -#define AL_LOWPASS_MIN_GAIN (0.0f) -#define AL_LOWPASS_MAX_GAIN (1.0f) -#define AL_LOWPASS_DEFAULT_GAIN (1.0f) - -#define AL_LOWPASS_MIN_GAINHF (0.0f) -#define AL_LOWPASS_MAX_GAINHF (1.0f) -#define AL_LOWPASS_DEFAULT_GAINHF (1.0f) - -/* Highpass filter */ -#define AL_HIGHPASS_MIN_GAIN (0.0f) -#define AL_HIGHPASS_MAX_GAIN (1.0f) -#define AL_HIGHPASS_DEFAULT_GAIN (1.0f) - -#define AL_HIGHPASS_MIN_GAINLF (0.0f) -#define AL_HIGHPASS_MAX_GAINLF (1.0f) -#define AL_HIGHPASS_DEFAULT_GAINLF (1.0f) - -/* Bandpass filter */ -#define AL_BANDPASS_MIN_GAIN (0.0f) -#define AL_BANDPASS_MAX_GAIN (1.0f) -#define AL_BANDPASS_DEFAULT_GAIN (1.0f) - -#define AL_BANDPASS_MIN_GAINHF (0.0f) -#define AL_BANDPASS_MAX_GAINHF (1.0f) -#define AL_BANDPASS_DEFAULT_GAINHF (1.0f) - -#define AL_BANDPASS_MIN_GAINLF (0.0f) -#define AL_BANDPASS_MAX_GAINLF (1.0f) -#define AL_BANDPASS_DEFAULT_GAINLF (1.0f) - - -/* Effect parameter ranges and defaults. */ - -/* Standard reverb effect */ -#define AL_REVERB_MIN_DENSITY (0.0f) -#define AL_REVERB_MAX_DENSITY (1.0f) -#define AL_REVERB_DEFAULT_DENSITY (1.0f) - -#define AL_REVERB_MIN_DIFFUSION (0.0f) -#define AL_REVERB_MAX_DIFFUSION (1.0f) -#define AL_REVERB_DEFAULT_DIFFUSION (1.0f) - -#define AL_REVERB_MIN_GAIN (0.0f) -#define AL_REVERB_MAX_GAIN (1.0f) -#define AL_REVERB_DEFAULT_GAIN (0.32f) - -#define AL_REVERB_MIN_GAINHF (0.0f) -#define AL_REVERB_MAX_GAINHF (1.0f) -#define AL_REVERB_DEFAULT_GAINHF (0.89f) - -#define AL_REVERB_MIN_DECAY_TIME (0.1f) -#define AL_REVERB_MAX_DECAY_TIME (20.0f) -#define AL_REVERB_DEFAULT_DECAY_TIME (1.49f) - -#define AL_REVERB_MIN_DECAY_HFRATIO (0.1f) -#define AL_REVERB_MAX_DECAY_HFRATIO (2.0f) -#define AL_REVERB_DEFAULT_DECAY_HFRATIO (0.83f) - -#define AL_REVERB_MIN_REFLECTIONS_GAIN (0.0f) -#define AL_REVERB_MAX_REFLECTIONS_GAIN (3.16f) -#define AL_REVERB_DEFAULT_REFLECTIONS_GAIN (0.05f) - -#define AL_REVERB_MIN_REFLECTIONS_DELAY (0.0f) -#define AL_REVERB_MAX_REFLECTIONS_DELAY (0.3f) -#define AL_REVERB_DEFAULT_REFLECTIONS_DELAY (0.007f) - -#define AL_REVERB_MIN_LATE_REVERB_GAIN (0.0f) -#define AL_REVERB_MAX_LATE_REVERB_GAIN (10.0f) -#define AL_REVERB_DEFAULT_LATE_REVERB_GAIN (1.26f) - -#define AL_REVERB_MIN_LATE_REVERB_DELAY (0.0f) -#define AL_REVERB_MAX_LATE_REVERB_DELAY (0.1f) -#define AL_REVERB_DEFAULT_LATE_REVERB_DELAY (0.011f) - -#define AL_REVERB_MIN_AIR_ABSORPTION_GAINHF (0.892f) -#define AL_REVERB_MAX_AIR_ABSORPTION_GAINHF (1.0f) -#define AL_REVERB_DEFAULT_AIR_ABSORPTION_GAINHF (0.994f) - -#define AL_REVERB_MIN_ROOM_ROLLOFF_FACTOR (0.0f) -#define AL_REVERB_MAX_ROOM_ROLLOFF_FACTOR (10.0f) -#define AL_REVERB_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f) - -#define AL_REVERB_MIN_DECAY_HFLIMIT AL_FALSE -#define AL_REVERB_MAX_DECAY_HFLIMIT AL_TRUE -#define AL_REVERB_DEFAULT_DECAY_HFLIMIT AL_TRUE - -/* EAX reverb effect */ -#define AL_EAXREVERB_MIN_DENSITY (0.0f) -#define AL_EAXREVERB_MAX_DENSITY (1.0f) -#define AL_EAXREVERB_DEFAULT_DENSITY (1.0f) - -#define AL_EAXREVERB_MIN_DIFFUSION (0.0f) -#define AL_EAXREVERB_MAX_DIFFUSION (1.0f) -#define AL_EAXREVERB_DEFAULT_DIFFUSION (1.0f) - -#define AL_EAXREVERB_MIN_GAIN (0.0f) -#define AL_EAXREVERB_MAX_GAIN (1.0f) -#define AL_EAXREVERB_DEFAULT_GAIN (0.32f) - -#define AL_EAXREVERB_MIN_GAINHF (0.0f) -#define AL_EAXREVERB_MAX_GAINHF (1.0f) -#define AL_EAXREVERB_DEFAULT_GAINHF (0.89f) - -#define AL_EAXREVERB_MIN_GAINLF (0.0f) -#define AL_EAXREVERB_MAX_GAINLF (1.0f) -#define AL_EAXREVERB_DEFAULT_GAINLF (1.0f) - -#define AL_EAXREVERB_MIN_DECAY_TIME (0.1f) -#define AL_EAXREVERB_MAX_DECAY_TIME (20.0f) -#define AL_EAXREVERB_DEFAULT_DECAY_TIME (1.49f) - -#define AL_EAXREVERB_MIN_DECAY_HFRATIO (0.1f) -#define AL_EAXREVERB_MAX_DECAY_HFRATIO (2.0f) -#define AL_EAXREVERB_DEFAULT_DECAY_HFRATIO (0.83f) - -#define AL_EAXREVERB_MIN_DECAY_LFRATIO (0.1f) -#define AL_EAXREVERB_MAX_DECAY_LFRATIO (2.0f) -#define AL_EAXREVERB_DEFAULT_DECAY_LFRATIO (1.0f) - -#define AL_EAXREVERB_MIN_REFLECTIONS_GAIN (0.0f) -#define AL_EAXREVERB_MAX_REFLECTIONS_GAIN (3.16f) -#define AL_EAXREVERB_DEFAULT_REFLECTIONS_GAIN (0.05f) - -#define AL_EAXREVERB_MIN_REFLECTIONS_DELAY (0.0f) -#define AL_EAXREVERB_MAX_REFLECTIONS_DELAY (0.3f) -#define AL_EAXREVERB_DEFAULT_REFLECTIONS_DELAY (0.007f) - -#define AL_EAXREVERB_DEFAULT_REFLECTIONS_PAN_XYZ (0.0f) - -#define AL_EAXREVERB_MIN_LATE_REVERB_GAIN (0.0f) -#define AL_EAXREVERB_MAX_LATE_REVERB_GAIN (10.0f) -#define AL_EAXREVERB_DEFAULT_LATE_REVERB_GAIN (1.26f) - -#define AL_EAXREVERB_MIN_LATE_REVERB_DELAY (0.0f) -#define AL_EAXREVERB_MAX_LATE_REVERB_DELAY (0.1f) -#define AL_EAXREVERB_DEFAULT_LATE_REVERB_DELAY (0.011f) - -#define AL_EAXREVERB_DEFAULT_LATE_REVERB_PAN_XYZ (0.0f) - -#define AL_EAXREVERB_MIN_ECHO_TIME (0.075f) -#define AL_EAXREVERB_MAX_ECHO_TIME (0.25f) -#define AL_EAXREVERB_DEFAULT_ECHO_TIME (0.25f) - -#define AL_EAXREVERB_MIN_ECHO_DEPTH (0.0f) -#define AL_EAXREVERB_MAX_ECHO_DEPTH (1.0f) -#define AL_EAXREVERB_DEFAULT_ECHO_DEPTH (0.0f) - -#define AL_EAXREVERB_MIN_MODULATION_TIME (0.04f) -#define AL_EAXREVERB_MAX_MODULATION_TIME (4.0f) -#define AL_EAXREVERB_DEFAULT_MODULATION_TIME (0.25f) - -#define AL_EAXREVERB_MIN_MODULATION_DEPTH (0.0f) -#define AL_EAXREVERB_MAX_MODULATION_DEPTH (1.0f) -#define AL_EAXREVERB_DEFAULT_MODULATION_DEPTH (0.0f) - -#define AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF (0.892f) -#define AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF (1.0f) -#define AL_EAXREVERB_DEFAULT_AIR_ABSORPTION_GAINHF (0.994f) - -#define AL_EAXREVERB_MIN_HFREFERENCE (1000.0f) -#define AL_EAXREVERB_MAX_HFREFERENCE (20000.0f) -#define AL_EAXREVERB_DEFAULT_HFREFERENCE (5000.0f) - -#define AL_EAXREVERB_MIN_LFREFERENCE (20.0f) -#define AL_EAXREVERB_MAX_LFREFERENCE (1000.0f) -#define AL_EAXREVERB_DEFAULT_LFREFERENCE (250.0f) - -#define AL_EAXREVERB_MIN_ROOM_ROLLOFF_FACTOR (0.0f) -#define AL_EAXREVERB_MAX_ROOM_ROLLOFF_FACTOR (10.0f) -#define AL_EAXREVERB_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f) - -#define AL_EAXREVERB_MIN_DECAY_HFLIMIT AL_FALSE -#define AL_EAXREVERB_MAX_DECAY_HFLIMIT AL_TRUE -#define AL_EAXREVERB_DEFAULT_DECAY_HFLIMIT AL_TRUE - -/* Chorus effect */ -#define AL_CHORUS_WAVEFORM_SINUSOID (0) -#define AL_CHORUS_WAVEFORM_TRIANGLE (1) - -#define AL_CHORUS_MIN_WAVEFORM (0) -#define AL_CHORUS_MAX_WAVEFORM (1) -#define AL_CHORUS_DEFAULT_WAVEFORM (1) - -#define AL_CHORUS_MIN_PHASE (-180) -#define AL_CHORUS_MAX_PHASE (180) -#define AL_CHORUS_DEFAULT_PHASE (90) - -#define AL_CHORUS_MIN_RATE (0.0f) -#define AL_CHORUS_MAX_RATE (10.0f) -#define AL_CHORUS_DEFAULT_RATE (1.1f) - -#define AL_CHORUS_MIN_DEPTH (0.0f) -#define AL_CHORUS_MAX_DEPTH (1.0f) -#define AL_CHORUS_DEFAULT_DEPTH (0.1f) - -#define AL_CHORUS_MIN_FEEDBACK (-1.0f) -#define AL_CHORUS_MAX_FEEDBACK (1.0f) -#define AL_CHORUS_DEFAULT_FEEDBACK (0.25f) - -#define AL_CHORUS_MIN_DELAY (0.0f) -#define AL_CHORUS_MAX_DELAY (0.016f) -#define AL_CHORUS_DEFAULT_DELAY (0.016f) - -/* Distortion effect */ -#define AL_DISTORTION_MIN_EDGE (0.0f) -#define AL_DISTORTION_MAX_EDGE (1.0f) -#define AL_DISTORTION_DEFAULT_EDGE (0.2f) - -#define AL_DISTORTION_MIN_GAIN (0.01f) -#define AL_DISTORTION_MAX_GAIN (1.0f) -#define AL_DISTORTION_DEFAULT_GAIN (0.05f) - -#define AL_DISTORTION_MIN_LOWPASS_CUTOFF (80.0f) -#define AL_DISTORTION_MAX_LOWPASS_CUTOFF (24000.0f) -#define AL_DISTORTION_DEFAULT_LOWPASS_CUTOFF (8000.0f) - -#define AL_DISTORTION_MIN_EQCENTER (80.0f) -#define AL_DISTORTION_MAX_EQCENTER (24000.0f) -#define AL_DISTORTION_DEFAULT_EQCENTER (3600.0f) - -#define AL_DISTORTION_MIN_EQBANDWIDTH (80.0f) -#define AL_DISTORTION_MAX_EQBANDWIDTH (24000.0f) -#define AL_DISTORTION_DEFAULT_EQBANDWIDTH (3600.0f) - -/* Echo effect */ -#define AL_ECHO_MIN_DELAY (0.0f) -#define AL_ECHO_MAX_DELAY (0.207f) -#define AL_ECHO_DEFAULT_DELAY (0.1f) - -#define AL_ECHO_MIN_LRDELAY (0.0f) -#define AL_ECHO_MAX_LRDELAY (0.404f) -#define AL_ECHO_DEFAULT_LRDELAY (0.1f) - -#define AL_ECHO_MIN_DAMPING (0.0f) -#define AL_ECHO_MAX_DAMPING (0.99f) -#define AL_ECHO_DEFAULT_DAMPING (0.5f) - -#define AL_ECHO_MIN_FEEDBACK (0.0f) -#define AL_ECHO_MAX_FEEDBACK (1.0f) -#define AL_ECHO_DEFAULT_FEEDBACK (0.5f) - -#define AL_ECHO_MIN_SPREAD (-1.0f) -#define AL_ECHO_MAX_SPREAD (1.0f) -#define AL_ECHO_DEFAULT_SPREAD (-1.0f) - -/* Flanger effect */ -#define AL_FLANGER_WAVEFORM_SINUSOID (0) -#define AL_FLANGER_WAVEFORM_TRIANGLE (1) - -#define AL_FLANGER_MIN_WAVEFORM (0) -#define AL_FLANGER_MAX_WAVEFORM (1) -#define AL_FLANGER_DEFAULT_WAVEFORM (1) - -#define AL_FLANGER_MIN_PHASE (-180) -#define AL_FLANGER_MAX_PHASE (180) -#define AL_FLANGER_DEFAULT_PHASE (0) - -#define AL_FLANGER_MIN_RATE (0.0f) -#define AL_FLANGER_MAX_RATE (10.0f) -#define AL_FLANGER_DEFAULT_RATE (0.27f) - -#define AL_FLANGER_MIN_DEPTH (0.0f) -#define AL_FLANGER_MAX_DEPTH (1.0f) -#define AL_FLANGER_DEFAULT_DEPTH (1.0f) - -#define AL_FLANGER_MIN_FEEDBACK (-1.0f) -#define AL_FLANGER_MAX_FEEDBACK (1.0f) -#define AL_FLANGER_DEFAULT_FEEDBACK (-0.5f) - -#define AL_FLANGER_MIN_DELAY (0.0f) -#define AL_FLANGER_MAX_DELAY (0.004f) -#define AL_FLANGER_DEFAULT_DELAY (0.002f) - -/* Frequency shifter effect */ -#define AL_FREQUENCY_SHIFTER_MIN_FREQUENCY (0.0f) -#define AL_FREQUENCY_SHIFTER_MAX_FREQUENCY (24000.0f) -#define AL_FREQUENCY_SHIFTER_DEFAULT_FREQUENCY (0.0f) - -#define AL_FREQUENCY_SHIFTER_MIN_LEFT_DIRECTION (0) -#define AL_FREQUENCY_SHIFTER_MAX_LEFT_DIRECTION (2) -#define AL_FREQUENCY_SHIFTER_DEFAULT_LEFT_DIRECTION (0) - -#define AL_FREQUENCY_SHIFTER_DIRECTION_DOWN (0) -#define AL_FREQUENCY_SHIFTER_DIRECTION_UP (1) -#define AL_FREQUENCY_SHIFTER_DIRECTION_OFF (2) - -#define AL_FREQUENCY_SHIFTER_MIN_RIGHT_DIRECTION (0) -#define AL_FREQUENCY_SHIFTER_MAX_RIGHT_DIRECTION (2) -#define AL_FREQUENCY_SHIFTER_DEFAULT_RIGHT_DIRECTION (0) - -/* Vocal morpher effect */ -#define AL_VOCAL_MORPHER_MIN_PHONEMEA (0) -#define AL_VOCAL_MORPHER_MAX_PHONEMEA (29) -#define AL_VOCAL_MORPHER_DEFAULT_PHONEMEA (0) - -#define AL_VOCAL_MORPHER_MIN_PHONEMEA_COARSE_TUNING (-24) -#define AL_VOCAL_MORPHER_MAX_PHONEMEA_COARSE_TUNING (24) -#define AL_VOCAL_MORPHER_DEFAULT_PHONEMEA_COARSE_TUNING (0) - -#define AL_VOCAL_MORPHER_MIN_PHONEMEB (0) -#define AL_VOCAL_MORPHER_MAX_PHONEMEB (29) -#define AL_VOCAL_MORPHER_DEFAULT_PHONEMEB (10) - -#define AL_VOCAL_MORPHER_MIN_PHONEMEB_COARSE_TUNING (-24) -#define AL_VOCAL_MORPHER_MAX_PHONEMEB_COARSE_TUNING (24) -#define AL_VOCAL_MORPHER_DEFAULT_PHONEMEB_COARSE_TUNING (0) - -#define AL_VOCAL_MORPHER_PHONEME_A (0) -#define AL_VOCAL_MORPHER_PHONEME_E (1) -#define AL_VOCAL_MORPHER_PHONEME_I (2) -#define AL_VOCAL_MORPHER_PHONEME_O (3) -#define AL_VOCAL_MORPHER_PHONEME_U (4) -#define AL_VOCAL_MORPHER_PHONEME_AA (5) -#define AL_VOCAL_MORPHER_PHONEME_AE (6) -#define AL_VOCAL_MORPHER_PHONEME_AH (7) -#define AL_VOCAL_MORPHER_PHONEME_AO (8) -#define AL_VOCAL_MORPHER_PHONEME_EH (9) -#define AL_VOCAL_MORPHER_PHONEME_ER (10) -#define AL_VOCAL_MORPHER_PHONEME_IH (11) -#define AL_VOCAL_MORPHER_PHONEME_IY (12) -#define AL_VOCAL_MORPHER_PHONEME_UH (13) -#define AL_VOCAL_MORPHER_PHONEME_UW (14) -#define AL_VOCAL_MORPHER_PHONEME_B (15) -#define AL_VOCAL_MORPHER_PHONEME_D (16) -#define AL_VOCAL_MORPHER_PHONEME_F (17) -#define AL_VOCAL_MORPHER_PHONEME_G (18) -#define AL_VOCAL_MORPHER_PHONEME_J (19) -#define AL_VOCAL_MORPHER_PHONEME_K (20) -#define AL_VOCAL_MORPHER_PHONEME_L (21) -#define AL_VOCAL_MORPHER_PHONEME_M (22) -#define AL_VOCAL_MORPHER_PHONEME_N (23) -#define AL_VOCAL_MORPHER_PHONEME_P (24) -#define AL_VOCAL_MORPHER_PHONEME_R (25) -#define AL_VOCAL_MORPHER_PHONEME_S (26) -#define AL_VOCAL_MORPHER_PHONEME_T (27) -#define AL_VOCAL_MORPHER_PHONEME_V (28) -#define AL_VOCAL_MORPHER_PHONEME_Z (29) - -#define AL_VOCAL_MORPHER_WAVEFORM_SINUSOID (0) -#define AL_VOCAL_MORPHER_WAVEFORM_TRIANGLE (1) -#define AL_VOCAL_MORPHER_WAVEFORM_SAWTOOTH (2) - -#define AL_VOCAL_MORPHER_MIN_WAVEFORM (0) -#define AL_VOCAL_MORPHER_MAX_WAVEFORM (2) -#define AL_VOCAL_MORPHER_DEFAULT_WAVEFORM (0) - -#define AL_VOCAL_MORPHER_MIN_RATE (0.0f) -#define AL_VOCAL_MORPHER_MAX_RATE (10.0f) -#define AL_VOCAL_MORPHER_DEFAULT_RATE (1.41f) - -/* Pitch shifter effect */ -#define AL_PITCH_SHIFTER_MIN_COARSE_TUNE (-12) -#define AL_PITCH_SHIFTER_MAX_COARSE_TUNE (12) -#define AL_PITCH_SHIFTER_DEFAULT_COARSE_TUNE (12) - -#define AL_PITCH_SHIFTER_MIN_FINE_TUNE (-50) -#define AL_PITCH_SHIFTER_MAX_FINE_TUNE (50) -#define AL_PITCH_SHIFTER_DEFAULT_FINE_TUNE (0) - -/* Ring modulator effect */ -#define AL_RING_MODULATOR_MIN_FREQUENCY (0.0f) -#define AL_RING_MODULATOR_MAX_FREQUENCY (8000.0f) -#define AL_RING_MODULATOR_DEFAULT_FREQUENCY (440.0f) - -#define AL_RING_MODULATOR_MIN_HIGHPASS_CUTOFF (0.0f) -#define AL_RING_MODULATOR_MAX_HIGHPASS_CUTOFF (24000.0f) -#define AL_RING_MODULATOR_DEFAULT_HIGHPASS_CUTOFF (800.0f) - -#define AL_RING_MODULATOR_SINUSOID (0) -#define AL_RING_MODULATOR_SAWTOOTH (1) -#define AL_RING_MODULATOR_SQUARE (2) - -#define AL_RING_MODULATOR_MIN_WAVEFORM (0) -#define AL_RING_MODULATOR_MAX_WAVEFORM (2) -#define AL_RING_MODULATOR_DEFAULT_WAVEFORM (0) - -/* Autowah effect */ -#define AL_AUTOWAH_MIN_ATTACK_TIME (0.0001f) -#define AL_AUTOWAH_MAX_ATTACK_TIME (1.0f) -#define AL_AUTOWAH_DEFAULT_ATTACK_TIME (0.06f) - -#define AL_AUTOWAH_MIN_RELEASE_TIME (0.0001f) -#define AL_AUTOWAH_MAX_RELEASE_TIME (1.0f) -#define AL_AUTOWAH_DEFAULT_RELEASE_TIME (0.06f) - -#define AL_AUTOWAH_MIN_RESONANCE (2.0f) -#define AL_AUTOWAH_MAX_RESONANCE (1000.0f) -#define AL_AUTOWAH_DEFAULT_RESONANCE (1000.0f) - -#define AL_AUTOWAH_MIN_PEAK_GAIN (0.00003f) -#define AL_AUTOWAH_MAX_PEAK_GAIN (31621.0f) -#define AL_AUTOWAH_DEFAULT_PEAK_GAIN (11.22f) - -/* Compressor effect */ -#define AL_COMPRESSOR_MIN_ONOFF (0) -#define AL_COMPRESSOR_MAX_ONOFF (1) -#define AL_COMPRESSOR_DEFAULT_ONOFF (1) - -/* Equalizer effect */ -#define AL_EQUALIZER_MIN_LOW_GAIN (0.126f) -#define AL_EQUALIZER_MAX_LOW_GAIN (7.943f) -#define AL_EQUALIZER_DEFAULT_LOW_GAIN (1.0f) - -#define AL_EQUALIZER_MIN_LOW_CUTOFF (50.0f) -#define AL_EQUALIZER_MAX_LOW_CUTOFF (800.0f) -#define AL_EQUALIZER_DEFAULT_LOW_CUTOFF (200.0f) - -#define AL_EQUALIZER_MIN_MID1_GAIN (0.126f) -#define AL_EQUALIZER_MAX_MID1_GAIN (7.943f) -#define AL_EQUALIZER_DEFAULT_MID1_GAIN (1.0f) - -#define AL_EQUALIZER_MIN_MID1_CENTER (200.0f) -#define AL_EQUALIZER_MAX_MID1_CENTER (3000.0f) -#define AL_EQUALIZER_DEFAULT_MID1_CENTER (500.0f) - -#define AL_EQUALIZER_MIN_MID1_WIDTH (0.01f) -#define AL_EQUALIZER_MAX_MID1_WIDTH (1.0f) -#define AL_EQUALIZER_DEFAULT_MID1_WIDTH (1.0f) - -#define AL_EQUALIZER_MIN_MID2_GAIN (0.126f) -#define AL_EQUALIZER_MAX_MID2_GAIN (7.943f) -#define AL_EQUALIZER_DEFAULT_MID2_GAIN (1.0f) - -#define AL_EQUALIZER_MIN_MID2_CENTER (1000.0f) -#define AL_EQUALIZER_MAX_MID2_CENTER (8000.0f) -#define AL_EQUALIZER_DEFAULT_MID2_CENTER (3000.0f) - -#define AL_EQUALIZER_MIN_MID2_WIDTH (0.01f) -#define AL_EQUALIZER_MAX_MID2_WIDTH (1.0f) -#define AL_EQUALIZER_DEFAULT_MID2_WIDTH (1.0f) - -#define AL_EQUALIZER_MIN_HIGH_GAIN (0.126f) -#define AL_EQUALIZER_MAX_HIGH_GAIN (7.943f) -#define AL_EQUALIZER_DEFAULT_HIGH_GAIN (1.0f) - -#define AL_EQUALIZER_MIN_HIGH_CUTOFF (4000.0f) -#define AL_EQUALIZER_MAX_HIGH_CUTOFF (16000.0f) -#define AL_EQUALIZER_DEFAULT_HIGH_CUTOFF (6000.0f) - - -/* Source parameter value ranges and defaults. */ -#define AL_MIN_AIR_ABSORPTION_FACTOR (0.0f) -#define AL_MAX_AIR_ABSORPTION_FACTOR (10.0f) -#define AL_DEFAULT_AIR_ABSORPTION_FACTOR (0.0f) - -#define AL_MIN_ROOM_ROLLOFF_FACTOR (0.0f) -#define AL_MAX_ROOM_ROLLOFF_FACTOR (10.0f) -#define AL_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f) - -#define AL_MIN_CONE_OUTER_GAINHF (0.0f) -#define AL_MAX_CONE_OUTER_GAINHF (1.0f) -#define AL_DEFAULT_CONE_OUTER_GAINHF (1.0f) - -#define AL_MIN_DIRECT_FILTER_GAINHF_AUTO AL_FALSE -#define AL_MAX_DIRECT_FILTER_GAINHF_AUTO AL_TRUE -#define AL_DEFAULT_DIRECT_FILTER_GAINHF_AUTO AL_TRUE - -#define AL_MIN_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_FALSE -#define AL_MAX_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_TRUE -#define AL_DEFAULT_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_TRUE - -#define AL_MIN_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_FALSE -#define AL_MAX_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_TRUE -#define AL_DEFAULT_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_TRUE - - -/* Listener parameter value ranges and defaults. */ -#define AL_MIN_METERS_PER_UNIT FLT_MIN -#define AL_MAX_METERS_PER_UNIT FLT_MAX -#define AL_DEFAULT_METERS_PER_UNIT (1.0f) - - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* AL_EFX_H */ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.dll b/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.dll deleted file mode 100755 index 9c8932e..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.dll and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.exp b/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.exp deleted file mode 100755 index 9813fee..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.exp and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.ilk b/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.ilk deleted file mode 100755 index 0e2cc84..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.ilk and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.lib b/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.lib deleted file mode 100755 index 688ad50..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.lib and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.pdb b/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.pdb deleted file mode 100755 index b28c60d..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/OpenAL32.pdb and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.exe b/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.exe deleted file mode 100644 index e1e33af..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.ilk b/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.ilk deleted file mode 100644 index 8beac13..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.ilk and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.pdb b/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.pdb deleted file mode 100644 index 496d423..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/makehrtf.pdb and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.exe b/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.exe deleted file mode 100644 index 90b3bc2..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.ilk b/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.ilk deleted file mode 100644 index e74433b..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.ilk and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.pdb b/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.pdb deleted file mode 100644 index 3c8ea25..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Debug/openal-info.pdb and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.dll b/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.dll deleted file mode 100755 index 5dc4ef8..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.dll and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.exp b/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.exp deleted file mode 100755 index fd91812..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.exp and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.lib b/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.lib deleted file mode 100755 index 93431b7..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Release/OpenAL32.lib and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/Release/openal-info.exe b/libs/openal-soft-1.15.1/lib/Win32/Release/openal-info.exe deleted file mode 100644 index 4263497..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/Release/openal-info.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win32/libOpenAL32.dll.a b/libs/openal-soft-1.15.1/lib/Win32/libOpenAL32.dll.a deleted file mode 100644 index 5f7352a..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win32/libOpenAL32.dll.a and /dev/null differ diff --git a/libs/openal-soft-1.15.1/lib/Win64/libOpenAL32.dll.a b/libs/openal-soft-1.15.1/lib/Win64/libOpenAL32.dll.a deleted file mode 100644 index 2e4953e..0000000 Binary files a/libs/openal-soft-1.15.1/lib/Win64/libOpenAL32.dll.a and /dev/null differ diff --git a/libs/openal-soft-1.15.1/makehrtf.exe b/libs/openal-soft-1.15.1/makehrtf.exe deleted file mode 100644 index 0fe3243..0000000 Binary files a/libs/openal-soft-1.15.1/makehrtf.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/openal-info32.exe b/libs/openal-soft-1.15.1/openal-info32.exe deleted file mode 100644 index 621bc98..0000000 Binary files a/libs/openal-soft-1.15.1/openal-info32.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/openal-info64.exe b/libs/openal-soft-1.15.1/openal-info64.exe deleted file mode 100644 index ff59d1f..0000000 Binary files a/libs/openal-soft-1.15.1/openal-info64.exe and /dev/null differ diff --git a/libs/openal-soft-1.15.1/readme.txt b/libs/openal-soft-1.15.1/readme.txt deleted file mode 100644 index 3bc7529..0000000 --- a/libs/openal-soft-1.15.1/readme.txt +++ /dev/null @@ -1,27 +0,0 @@ -OpenAL Soft Binary Distribution - -These binaries are provided as a convenience. Users and developers may use it -so they can use OpenAL Soft without having to build it from source. - -Note that it is still expected to install the OpenAL redistributable provided -by Creative Labs (at http://openal.org/), as that will provide the "router" -OpenAL32.dll that applications talk to, and may provide extra drivers for the -user's hardware. The DLLs provided here will simply add additional devices for -applications to select from. If you do not wish to use the redistributable, -then rename soft_oal.dll to OpenAL32.dll (note: even the 64-bit DLL should be -named OpenAL32.dll)... just be aware this will prevent other system-installed -OpenAL implementations from working. - -To use the 32-bit DLL, copy it from the Win32 folder to the folder OpenAL32.dll -is installed in. -For 32-bit Windows, the Win32 DLL will typically go into the system32 folder. -For 64-bit Windows, the Win32 DLL will typically go into the SysWOW64 folder. - -To use the 64-bit DLL, copy it from the Win64 folder to the folder OpenAL32.dll -is installed in. This will typically be the system32 folder. - -The included openal-info32.exe and openal-info64.exe programs can be used to -tell if the OpenAL Soft DLL is being detected. It should be run from a command -shell, as the program will exit as soon as it's done printing information. - -Have fun! diff --git a/src/Components/BarrelSteering.h b/src/Components/BarrelSteering.h index 1cd71be..0d62389 100644 --- a/src/Components/BarrelSteering.h +++ b/src/Components/BarrelSteering.h @@ -15,6 +15,9 @@ namespace Components EntityID ShotTemplate; float ShotSpeed; + float LowerRotationLimit; + float UpperRotationLimit; + virtual BarrelSteering* Clone() const override { return new BarrelSteering(*this); } }; diff --git a/src/Components/Follow.h b/src/Components/Follow.h new file mode 100644 index 0000000..7ccaa8d --- /dev/null +++ b/src/Components/Follow.h @@ -0,0 +1,20 @@ +#ifndef Components_Follow_h__ +#define Components_Follow_h__ + +#include "Component.h" +#include "Entity.h" + +namespace Components +{ + + struct Follow : Component + { + EntityID Entity; + glm::vec3 FollowAxis; + float Distance; + + virtual Follow* Clone() const override { return new Follow(*this); } + }; + +} +#endif // !Components_Follow_h__ \ No newline at end of file diff --git a/src/Components/Garage.h b/src/Components/Garage.h new file mode 100644 index 0000000..7098661 --- /dev/null +++ b/src/Components/Garage.h @@ -0,0 +1,35 @@ +#ifndef Components_Garage_h__ +#define Components_Garage_h__ + +#include "Component.h" + +namespace Components +{ + struct Garage : Component + { + Garage() + : Open(false) + , Elevator(0) + , DoorLeft(0) + , DoorRight(0) + , Light1(0) + , Light2(0) + , Light3(0) + , Light4(0) + { } + + EntityID Elevator; + EntityID DoorLeft; + EntityID DoorRight; + EntityID Light1; + EntityID Light2; + EntityID Light3; + EntityID Light4; + + bool Open; + + virtual Garage* Clone() const override { return new Garage(*this); } + }; +} + +#endif // Components_TankShell_h__ diff --git a/src/Components/Listener.h b/src/Components/Listener.h new file mode 100644 index 0000000..3ca53d0 --- /dev/null +++ b/src/Components/Listener.h @@ -0,0 +1,19 @@ +#ifndef Components_Listener_h__ +#define Components_Listener_h__ + +#include +#include +#include "Component.h" + +namespace Components +{ + + struct Listener : Component + { + Listener() {} + + virtual Listener* Clone() const override { return new Listener(*this); } + }; + +} +#endif // !Components_Listener_h__ \ No newline at end of file diff --git a/src/Components/Move.h b/src/Components/Move.h new file mode 100644 index 0000000..28579e6 --- /dev/null +++ b/src/Components/Move.h @@ -0,0 +1,20 @@ +#ifndef Components_Move_h__ +#define Components_Move_h__ + +#include "Component.h" + +namespace Components +{ + +struct Move : Component +{ + float Speed; + glm::vec3 StartPosition; + glm::vec3 GoalPosition; + + virtual Move* Clone() const override { return new Move(*this); } +}; + +} + +#endif // Components_Move_h__ \ No newline at end of file diff --git a/src/Components/Physics.h b/src/Components/Physics.h index 2b5065c..a99cd79 100644 --- a/src/Components/Physics.h +++ b/src/Components/Physics.h @@ -8,6 +8,14 @@ namespace Components struct Physics : Component { + enum class CollisionLayer + { + STATIC = 1, + VEHICLE1_ = 2, + VEHICLE2 = 3, + EXPLOSION = 4, + }; + Physics() : Mass(1.f), Static(false), Phantom(false), CalculateCenterOfMass(true), CenterOfMass(glm::vec3(0)), InitialLinearVelocity(glm::vec3(0)), InitialAngularVelocity(glm::vec3(0)), LinearDamping(0.f), AngularDamping(0.05f), GravityFactor(1.f), Friction(0.5f), Restitution(0.4f), MaxLinearVelocity(200.f), MaxAngularVelocity(200.f), diff --git a/src/Components/Rotate.h b/src/Components/Rotate.h new file mode 100644 index 0000000..98bc438 --- /dev/null +++ b/src/Components/Rotate.h @@ -0,0 +1,19 @@ +#ifndef Components_Rotate_h__ +#define Components_Rotate_h__ + +#include "Component.h" + +namespace Components +{ + +struct Rotate : Component +{ + float Time; + glm::quat StartRotation; + glm::quat GoalRotation; + virtual Rotate* Clone() const override { return new Rotate(*this); } +}; + +} + +#endif // Components_Rotate_h__ \ No newline at end of file diff --git a/src/Components/SoundEmitter.h b/src/Components/SoundEmitter.h index 05c5f15..cc9b738 100755 --- a/src/Components/SoundEmitter.h +++ b/src/Components/SoundEmitter.h @@ -7,16 +7,23 @@ namespace Components { - + struct SoundEmitter : Component { - SoundEmitter() : Gain(1.f), MaxDistance(1.f), ReferenceDistance(1.f), Pitch(1.f), Loop(false) {} + enum class SoundType + { + SOUND_3D, + SOUND_2D + }; + + SoundEmitter() : Gain(1.f), MaxDistance(1.f), MinDistance(1.f), Pitch(1.f), Loop(false) {} float Gain; float MaxDistance; - float ReferenceDistance; + float MinDistance; float Pitch; bool Loop; std::string Path; + SoundType type; virtual SoundEmitter* Clone() const override { return new SoundEmitter(*this); } }; diff --git a/src/Components/SpawnPoint.h b/src/Components/SpawnPoint.h new file mode 100644 index 0000000..c29230d --- /dev/null +++ b/src/Components/SpawnPoint.h @@ -0,0 +1,16 @@ +#ifndef Components_VehicleSpawn_h__ +#define Components_VehicleSpawn_h__ + +#include "Component.h" + +namespace Components +{ + +struct SpawnPoint : Component +{ + virtual SpawnPoint* Clone() const override { return new SpawnPoint(*this); } +}; + +} + +#endif // Components_VehicleSpawn_h__ \ No newline at end of file diff --git a/src/Components/TriggerMove.h b/src/Components/TriggerMove.h new file mode 100644 index 0000000..2ecbda4 --- /dev/null +++ b/src/Components/TriggerMove.h @@ -0,0 +1,24 @@ +#ifndef TriggerMove_h__ +#define TriggerMove_h__ + +#include "Component.h" + +namespace Components +{ + + struct TriggerMove : Component + { + TriggerMove() + : Queue(false) + , Swap(true) + { } + + EntityID Entity; + bool Queue; + bool Swap; + virtual TriggerMove* Clone() const override { return new TriggerMove(*this); } + }; + +} + +#endif // TriggerMove_h__ \ No newline at end of file diff --git a/src/Components/TriggerRotate.h b/src/Components/TriggerRotate.h new file mode 100644 index 0000000..e2fd341 --- /dev/null +++ b/src/Components/TriggerRotate.h @@ -0,0 +1,24 @@ +#ifndef TriggerRotate_h__ +#define TriggerRotate_h__ + +#include "Component.h" + +namespace Components +{ + + struct TriggerRotate : Component + { + TriggerRotate() + : Queue(false) + , Swap(true) + { } + + EntityID Entity; + bool Queue; + bool Swap; + virtual TriggerRotate* Clone() const override { return new TriggerRotate(*this); } + }; + +} + +#endif // TriggerRotate_h__ \ No newline at end of file diff --git a/src/Components/Vehicle.h b/src/Components/Vehicle.h index 2957df5..5dfed54 100644 --- a/src/Components/Vehicle.h +++ b/src/Components/Vehicle.h @@ -10,9 +10,10 @@ namespace Components struct Vehicle : Component { Vehicle() - : MaxTorque(1000.0f), MinRPM(1000.0f), OptimalRPM(3000.0f), MaxRPM(4000.0f), MaxSteeringAngle(35), TopSpeed(130.0f), - MaxSpeedFullSteeringAngle(40.0f), SpringDamping(1.f){ } - + : MaxTorque(1000.0f), MinRPM(0.0f), OptimalRPM(2000.0f), MaxRPM(3000.0f), MaxSteeringAngle(35), TopSpeed(70.0f), + MaxSpeedFullSteeringAngle(40.0f), SpringDamping(1.f), UpshiftRPM(2500.0f), DownshiftRPM(500.0f), + gearsRatio0(4.5f), gearsRatio1(2.5f), gearsRatio2(1.0f), gearsRatio3(0.5f){ } + //gearsRatio0(3.0f), gearsRatio1(2.25f), gearsRatio2(1.5f), gearsRatio3(1.0f) float MaxTorque; float MinRPM; float OptimalRPM; @@ -23,7 +24,13 @@ struct Vehicle : Component float TopSpeed; float MaxSpeedFullSteeringAngle; float SpringDamping; - + float DownshiftRPM; + float UpshiftRPM; + float gearsRatio0; + float gearsRatio1; + float gearsRatio2; + float gearsRatio3; + Vehicle* Clone() const override { return new Vehicle(*this); } }; diff --git a/src/Events/ComponentCreated.h b/src/Events/ComponentCreated.h new file mode 100644 index 0000000..a6848b6 --- /dev/null +++ b/src/Events/ComponentCreated.h @@ -0,0 +1,19 @@ +#ifndef Event_ComponentCreated_h__ +#define Event_ComponentCreated_h__ + +#include "EventBroker.h" +#include "Entity.h" +#include "Component.h" + +namespace Events +{ + +struct ComponentCreated : Event +{ + EntityID Entity; + std::shared_ptr<::Component> Component; +}; + +} + +#endif // Event_ComponentCreated_h__ diff --git a/src/Events/EnterTrigger.h b/src/Events/EnterTrigger.h index 117b306..9206933 100644 --- a/src/Events/EnterTrigger.h +++ b/src/Events/EnterTrigger.h @@ -8,8 +8,8 @@ namespace Events struct EnterTrigger : Event { - EntityID Entity1; - EntityID Entity2; + EntityID Trigger; + EntityID Entity; }; } diff --git a/src/Events/LeaveTrigger.h b/src/Events/LeaveTrigger.h new file mode 100644 index 0000000..e02a5f6 --- /dev/null +++ b/src/Events/LeaveTrigger.h @@ -0,0 +1,17 @@ +#ifndef Events_LeaveTrigger_h__ +#define Events_LeaveTrigger_h__ +#include "Entity.h" +#include "EventBroker.h" + + namespace Events +{ + + struct LeaveTrigger : Event + { + EntityID Trigger; + EntityID Entity; + }; + +} + +#endif // Events_LeaveTrigger_h__ \ No newline at end of file diff --git a/src/Events/Move.h b/src/Events/Move.h new file mode 100644 index 0000000..21627df --- /dev/null +++ b/src/Events/Move.h @@ -0,0 +1,19 @@ +#ifndef Event_Move_h__ +#define Event_Move_h__ + +#include "EventBroker.h" + +namespace Events +{ + + struct Move : Event + { + EntityID Entity; + glm::vec3 GoalPosition; + float Speed; + bool Queue; + }; + +} + +#endif // Event_Move_h__ diff --git a/src/Events/PlayBGM.h b/src/Events/PlayBGM.h new file mode 100644 index 0000000..58eacf5 --- /dev/null +++ b/src/Events/PlayBGM.h @@ -0,0 +1,18 @@ +#ifndef Event_PlayBGM_h__ +#define Event_PlayBGM_h__ + +#include "EventBroker.h" +#include "Entity.h" + +namespace Events +{ + + struct PlayBGM : Event + { + std::string Resource; + bool Loop; + }; + +} + +#endif // Event_PlayBGM_h__ diff --git a/src/Events/PlaySFX.h b/src/Events/PlaySFX.h new file mode 100644 index 0000000..e96f8cf --- /dev/null +++ b/src/Events/PlaySFX.h @@ -0,0 +1,19 @@ +#ifndef Event_PlaySFX_h__ +#define Event_PlaySFX_h__ + +#include "EventBroker.h" +#include "Entity.h" + +namespace Events +{ + +struct PlaySFX : Event +{ + EntityID Emitter; + std::string Resource; + bool Loop; +}; + +} + +#endif // Event_PlaySFX_h__ diff --git a/src/Events/PlaySound.h b/src/Events/PlaySound.h deleted file mode 100644 index e00ef73..0000000 --- a/src/Events/PlaySound.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef Event_PlaySound_h__ -#define Event_PlaySound_h__ - -#include "EventBroker.h" - -namespace Events -{ - -struct PlaySound : Event -{ - EntityID Emitter; - std::string Resource; -}; - -} - -#endif // Event_PlaySound_h__ diff --git a/src/Events/Rotate.h b/src/Events/Rotate.h new file mode 100644 index 0000000..87f87f2 --- /dev/null +++ b/src/Events/Rotate.h @@ -0,0 +1,19 @@ +#ifndef Event_Rotate_h__ +#define Event_Rotate_h__ + +#include "EventBroker.h" + +namespace Events +{ + + struct Rotate : Event + { + EntityID Entity; + glm::quat GoalRotation; + double Time; + bool Queue; + }; + +} + +#endif // Event_Rotate_h__ diff --git a/src/Events/SpawnVehicle.h b/src/Events/SpawnVehicle.h new file mode 100644 index 0000000..21393de --- /dev/null +++ b/src/Events/SpawnVehicle.h @@ -0,0 +1,16 @@ +#ifndef Events_SpawnVehicle_h__ +#define Events_SpawnVehicle_h__ + +#include "Entity.h" +#include "EventBroker.h" + +namespace Events +{ + struct SpawnVehicle : Event + { + int PlayerID; + std::string VehicleType; + }; +} + +#endif // Events_SpawnVehicle_h__ \ No newline at end of file diff --git a/src/Events/StopSound.h b/src/Events/StopSound.h new file mode 100644 index 0000000..a832d4f --- /dev/null +++ b/src/Events/StopSound.h @@ -0,0 +1,17 @@ +#ifndef Event_StopSound_h__ +#define Event_StopSound_h__ + +#include "EventBroker.h" +#include "Entity.h" + +namespace Events +{ + + struct StopSound : Event + { + EntityID Emitter; + }; + +} + +#endif // Event_StopSound_h__ diff --git a/src/GUI/Frame.h b/src/GUI/Frame.h index 6a649b5..25c2dd1 100644 --- a/src/GUI/Frame.h +++ b/src/GUI/Frame.h @@ -6,6 +6,9 @@ #include "Util/Rectangle.h" #include "EventBroker.h" +#include "Events/KeyDown.h" +#include "Events/KeyUp.h" +#include "Events/InputCommand.h" #include "ResourceManager.h" #include "Renderer.h" #include "RenderQueue.h" @@ -79,7 +82,13 @@ public: std::string Name() const { return m_Name; } void SetName(std::string val) { m_Name = val; } int Layer() const { return m_Layer; } - bool Hidden() const { return m_Hidden; } + bool Hidden() const + { + if (m_Parent) + return m_Parent->Hidden() || m_Hidden; + else + return m_Hidden; + } void Hide() { m_Hidden = true; } void Show() { m_Hidden = false; } @@ -129,11 +138,6 @@ public: return Rectangle(left, top, width, height); } - virtual bool OnKeyDown(const Events::KeyDown &event) { return false; } - virtual bool OnKeyUp(const Events::KeyUp &event) { return false; } - //virtual bool OnMouseDown(const Events::KeyDown &event) { } - //virtual bool OnMouseUp(const Events::KeyDown &event) { } - void UpdateLayered(double dt) { if (this->Hidden()) @@ -196,14 +200,22 @@ protected: typedef std::multimap> Children_t; // name -> frame std::map m_Children; // layer -> Children_t + virtual bool OnKeyDown(const Events::KeyDown &event) { return false; } + virtual bool OnKeyUp(const Events::KeyUp &event) { return false; } + //virtual bool OnMouseDown(const Events::KeyDown &event) { } + //virtual bool OnMouseUp(const Events::KeyDown &event) { } + virtual bool OnCommand(const Events::InputCommand &event) { return false; } + private: EventRelay m_EKeyDown; EventRelay m_EKeyUp; + EventRelay m_EInputCommand; void Initialize() { EVENT_SUBSCRIBE_MEMBER(m_EKeyDown, &Frame::OnKeyDown); EVENT_SUBSCRIBE_MEMBER(m_EKeyUp, &Frame::OnKeyUp); + EVENT_SUBSCRIBE_MEMBER(m_EInputCommand, &Frame::OnCommand); } }; diff --git a/src/GUI/GameFrame.h b/src/GUI/GameFrame.h index f180835..c09239f 100644 --- a/src/GUI/GameFrame.h +++ b/src/GUI/GameFrame.h @@ -25,13 +25,13 @@ public: vp1 = new Viewport(worldFrame, "Viewport1", m_World); vp1->X = 0; vp1->Width = this->Width / 2.f; - new PlayerHUD(vp1, "PlayerHUD", m_World, 1); - //new VehicleSelection(vp1, "VehicleSelection", m_World, 1); + //new PlayerHUD(vp1, "PlayerHUD", m_World, 1); + auto vehicleSelection = new VehicleSelection(vp1, "VehicleSelection", m_World, 1); vp2 = new Viewport(worldFrame, "Viewport2", m_World); vp2->X = vp1->Right(); vp2->Width = this->Width / 2.f; - new PlayerHUD(vp2, "PlayerHUD", m_World, 2); + //new PlayerHUD(vp2, "PlayerHUD", m_World, 2); m_FreeCamViewport = new Viewport(worldFrame, "ViewportFreeCam", m_World); m_FreeCamViewport->Hide(); diff --git a/src/GUI/VehicleSelection.h b/src/GUI/VehicleSelection.h index fa11ceb..9a2ec18 100644 --- a/src/GUI/VehicleSelection.h +++ b/src/GUI/VehicleSelection.h @@ -3,6 +3,7 @@ #include "GUI/Frame.h" #include "GUI/HealthOverlay.h" +#include "Events/SpawnVehicle.h" namespace GUI { @@ -37,35 +38,8 @@ namespace GUI m_Background->SetTexture("Textures/GUI/VehicleSelection/1.png"); } - bool OnKeyUp(const Events::KeyUp &event) override - { - if (event.KeyCode == GLFW_KEY_LEFT) - { - m_CurrentSelection--; - } - else if (event.KeyCode == GLFW_KEY_RIGHT) - { - m_CurrentSelection++; - } - m_CurrentSelection = (m_CurrentSelection < 0) ? 0 : ((m_CurrentSelection > 3) ? 3 : m_CurrentSelection); - - std::stringstream ss; - ss << "Textures/GUI/VehicleSelection/" << m_CurrentSelection + 1 << ".png"; - m_Background->FadeToTexture(ss.str(), 1.f); - - glm::vec2 scale = Scale(); - glm::vec2 coord = -m_SelectionCoordinates[m_CurrentSelection]; - m_TargetCoordinate = coord * scale + glm::vec2(Width / 2.f, Height / 2.f); - glm::vec2 size = m_SelectionSizes[m_CurrentSelection]; - m_TargetSize = size * scale; - - return true; - } - void Update(double dt) override { - - glm::vec2 posDiff = m_TargetCoordinate - m_CurrentCoordinate; m_CurrentCoordinate += posDiff * 2.f * (float)dt; @@ -94,6 +68,77 @@ namespace GUI float m_CurrentAlpha; TextureFrame* m_Background; + + bool OnCommand(const Events::InputCommand &event) override + { + if (Hidden()) + return false; + + if (event.PlayerID != m_PlayerID) + return false; + + // Menu movement + if (event.Command == "interface_horizontal" || event.Command == "interface_vertical") + { + // Horizontal scrolling + if (event.Command == "interface_horizontal") + { + if (event.Value > 0) + m_CurrentSelection++; + else if (event.Value < 0) + m_CurrentSelection--; + } + // Vertical scrolling to switch between "rows" in an intuitive way + else if (event.Command == "interface_vertical") + { + if (event.Value > 0) + { + if (m_CurrentSelection == 0) + m_CurrentSelection++; + else if (m_CurrentSelection == 3) + m_CurrentSelection--; + } + else if (event.Value < 0) + { + if (m_CurrentSelection == 1) + m_CurrentSelection--; + else if (m_CurrentSelection == 2) + m_CurrentSelection++; + } + } + + m_CurrentSelection = (m_CurrentSelection < 0) ? 0 : ((m_CurrentSelection > 3) ? 3 : m_CurrentSelection); + + std::stringstream ss; + ss << "Textures/GUI/VehicleSelection/" << m_CurrentSelection + 1 << ".png"; + m_Background->FadeToTexture(ss.str(), 1.f); + + glm::vec2 scale = Scale(); + glm::vec2 coord = -m_SelectionCoordinates[m_CurrentSelection]; + m_TargetCoordinate = coord * scale + glm::vec2(Width / 2.f, Height / 2.f); + glm::vec2 size = m_SelectionSizes[m_CurrentSelection]; + m_TargetSize = size * scale; + } + + // Vehicle select + if (event.Command == "interface_confirm" && event.Value > 0) + { + Events::SpawnVehicle e; + e.PlayerID = m_PlayerID; + if (m_CurrentSelection == 0) + e.VehicleType = "Tank"; // HACK: Base on selected vehicle ID + else if (m_CurrentSelection == 1) + e.VehicleType = "Helicopter"; + else if (m_CurrentSelection == 2) + e.VehicleType = "HRSV"; + else if (m_CurrentSelection == 3) + e.VehicleType = "Jeep"; + EventBroker->Publish(e); + Hide(); + } + + return true; + } }; glm::vec2 VehicleSelection::m_SelectionCoordinates[4] = { diff --git a/src/GameWorld.cpp b/src/GameWorld.cpp index 2ca1bbc..fb3329c 100755 --- a/src/GameWorld.cpp +++ b/src/GameWorld.cpp @@ -8,6 +8,22 @@ void GameWorld::Initialize() ResourceManager->Preload("Model", "Models/Placeholders/PhysicsTest/Plane.obj"); ResourceManager->Preload("Model", "Models/Placeholders/PhysicsTest/ArrowCube.obj"); + // Interface + BindKey(GLFW_KEY_A, "interface_horizontal", -1.f); + BindKey(GLFW_KEY_D, "interface_horizontal", 1.f); + BindGamepadAxis(Gamepad::Axis::LeftX, "interface_horizontal", 1.f); + BindGamepadButton(Gamepad::Button::Left, "interface_horizontal", -1.f); + BindGamepadButton(Gamepad::Button::Right, "interface_horizontal", 1.f); + BindKey(GLFW_KEY_W, "interface_vertical", 1.f); + BindKey(GLFW_KEY_S, "interface_vertical", -1.f); + BindGamepadAxis(Gamepad::Axis::LeftY, "interface_vertical", 1.f); + BindGamepadButton(Gamepad::Button::Up, "interface_vertical", 1.f); + BindGamepadButton(Gamepad::Button::Down, "interface_vertical", -1.f); + BindKey(GLFW_KEY_SPACE, "interface_confirm", 1.f); + BindGamepadButton(Gamepad::Button::A, "interface_confirm", 1.f); + + + BindKey(GLFW_KEY_W, "vertical", 1.f); BindKey(GLFW_KEY_S, "vertical", -1.f); BindKey(GLFW_KEY_A, "horizontal", -1.f); @@ -28,6 +44,9 @@ void GameWorld::Initialize() BindKey(GLFW_KEY_Z, "shoot", 1.f); BindGamepadAxis(Gamepad::Axis::RightTrigger, "shoot", 1.f); + BindKey(GLFW_KEY_X, "use", 1.f); + BindGamepadButton(Gamepad::Button::X, "use", 1.f); + BindMouseButton(GLFW_MOUSE_BUTTON_1, "cam_lock", 1.f); BindKey(GLFW_KEY_Y, "cam_vertical", 1.f); BindKey(GLFW_KEY_H, "cam_vertical", -1.f); @@ -35,6 +54,8 @@ void GameWorld::Initialize() BindKey(GLFW_KEY_J, "cam_horizontal", 1.f); BindKey(GLFW_KEY_U, "cam_normal", 1.f); BindKey(GLFW_KEY_T, "cam_normal", -1.f); + BindKey(GLFW_KEY_B, "cam_speed", -1.f); + BindKey(GLFW_KEY_N, "cam_speed", 1.f); //BindGamepadButton(Gamepad::Button::Up, "Gamepad::Button::Up", 1.f); //BindGamepadButton(Gamepad::Button::Down, "Gamepad::Button::Down", 1.f); @@ -70,303 +91,45 @@ void GameWorld::Initialize() EventBroker->Publish(e); } - { - auto road_base = CreateEntity(); - auto transform = AddComponent(road_base); - transform->Position = glm::vec3(0, -50, 0); - auto model = AddComponent(road_base); - model->ModelFile = "Models/TerrainFiveIstles/Roads/BaseRoad.obj"; - auto physics = AddComponent(road_base); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(road_base); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Roads/BaseRoad.obj"; - - - CommitEntity(groundshape); - CommitEntity(road_base); - } - { - auto road_middle = CreateEntity(); - auto transform = AddComponent(road_middle); + auto ground = CreateEntity(); + auto transform = AddComponent(ground); transform->Position = glm::vec3(0, -50, 0); - auto model = AddComponent(road_middle); - model->ModelFile = "Models/TerrainFiveIstles/Roads/MiddleRoad.obj"; - auto physics = AddComponent(road_middle); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(road_middle); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Roads/MiddleRoad.obj"; - - - CommitEntity(groundshape); - CommitEntity(road_middle); - } - - { - auto road_small = CreateEntity(); - auto transform = AddComponent(road_small); - transform->Position = glm::vec3(0, -50, 0); - auto model = AddComponent(road_small); - model->ModelFile = "Models/TerrainFiveIstles/Roads/SmallRoad.obj"; - auto physics = AddComponent(road_small); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(road_small); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Roads/SmallRoad.obj"; - - - CommitEntity(groundshape); - CommitEntity(road_small); - } - - - { - auto water = CreateEntity(); - auto transform = AddComponent(water); - transform->Position = glm::vec3(0, -35, 0); + //transform->Scale = glm::vec3(400.0f, 10.0f, 400.0f); transform->Orientation = glm::quat(glm::vec3(0.0f, 0.0f, 0.0f)); - transform->Scale = glm::vec3(5000.f, 10.f, 5000.f); - auto model = AddComponent(water); - model->ModelFile = "Models/Placeholders/PhysicsTest/Cube.obj"; - auto blendmap = AddComponent(water); - blendmap->TextureRed = "Textures/Skybox/Sky34/bottom.jpg"; - blendmap->TextureGreen = "Textures/Skybox/Sky34/bottom.jpg"; - blendmap->TextureBlue = "Textures/Skybox/Sky34/bottom.jpg"; - blendmap->TextureRepeats = 1.f; + auto model = AddComponent(ground); + model->ModelFile = "Models/TestScene3/testScene2.obj"; + //model->ModelFile = "Models/Placeholders/Terrain/Terrain2.obj"; - auto physics = AddComponent(water); + auto physics = AddComponent(ground); physics->Mass = 10; physics->Static = true; - physics->CollisionLayer = 1; - { + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; - auto groundshape = CreateEntity(water); - auto box = AddComponent(groundshape); - box->Depth = 250.f; - box->Height = 5.f; - box->Width = 250.f; - - - CommitEntity(groundshape); - } - CommitEntity(water); - } - - { - auto ground_middle = CreateEntity(); - auto transform = AddComponent(ground_middle); - transform->Position = glm::vec3(0, -50, 0); - transform->Orientation = glm::quat(glm::vec3(0.0f, 0.0f, 0.0f)); - auto model = AddComponent(ground_middle); - model->ModelFile = "Models/TerrainFiveIstles/Middle.obj"; - auto blendmap = AddComponent(ground_middle); - blendmap->TextureRed = "Textures/Ground/SoilBeach0087_11_S.jpg"; - blendmap->TextureRedNormal = "Textures/Ground/SoilBeach0087_11_SNM.png"; - blendmap->TextureGreen = "Textures/Ground/Grass0126_2_S.jpg"; - blendmap->TextureGreenNormal = "Textures/Ground/Grass0126_2_SNM.png"; - blendmap->TextureBlue = "Textures/Ground/Cliffs2.png"; - blendmap->TextureBlueNormal = "Textures/Ground/Cliffs2NM.png"; - blendmap->TextureRepeats = 30.f; - - auto physics = AddComponent(ground_middle); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(ground_middle); + auto groundshape = CreateEntity(ground); auto transformshape = AddComponent(groundshape); auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Middle.obj"; + //meshShape->ResourceName = "Models/Placeholders/Terrain/Terrain2.obj"; + meshShape->ResourceName = "Models/TestScene3/testScene2.obj"; CommitEntity(groundshape); - CommitEntity(ground_middle); + CommitEntity(ground); } + /*EntityID tank1 = CreateTank(1); { - auto ground_small = CreateEntity(); - auto transform = AddComponent(ground_small); - transform->Position = glm::vec3(0, -50, 0); - transform->Orientation = glm::quat(glm::vec3(0.0f, 0.0f, 0.0f)); - auto model = AddComponent(ground_small); - model->ModelFile = "Models/TerrainFiveIstles/Small.obj"; - auto blendmap = AddComponent(ground_small); - blendmap->TextureRed = "Textures/Ground/SoilBeach0087_11_S.jpg"; - blendmap->TextureRedNormal = "Textures/Ground/SoilBeach0087_11_SNM.png"; - blendmap->TextureGreen = "Textures/Ground/Grass0126_2_S.jpg"; - blendmap->TextureGreenNormal = "Textures/Ground/Grass0126_2_SNM.png"; - blendmap->TextureBlue = "Textures/Ground/Cliffs2.png"; - blendmap->TextureBlueNormal = "Textures/Ground/Cliffs2NM.png"; - blendmap->TextureRepeats = 30.f; + auto transform = GetComponent(tank1); + transform->Position.z = -125.f; + transform->Position.y = -20.f; + transform->Orientation = glm::angleAxis(glm::pi(), glm::vec3(0, 1, 0)); + Events::SetViewportCamera e; + e.CameraEntity = GetProperty(tank1, "Camera"); + e.ViewportFrame = "Viewport1"; + EventBroker->Publish(e); + }*/ - auto physics = AddComponent(ground_small); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(ground_small); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Small.obj"; - - - CommitEntity(groundshape); - CommitEntity(ground_small); - } - - { - auto ground_small_mirrored = CreateEntity(); - auto transform = AddComponent(ground_small_mirrored); - transform->Position = glm::vec3(0, -50, 0); - transform->Orientation = glm::angleAxis(glm::radians(180.f), glm::vec3(0, 1, 0)); - auto model = AddComponent(ground_small_mirrored); - model->ModelFile = "Models/TerrainFiveIstles/Small.obj"; - auto blendmap = AddComponent(ground_small_mirrored); - blendmap->TextureRed = "Textures/Ground/SoilBeach0087_11_S.jpg"; - blendmap->TextureRedNormal = "Textures/Ground/SoilBeach0087_11_SNM.png"; - blendmap->TextureGreen = "Textures/Ground/Grass0126_2_S.jpg"; - blendmap->TextureGreenNormal = "Textures/Ground/Grass0126_2_SNM.png"; - blendmap->TextureBlue = "Textures/Ground/Cliffs2.png"; - blendmap->TextureBlueNormal = "Textures/Ground/Cliffs2NM.png"; - blendmap->TextureRepeats = 30.f; - - auto physics = AddComponent(ground_small_mirrored); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(ground_small_mirrored); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Small.obj"; - - - CommitEntity(groundshape); - CommitEntity(ground_small_mirrored); - } - - { - auto ground_base = CreateEntity(); - auto transform = AddComponent(ground_base); - transform->Position = glm::vec3(0, -50, 0); - transform->Orientation = glm::quat(glm::vec3(0.0f, 0.0f, 0.0f)); - auto model = AddComponent(ground_base); - model->ModelFile = "Models/TerrainFiveIstles/Base.obj"; - auto blendmap = AddComponent(ground_base); - blendmap->TextureRed = "Textures/Ground/SoilBeach0087_11_S.jpg"; - blendmap->TextureRedNormal = "Textures/Ground/SoilBeach0087_11_SNM.png"; - blendmap->TextureGreen = "Textures/Ground/Grass0126_2_S.jpg"; - blendmap->TextureGreenNormal = "Textures/Ground/Grass0126_2_SNM.png"; - blendmap->TextureBlue = "Textures/Ground/Cliffs2.png"; - blendmap->TextureBlueNormal = "Textures/Ground/Cliffs2NM.png"; - blendmap->TextureRepeats = 30.f; - - auto physics = AddComponent(ground_base); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(ground_base); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Base.obj"; - - - CommitEntity(groundshape); - CommitEntity(ground_base); - } - - { - auto ground_base_mirrored = CreateEntity(); - auto transform = AddComponent(ground_base_mirrored); - transform->Position = glm::vec3(0, -50, 0); - transform->Orientation = glm::angleAxis(glm::radians(180.f), glm::vec3(0, 1, 0)); - auto model = AddComponent(ground_base_mirrored); - model->ModelFile = "Models/TerrainFiveIstles/Base.obj"; - auto blendmap = AddComponent(ground_base_mirrored); - blendmap->TextureRed = "Textures/Ground/SoilBeach0087_11_S.jpg"; - blendmap->TextureRedNormal = "Textures/Ground/SoilBeach0087_11_SNM.png"; - blendmap->TextureGreen = "Textures/Ground/Grass0126_2_S.jpg"; - blendmap->TextureGreenNormal = "Textures/Ground/Grass0126_2_SNM.png"; - blendmap->TextureBlue = "Textures/Ground/Cliffs2.png"; - blendmap->TextureBlueNormal = "Textures/Ground/Cliffs2NM.png"; - blendmap->TextureRepeats = 30.f; - - auto physics = AddComponent(ground_base_mirrored); - physics->Mass = 10; - physics->Static = true; - physics->CollisionLayer = 1; - - auto groundshape = CreateEntity(ground_base_mirrored); - auto transformshape = AddComponent(groundshape); - auto meshShape = AddComponent(groundshape); - meshShape->ResourceName = "Models/TerrainFiveIstles/Base.obj"; - - - CommitEntity(groundshape); - CommitEntity(ground_base_mirrored); - } - - { - /* auto tree = CreateEntity(); - auto transform = AddComponent(tree); - transform->Position = glm::vec3(0, -10, 0); - auto model = AddComponent(tree); - model->ModelFile = "Models/Tree/Stem/Stem.obj"; - auto physics = AddComponent(tree); - physics->Mass = 100.f; - physics->Static = false; - physics->CalculateCenterOfMass = true; - { - auto leafs = CreateEntity(tree); - auto transform = AddComponent(leafs); - auto model = AddComponent(leafs); - model->ModelFile = "Models/Tree/Leafs/Leafs.obj"; - model->Transparent = true; - CommitEntity(leafs); - } - - { - auto shape = CreateEntity(tree); - auto transform = AddComponent(shape); - auto box = AddComponent(shape); - transform->Position = glm::vec3(0.f, 0.f, 2.29552f); - box->Width = 0.296f; - box->Height = 2.511f; - box->Depth = 0.296f; - } - - CommitEntity(tree);*/ - - } - - EntityID tank1 = CreateTank(1); - { - auto transform = GetComponent(tank1); - transform->Position.z = 50; - transform->Position.z = 50.f; - - Events::SetViewportCamera e; - e.CameraEntity = GetProperty(tank1, "Camera"); - e.ViewportFrame = "Viewport1"; - EventBroker->Publish(e); - } - - EntityID tank2 = CreateTank(2); + /*EntityID tank2 = CreateTank(2); { auto transform = GetComponent(tank2); transform->Position.x = 10.f; @@ -376,7 +139,7 @@ void GameWorld::Initialize() e.CameraEntity = GetProperty(tank2, "Camera"); e.ViewportFrame = "Viewport2"; EventBroker->Publish(e); - } + }*/ { auto flag = CreateEntity(); @@ -410,6 +173,178 @@ void GameWorld::Initialize() CommitEntity(flag); } + CreateGate(glm::vec3(0, -50, 150)); + glm::vec3 Position = glm::vec3(-3.93076, -49, 0); + { + auto garage = CreateEntity(); + auto transform = AddComponent(garage); + transform->Position = Position; + auto player = AddComponent(garage); + player->ID = 1; + + + + auto ElevatorBase = CreateEntity(garage); + { + auto transform = AddComponent(ElevatorBase); + auto model = AddComponent(ElevatorBase); + model->ModelFile = "Models/SpawnRamp/Main/Main.obj"; + auto physics = AddComponent(ElevatorBase); + physics->Static = true; + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + + { + auto mainShape = CreateEntity(ElevatorBase); + auto transform = AddComponent(mainShape); + transform->Position = glm::vec3(0.f, 0, 0.f); + auto mesh = AddComponent(mainShape); + mesh->ResourceName = "Models/SpawnRamp/Main/CollisionShape.obj"; + CommitEntity(mainShape); + } + { + auto StairsShape = CreateEntity(ElevatorBase); + auto transform = AddComponent(StairsShape); + transform->Position = glm::vec3(-7.48639f, 0.4809f, 3.79166f); + auto box = AddComponent(StairsShape); + box->Width = 1.211f; + box->Height = 1.798f; + box->Depth = 3.229f; + CommitEntity(StairsShape); + } + } + CommitEntity(ElevatorBase); + + auto leftHatch = CreateEntity(garage); + { + auto transform = AddComponent(leftHatch); + transform->Position = glm::vec3(5.83103f, 1.3553f, -2.40268f); + auto model = AddComponent(leftHatch); + model->ModelFile = "Models/SpawnRamp/LeftHatch/LeftHatch.obj"; + auto physics = AddComponent(leftHatch); + physics->Static = true; + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + auto rotate = AddComponent(leftHatch); + rotate->StartRotation = transform->Orientation; + rotate->GoalRotation = transform->Orientation * glm::angleAxis(-glm::radians(110.f),glm::vec3(0, 0, 1)); + rotate->Time = 5.f; + { + auto shape = CreateEntity(leftHatch); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(-2.79331, 0, 0); + auto box = AddComponent(shape); + box->Width = 2.317f; + box->Height = 0.183f; + box->Depth = 6.987f; + CommitEntity(shape); + } + CommitEntity(leftHatch); + } + + auto rightHatch = CreateEntity(garage); + { + auto transform = AddComponent(rightHatch); + transform->Position = glm::vec3(-4.52423f, 1.3553f, -2.40268f); + auto model = AddComponent(rightHatch); + model->ModelFile = "Models/SpawnRamp/RightHatch/RightHatch.obj"; + auto physics = AddComponent(rightHatch); + physics->Static = true; + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + auto rotate = AddComponent(rightHatch); + rotate->StartRotation = transform->Orientation; + rotate->GoalRotation = transform->Orientation * glm::angleAxis(glm::radians(110.f),glm::vec3(0, 0, 1)); + rotate->Time = 5.f; + { + auto shape = CreateEntity(rightHatch); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(2.79331, 0, 0); + auto box = AddComponent(shape); + box->Width = 2.317f; + box->Height = 0.183f; + box->Depth = 6.987f; + CommitEntity(shape); + } + CommitEntity(rightHatch); + } + + auto elevator = CreateEntity(garage); + { + auto transform = AddComponent(elevator); + transform->Position = glm::vec3(0.69385f, 1.25222f, -2.39938f) + glm::vec3(0, -9.5f, 0); + auto model = AddComponent(elevator); + model->ModelFile = "Models/SpawnRamp/Elevator/Elevator.obj"; + auto physics = AddComponent(elevator); + physics->Static = true; + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + auto move = AddComponent(elevator); + move->StartPosition = transform->Position; + move->GoalPosition = transform->Position + glm::vec3(0, 9.5f, 0); + move->Speed = 1.5f; + { + auto shape = CreateEntity(elevator); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(0, 0, 0); + auto box = AddComponent(shape); + box->Width = 4.754f; + box->Height = 0.141f; + box->Depth = 6.86f; + CommitEntity(shape); + } + + auto spawnPoint = CreateEntity(elevator); + { + auto transform = AddComponent(spawnPoint); + transform->Position.y = 1.f; + auto spawnPointComponent = AddComponent(spawnPoint); + } + CommitEntity(spawnPoint); + } + CommitEntity(elevator); + + auto garageComponent = AddComponent(garage); + garageComponent->DoorLeft = leftHatch; + garageComponent->DoorRight = rightHatch; + garageComponent->Elevator = elevator; + CommitEntity(garage); + + { + auto trigger = CreateEntity(garage); + SetProperty(trigger, "Name", "BoundsTrigger"); + auto transform = AddComponent(trigger); + transform->Position = glm::vec3(0, 44.87521f, 0); + auto triggerComponent = AddComponent(trigger); + { + auto shape = CreateEntity(trigger); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(0, 0, 0); + auto box = AddComponent(shape); + box->Width = 72.98f; + box->Height = 54.53f; + box->Depth = 72.98f; + CommitEntity(shape); + } + CommitEntity(trigger); + } + + { + auto trigger = CreateEntity(garage); + SetProperty(trigger, "Name", "ElevatorShaftTrigger"); + auto transform = AddComponent(trigger); + transform->Position = glm::vec3(0.69385f, -6.7997f, -2.0f); + auto triggerComponent = AddComponent(trigger); + { + auto shape = CreateEntity(trigger); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(0, 0, 0); + auto box = AddComponent(shape); + box->Width = 2.0f; + box->Height = 12.f; + box->Depth = 2.0f; + CommitEntity(shape); + } + CommitEntity(trigger); + } + } + //for (int i = 0; i < 500; i++) //{ // auto Light = CreateEntity(); @@ -424,18 +359,115 @@ void GameWorld::Initialize() // //auto model = AddComponent(Light, "Model"); // //model->ModelFile = "Models/Placeholders/PhysicsTest/PointLight.obj"; //} +} - +void GameWorld::Update(double dt) +{ + World::Update(dt); +} + +void GameWorld::RegisterComponents() +{ + m_ComponentFactory.Register([]() { return new Components::Transform(); }); + m_ComponentFactory.Register([]() { return new Components::Template(); }); + m_ComponentFactory.Register([]() { return new Components::Player(); }); + m_ComponentFactory.Register([]() { return new Components::Flag(); }); + m_ComponentFactory.Register([]() { return new Components::Move(); }); + m_ComponentFactory.Register([]() { return new Components::Rotate(); }); +} + +void GameWorld::RegisterSystems() +{ + m_SystemFactory.Register([this]() { return new Systems::TimerSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::DamageSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::TransformSystem(this, EventBroker, ResourceManager); }); + //m_SystemFactory.Register([this]() { return new Systems::LevelGenerationSystem(this); }); + m_SystemFactory.Register([this]() { return new Systems::InputSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::DebugSystem(this, EventBroker, ResourceManager); }); + //m_SystemFactory.Register([this]() { return new Systems::CollisionSystem(this); }); + m_SystemFactory.Register([this]() { return new Systems::ParticleSystem(this, EventBroker, ResourceManager); }); + //m_SystemFactory.Register([this]() { return new Systems::PlayerSystem(this); }); + m_SystemFactory.Register([this]() { return new Systems::FreeSteeringSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::TankSteeringSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::WheelPairSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::SoundSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::PhysicsSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::TriggerSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::FollowSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::GarageSystem(this, EventBroker, ResourceManager); }); + m_SystemFactory.Register([this]() { return new Systems::RenderSystem(this, EventBroker, ResourceManager); }); +} + +void GameWorld::AddSystems() +{ + AddSystem(); + AddSystem(); + AddSystem(); + //AddSystem(); + AddSystem(); + AddSystem(); + //AddSystem(); + AddSystem(); + //AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); + AddSystem(); +} + +void GameWorld::BindKey(int keyCode, std::string command, float value) +{ + Events::BindKey e; + e.KeyCode = keyCode; + e.Command = command; + e.Value = value; + EventBroker->Publish(e); +} + +void GameWorld::BindMouseButton(int button, std::string command, float value) +{ + Events::BindMouseButton e; + e.Button = button; + e.Command = command; + e.Value = value; + EventBroker->Publish(e); +} + +void GameWorld::BindGamepadAxis(Gamepad::Axis axis, std::string command, float value) +{ + Events::BindGamepadAxis e; + e.Axis = axis; + e.Command = command; + e.Value = value; + EventBroker->Publish(e); +} + +void GameWorld::BindGamepadButton(Gamepad::Button button, std::string command, float value) +{ + Events::BindGamepadButton e; + e.Button = button; + e.Command = command; + e.Value = value; + EventBroker->Publish(e); +} + +void GameWorld::CreateGate(glm::vec3 Position) +{ { auto gateBase = CreateEntity(); auto transform = AddComponent(gateBase); - transform->Position = glm::vec3(0, -50, 150); + transform->Position = Position; auto model = AddComponent(gateBase); model->ModelFile = "Models/Gate/Lift/Lift.obj"; - auto physics = AddComponent(gateBase); physics->Static = true; - physics->CollisionLayer = 1; // Terrain-Layer + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + { auto leftBaseShape = CreateEntity(gateBase); auto transform = AddComponent(leftBaseShape); @@ -480,387 +512,71 @@ void GameWorld::Initialize() auto RampShape = CreateEntity(gateBase); auto transform = AddComponent(RampShape); transform->Position = glm::vec3(0, 0.24f, 0); - auto box = AddComponent(RampShape); - box->Width = 14.9f/2; - box->Height = 0.38f/2; - box->Depth = 1.484f/2; + auto mesh = AddComponent(RampShape); + mesh->ResourceName = "Models/Gate/Lift/RampCollision.obj"; CommitEntity(RampShape); } CommitEntity(gateBase); } -} - -void GameWorld::Update(double dt) -{ - World::Update(dt); -} - -void GameWorld::RegisterComponents() -{ - m_ComponentFactory.Register([]() { return new Components::Transform(); }); - m_ComponentFactory.Register([]() { return new Components::Template(); }); - m_ComponentFactory.Register([]() { return new Components::Player(); }); - m_ComponentFactory.Register([]() { return new Components::Flag(); }); -} - -void GameWorld::RegisterSystems() -{ - m_SystemFactory.Register([this]() { return new Systems::TimerSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::DamageSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::TransformSystem(this, EventBroker, ResourceManager); }); - //m_SystemFactory.Register([this]() { return new Systems::LevelGenerationSystem(this); }); - m_SystemFactory.Register([this]() { return new Systems::InputSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::DebugSystem(this, EventBroker, ResourceManager); }); - //m_SystemFactory.Register([this]() { return new Systems::CollisionSystem(this); }); - m_SystemFactory.Register([this]() { return new Systems::ParticleSystem(this, EventBroker, ResourceManager); }); - //m_SystemFactory.Register([this]() { return new Systems::PlayerSystem(this); }); - m_SystemFactory.Register([this]() { return new Systems::FreeSteeringSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::TankSteeringSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::WheelPairSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::SoundSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::PhysicsSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::TriggerSystem(this, EventBroker, ResourceManager); }); - m_SystemFactory.Register([this]() { return new Systems::RenderSystem(this, EventBroker, ResourceManager); }); -} - -void GameWorld::AddSystems() -{ - AddSystem(); - AddSystem(); - AddSystem(); - //AddSystem(); - AddSystem(); - AddSystem(); - //AddSystem(); - AddSystem(); - //AddSystem(); - AddSystem(); - AddSystem(); - AddSystem(); - AddSystem(); - AddSystem(); - AddSystem(); - AddSystem(); -} - -void GameWorld::BindKey(int keyCode, std::string command, float value) -{ - Events::BindKey e; - e.KeyCode = keyCode; - e.Command = command; - e.Value = value; - EventBroker->Publish(e); -} - -void GameWorld::BindMouseButton(int button, std::string command, float value) -{ - Events::BindMouseButton e; - e.Button = button; - e.Command = command; - e.Value = value; - EventBroker->Publish(e); -} - -void GameWorld::BindGamepadAxis(Gamepad::Axis axis, std::string command, float value) -{ - Events::BindGamepadAxis e; - e.Axis = axis; - e.Command = command; - e.Value = value; - EventBroker->Publish(e); -} - -void GameWorld::BindGamepadButton(Gamepad::Button button, std::string command, float value) -{ - Events::BindGamepadButton e; - e.Button = button; - e.Command = command; - e.Value = value; - EventBroker->Publish(e); -} - -EntityID GameWorld::CreateTank(int playerID) -{ - auto tank = CreateEntity(); - auto transform = AddComponent(tank); - transform->Position = glm::vec3(0, 5, 0); - //transform->Orientation = glm::angleAxis(0.f, glm::vec3(0, 1, 0)); - auto physics = AddComponent(tank); - physics->Mass = 63000 - 16000; - physics->Static = false; - auto vehicle = AddComponent(tank); - vehicle->MaxTorque = 36000.f; - vehicle->MaxSteeringAngle = 90.f; - vehicle->MaxSpeedFullSteeringAngle = 4.f; - auto player = AddComponent(tank); - player->ID = playerID; - auto tankSteering = AddComponent(tank); - AddComponent(tank); - auto health = AddComponent(tank); - health->Amount = 100.f; - { - auto shape = CreateEntity(tank); - auto transform = AddComponent(shape); - auto meshShape = AddComponent(shape); - meshShape->ResourceName = "Models/Tank/Fix/ChassiCollision.obj"; - CommitEntity(shape); - - // auto box = AddComponent(jeep); - // box->Width = 1.487f; - // box->Height = 0.727f; - // box->Depth = 2.594f; - - } - - { - auto chassis = CreateEntity(tank); - auto transform = AddComponent(chassis); - transform->Position = glm::vec3(0, 0, 0); - auto model = AddComponent(chassis); - model->ModelFile = "Models/Tank/tankBody.obj"; - } - { - auto tower = CreateEntity(tank); - SetProperty(tower, "Name", "tower"); - auto transform = AddComponent(tower); - transform->Position = glm::vec3(0.f, 0.68f, 0.9f); - auto model = AddComponent(tower); - model->ModelFile = "Models/Tank/tankTop.obj"; - auto towerSteering = AddComponent(tower); - towerSteering->Axis = glm::vec3(0.f, 1.f, 0.f); - towerSteering->TurnSpeed = glm::pi() / 4.f; + auto gate = CreateEntity(); + auto transform = AddComponent(gate); + transform->Position = Position; + auto model = AddComponent(gate); + model->ModelFile = "Models/Gate/Gate/Gate.obj"; + auto physics = AddComponent(gate); + physics->Static = true; + physics->CollisionLayer = (int)Components::Physics::CollisionLayer::STATIC; + auto move = AddComponent(gate); + move->Speed = 5.f; + move->GoalPosition = glm::vec3(Position.x, Position.y + 9.02345f, Position.z); + move->StartPosition = glm::vec3(Position.x, Position.y, Position.z); { - auto barrel = CreateEntity(tower); - auto transform = AddComponent(barrel); - transform->Position = glm::vec3(-0.012f, 0.4f, -0.75); - auto model = AddComponent(barrel); - model->ModelFile = "Models/Tank/tankBarrel.obj"; - auto barrelSteering = AddComponent(barrel); - barrelSteering->Axis = glm::vec3(1.f, 0.f, 0.f); - barrelSteering->TurnSpeed = glm::pi() / 4.f; - barrelSteering->ShotSpeed = 70.f; + auto mainShape = CreateEntity(gate); + auto transform = AddComponent(mainShape); + transform->Position = glm::vec3(0.f, 3.09776f, 0.f); + auto box = AddComponent(mainShape); + box->Width = 6.963f; + box->Height = 2.478f; + box->Depth = 0.522f; + CommitEntity(mainShape); + } + { + auto lowerShape = CreateEntity(gate); + auto transform = AddComponent(lowerShape); + transform->Position = glm::vec3(0.f, 0.35f, 0.f); + auto box = AddComponent(lowerShape); + box->Width = 6.963f; + box->Height = 0.308f; + box->Depth = 0.222f; + CommitEntity(lowerShape); + } + CommitEntity(gate); + + { + auto gateTrigger = CreateEntity(); + auto transform = AddComponent(gateTrigger); + transform->Position = glm::vec3(Position.x, Position.y + 2.8241, Position.z); + auto trigger = AddComponent(gateTrigger); + auto triggerMove = AddComponent(gateTrigger); + triggerMove->Entity = gate; + + { - auto shot = CreateEntity(barrel); - auto transform = AddComponent(shot); - transform->Position = glm::vec3(0.35f, 0.f, -2.f); - transform->Orientation = glm::angleAxis(-glm::pi() / 2.f, glm::vec3(1, 0, 0)); - transform->Scale = glm::vec3(3.f); - AddComponent(shot); - auto physics = AddComponent(shot); - physics->Mass = 25.f; - physics->Static = false; - physics->CollisionEvent = true; - auto modelComponent = AddComponent(shot); - modelComponent->ModelFile = "Models/Placeholders/rocket/Rocket.obj"; - auto tankShellComponent = AddComponent(shot); - tankShellComponent->Damage = 20.f; - tankShellComponent->ExplosionRadius = 30.f; - tankShellComponent->ExplosionStrength = 300000.f; - { - auto shape = CreateEntity(shot); - auto transform = AddComponent(shape); - auto boxShape = AddComponent(shape); - boxShape->Width = 0.5f; - boxShape->Height = 0.5f; - boxShape->Depth = 0.5f; - CommitEntity(shape); - } - CommitEntity(shot); - barrelSteering->ShotTemplate = shot; - - - auto cameraTower = CreateEntity(barrel); - { - auto transform = AddComponent(cameraTower); - transform->Position.z = 16.f; - transform->Position.y = 4.f; - transform->Orientation = glm::quat(glm::vec3(-glm::radians(5.f), 0.f, 0.f)); - auto cameraComp = AddComponent(cameraTower); - cameraComp->FarClip = 2000.f; - //auto freeSteering = AddComponent(cameraTower); - } - - SetProperty(tank, "Camera", cameraTower); + auto shape = CreateEntity(gateTrigger); + auto transform = AddComponent(shape); + transform->Position = glm::vec3(0.f, 2.8241f, 0.f); + auto box = AddComponent(shape); + box->Width = 6.963f; + box->Height = 3.104f; + box->Depth = 10.356f; + CommitEntity(shape); } - CommitEntity(barrel); - tankSteering->Barrel = barrel; + CommitEntity(gateTrigger); } - CommitEntity(tower); - tankSteering->Turret = tower; - - } - - //{ - // auto lightentity = CreateEntity(tank); - // auto transform = AddComponent(lightentity); - // transform->Position = glm::vec3(0, 0, 0); - // auto light = AddComponent(lightentity); - // //light->Diffuse = glm::vec3(128.f/255.f, 172.f/255.f, 242.f/255.f); - // //light->Specular = glm::vec3(1.f); - // /*light->ConstantAttenuation = 0.3f; - // light->LinearAttenuation = 0.003f; - // light->QuadraticAttenuation = 0.002f;*/ - //} - - // auto wheelpair = CreateEntity(tank); - // SetProperty(wheelpair, "Name", "WheelPair"); - // AddComponent(wheelpair, "WheelPairThingy"); - -#pragma region Wheels - //Create wheels - float wheelOffset = -0.83f; - const float suspensionStrength = 15.f; - const float springLength = 0.3f; - - AddTankWheelPair(tank, glm::vec3(1.68f, wheelOffset, -1.715f), 0, true); - AddTankWheelPair(tank, glm::vec3(-1.68f, wheelOffset, -1.715f), 0, true); - AddTankWheelPair(tank, glm::vec3(1.68f, wheelOffset, 2.375), 1, false); - AddTankWheelPair(tank, glm::vec3(-1.68f, wheelOffset, 2.375), 1, false); -#pragma endregion - - -// auto entity = CreateEntity(tank); -// auto transformComponent = AddComponent(entity); -// transformComponent->Position = glm::vec3(2, -1.7, 2.0); -// transformComponent->Scale = glm::vec3(3, 3, 3); -// transformComponent->Orientation = glm::angleAxis(glm::pi() / 2, glm::vec3(1, 0, 0)); -// auto emitterComponent = AddComponent(entity); -// emitterComponent->SpawnCount = 2; -// emitterComponent->SpawnFrequency = 0.005; -// emitterComponent->SpreadAngle = glm::pi(); -// emitterComponent->UseGoalVelocity = false; -// emitterComponent->LifeTime = 0.5; -// //emitterComponent->AngularVelocitySpectrum.push_back(glm::pi() / 100); -// emitterComponent->ScaleSpectrum.push_back(glm::vec3(0.05)); -// CommitEntity(entity); -// -// { -// auto particleEntity = CreateEntity(entity); -// auto templateComponent = AddComponent(particleEntity); -// auto TEMP = AddComponent(particleEntity); -// TEMP->Scale = glm::vec3(0); -// auto spriteComponent = AddComponent(particleEntity); -// spriteComponent->SpriteFile = "Models/Textures/Sprites/Dust.png"; -// CommitEntity(particleEntity); -// emitterComponent->ParticleTemplate = particleEntity; -// } - - CommitEntity(tank); - - return tank; -} - -void GameWorld::AddTankWheelPair(EntityID tankEntity, glm::vec3 position, int axleID, bool front) -{ - const float separation = 1.77f; - const float suspensionStrength = 15.f; - const float springLength = 0.3f; - - bool steering = front; - - auto wheelFront = CreateEntity(tankEntity); - { - auto transform = AddComponent(wheelFront); - transform->Position = position - glm::vec3(0, 0, separation / 2.f); // glm::vec3(1.68f, -0.83f - wheelOffset, -0.83f); - //transform->Orientation = glm::angleAxis(glm::pi(), glm::vec3(0, 1, 0)); -#ifdef DEBUG - auto model = AddComponent(wheelFront); - model->ModelFile = "Models/Tank/Fix/WheelPhysics.obj"; -#endif - auto Wheel = AddComponent(wheelFront); - Wheel->Hardpoint = transform->Position + glm::vec3(0.f, springLength, 0.f); - Wheel->AxleID = axleID; - Wheel->Mass = 2000; - Wheel->Radius = 0.6f; - Wheel->Steering = steering; - Wheel->SuspensionStrength = suspensionStrength; - Wheel->Friction = 3.f; - Wheel->ConnectedToHandbrake = true; - Wheel->TorqueRatio = 0.125f; - Wheel->Width = 0.6f; - { - auto shape = CreateEntity(wheelFront); - auto shapetransform = AddComponent(shape); - shapetransform->Position = glm::vec3(0.f, 0.32f, 0.f) + transform->Position; - auto boxShape = AddComponent(shape); - boxShape->Width = 0.7f; - boxShape->Height = 0.34f; - boxShape->Depth = 0.7f; - CommitEntity(shape); - } - CommitEntity(wheelFront); - } - - auto wheelBack = CreateEntity(tankEntity); - { - auto transform = AddComponent(wheelBack); - transform->Position = position + glm::vec3(0, 0, separation / 2.f); // glm::vec3(1.68f, -0.83f - wheelOffset, -2.6f); - //transform->Orientation = glm::angleAxis(glm::pi(), glm::vec3(0, 1, 0)); -#ifdef DEBUG - auto model = AddComponent(wheelBack); - model->ModelFile = "Models/Tank/Fix/WheelPhysics.obj"; -#endif - auto Wheel = AddComponent(wheelBack); - Wheel->Hardpoint = transform->Position + glm::vec3(0.f, springLength, 0.f); - Wheel->AxleID = axleID; - Wheel->Mass = 2000; - Wheel->Radius = 0.6f; - Wheel->Steering = steering; - Wheel->SuspensionStrength = suspensionStrength; - Wheel->Friction = 3.f; - Wheel->ConnectedToHandbrake = true; - Wheel->TorqueRatio = 0.125f; - Wheel->Width = 0.6f; - { - auto shape = CreateEntity(wheelBack); - auto shapetransform = AddComponent(shape); - shapetransform->Position = glm::vec3(0.f, 0.32f, 0.f) + transform->Position; - auto boxShape = AddComponent(shape); - boxShape->Width = 0.7f; - boxShape->Height = 0.34f; - boxShape->Depth = 0.7f; - CommitEntity(shape); - } - CommitEntity(wheelBack); - } - - auto wheelPair = CreateEntity(tankEntity); - { - { - auto transform = AddComponent(wheelPair); - transform->Position = position; - //transform->Orientation = glm::quat(glm::vec3(0, glm::pi() / 4.f, 0)); - - auto pair = AddComponent(wheelPair); - pair->FakeWheelFront = wheelFront; - pair->FakeWheelBack = wheelBack; - } - - auto modelEntity = CreateEntity(wheelPair); - { - auto transform = AddComponent(modelEntity); - //transform->Position = glm::vec3(0.f, 0.35f, 0.f); - if (front) - { - transform->Position = glm::vec3(0.f, 0.03f, 0.f); - transform->Orientation = glm::quat(glm::vec3(0, glm::pi(), 0)); - } - else - { - transform->Position = glm::vec3(0.f, 0.17f, 0.f); - transform->Scale = glm::vec3(1.f, 1.2f, 1.2f); - } - - auto model = AddComponent(modelEntity); - model->ModelFile = "Models/Tank/tankWheel.obj"; - } - CommitEntity(modelEntity); - } - CommitEntity(wheelPair); } EntityID GameWorld::CreateJeep(int playerID) @@ -873,7 +589,14 @@ EntityID GameWorld::CreateJeep(int playerID) physics->Mass = 1800; physics->Static = false; auto vehicle = AddComponent(jeep); + vehicle->DownshiftRPM = 3500.f; + vehicle->UpshiftRPM = 6000.f; + AddComponent(jeep); + auto player = AddComponent(jeep); + player->ID = playerID; + auto health = AddComponent(jeep); + health->Amount = 100.f; { auto shape = CreateEntity(jeep); @@ -881,12 +604,6 @@ EntityID GameWorld::CreateJeep(int playerID) auto meshShape = AddComponent(shape); meshShape->ResourceName = "Models/Jeep/Chassi/ChassiCollision.obj"; CommitEntity(shape); - - // auto box = AddComponent(jeep); - // box->Width = 1.487f; - // box->Height = 0.727f; - // box->Depth = 2.594f; - } { @@ -897,16 +614,6 @@ EntityID GameWorld::CreateJeep(int playerID) model->ModelFile = "Models/Jeep/Chassi/chassi.obj"; } - { - auto lightentity = CreateEntity(jeep); - auto transform = AddComponent(lightentity); - transform->Position = glm::vec3(0, 15, 0); - auto light = AddComponent(lightentity); - light->Diffuse = glm::vec3(128.f / 255.f, 172.f / 255.f, 242.f / 255.f); - light->Specular = glm::vec3(1.f); - } - - //Create wheels float wheelOffset = 0.4f; float springLength = 0.3f; diff --git a/src/GameWorld.h b/src/GameWorld.h index aae2472..1ca7de7 100755 --- a/src/GameWorld.h +++ b/src/GameWorld.h @@ -21,6 +21,8 @@ #include "Systems/TimerSystem.h" #include "Systems/DamageSystem.h" #include "Systems/WheelPairSystem.h" +#include "Systems/FollowSystem.h" +#include "Systems/GarageSystem.h" #include "Components/Camera.h" #include "Components/DirectionalLight.h" @@ -49,6 +51,10 @@ #include "Components/Trigger.h" #include "Components/Flag.h" #include "Components/WheelPair.h" +#include "Components/Follow.h" +#include "Components/TriggerRotate.h" +#include "Components/Move.h" +#include "Components/Rotate.h" class GameWorld : public World { @@ -72,6 +78,7 @@ private: void BindGamepadButton(Gamepad::Button button, std::string command, float value); EntityID CreateTank(int playerID); + void CreateGate(glm::vec3 Position); void AddTankWheelPair(EntityID tankEntity, glm::vec3 position, int axleID, bool steering); EntityID CreateJeep(int playerID); }; diff --git a/src/Physics/VehicleSetup.cpp b/src/Physics/VehicleSetup.cpp index 3568a26..893ced8 100644 --- a/src/Physics/VehicleSetup.cpp +++ b/src/Physics/VehicleSetup.cpp @@ -8,7 +8,8 @@ void VehicleSetup::buildVehicle(World *world, const hkpWorld* physicsWorld, hkpVehicleInstance& vehicle, EntityID vehicleEntity, std::vector wheelEntities) { auto vehicleComponent = world->GetComponent(vehicleEntity); - + auto tankSteeringComponent = world->GetComponent(vehicleEntity); + WheelData wheelData; for (int i = 0; i < wheelEntities.size(); i++) { @@ -22,7 +23,14 @@ void VehicleSetup::buildVehicle(World *world, const hkpWorld* physicsWorld, hkpV // vehicle.m_data = new hkpVehicleData; vehicle.m_driverInput = new hkpVehicleDefaultAnalogDriverInput; - vehicle.m_steering = new TankSteering; + if(tankSteeringComponent) + { + vehicle.m_steering = new TankSteering; + } + else + { + vehicle.m_steering = new hkpVehicleDefaultSteering; + } vehicle.m_engine = new hkpVehicleDefaultEngine; vehicle.m_transmission = new hkpVehicleDefaultTransmission; vehicle.m_brake = new hkpVehicleDefaultBrake; @@ -196,15 +204,15 @@ void VehicleSetup::setupComponent(const hkpVehicleData& data, hkpVehicleDefaultT transmission.m_gearsRatio.setSize(numberOfGears); transmission.m_wheelsTorqueRatio.setSize(data.m_numWheels); - transmission.m_downshiftRPM = 3500.0f; //HACK: Should be in VehicleComponent - transmission.m_upshiftRPM = 7000.0f; + transmission.m_downshiftRPM = vehicleComponent.DownshiftRPM; //HACK: Should be in VehicleComponent + transmission.m_upshiftRPM = vehicleComponent.UpshiftRPM; - transmission.m_clutchDelayTime = 1.5f; + transmission.m_clutchDelayTime = 0.0f; transmission.m_reverseGearRatio = 1.0f; - transmission.m_gearsRatio[0] = 3.0f; - transmission.m_gearsRatio[1] = 2.25f; - transmission.m_gearsRatio[2] = 1.5f; - transmission.m_gearsRatio[3] = 1.0f; + transmission.m_gearsRatio[0] = vehicleComponent.gearsRatio0; + transmission.m_gearsRatio[1] = vehicleComponent.gearsRatio1; + transmission.m_gearsRatio[2] = vehicleComponent.gearsRatio2; + transmission.m_gearsRatio[3] = vehicleComponent.gearsRatio3; for(int i = 0; i < m_Wheels.size(); i++) { @@ -212,7 +220,7 @@ void VehicleSetup::setupComponent(const hkpVehicleData& data, hkpVehicleDefaultT transmission.m_wheelsTorqueRatio[i] = m_Wheels[i].WheelComponent->TorqueRatio; } - transmission.m_primaryTransmissionRatio = hkpVehicleDefaultTransmission::calculatePrimaryTransmissionRatio( + transmission.m_primaryTransmissionRatio = hkpVehicleDefaultTransmission::calculatePrimaryTransmissionRatioKPH( vehicleComponent.TopSpeed, m_Wheels[0].WheelComponent->Radius, // HACK: All wheels are the same size right? vehicleComponent.MaxRPM, diff --git a/src/Physics/VehicleSetup.h b/src/Physics/VehicleSetup.h index bf75840..2f18ed8 100644 --- a/src/Physics/VehicleSetup.h +++ b/src/Physics/VehicleSetup.h @@ -32,6 +32,7 @@ #include "Components/Vehicle.h" #include "Components/Wheel.h" #include "Components/Transform.h" +#include "Components/TankSteering.h" /// Tank specific steering implementation. Rear wheels steer in opposite direction diff --git a/src/Sound.cpp b/src/Sound.cpp index 98257dd..c926dc7 100644 --- a/src/Sound.cpp +++ b/src/Sound.cpp @@ -1,96 +1,20 @@ #include "PrecompiledHeader.h" #include "Sound.h" -Sound::Sound(std::string path) + +Sound::Sound(std::string path, FMOD_SYSTEM* system, Components::SoundEmitter::SoundType type) { - m_Buffer = 0; - m_Buffer = LoadFile(path); + if(type == Components::SoundEmitter::SoundType::SOUND_2D) + { + FMOD_System_CreateSound(system, path.c_str(), FMOD_2D, NULL, &m_Sound); + } + if(type == Components::SoundEmitter::SoundType::SOUND_3D) + { + FMOD_System_CreateSound(system, path.c_str(), FMOD_3D, NULL, &m_Sound); + } } -ALuint Sound::LoadFile(std::string path) +Sound::~Sound() { - char type[4]; - unsigned long size, chunkSize; - short formatType, channels; - unsigned long sampleRate, avgBytesPerSec; - short bytesPerSample, bitsPerSample; - unsigned long dataSize; - - FILE* fp = NULL; - fp = fopen(path.c_str(), "rb"); - - if (fp == NULL) - { - LOG_ERROR("Failed to load sound file \"%s\"", path.c_str()); - return 0; - } - - //CHECK FOR VALID WAVE-FILE - fread(type, sizeof(char), 4, fp); - if (type[0] != 'R' || type[1] != 'I' || type[2] != 'F' || type[3] != 'F') - { - LOG_ERROR("ERROR: No RIFF in WAVE-file"); - return 0; - } - - fread(&size, sizeof(unsigned long), 1, fp); - fread(type, sizeof(char), 4, fp); - if (type[0] != 'W' || type[1] != 'A' || type[2] != 'V' || type[3] != 'E') - { - LOG_ERROR("ERROR: Not WAVE-file"); - return 0; - } - - fread(type, sizeof(char), 4, fp); - if (type[0] != 'f' || type[1] != 'm' || type[2] != 't' || type[3] != ' ') - { - LOG_ERROR("ERROR: No fmt in WAVE-file"); - return 0; - } - - //READ THE DATA FROM WAVE-FILE - fread(&chunkSize, sizeof(unsigned long), 1, fp); - fread(&formatType, sizeof(short), 1, fp); - fread(&channels, sizeof(short), 1, fp); - fread(&sampleRate, sizeof(unsigned long), 1, fp); - fread(&avgBytesPerSec, sizeof(unsigned long), 1, fp); - fread(&bytesPerSample, sizeof(short), 1, fp); - fread(&bitsPerSample, sizeof(short), 1, fp); - - fread(type, sizeof(char), 4, fp); - if (type[0] != 'd' || type[1] != 'a' || type[2] != 't' || type[3] != 'a') - { - LOG_ERROR("ERROR: WAVE-file Missing data"); - return 0; - } - - fread(&dataSize, sizeof(unsigned long), 1, fp); - - unsigned char* buf = new unsigned char[dataSize]; - fread(buf, sizeof(unsigned char), dataSize, fp); - fclose(fp); - - // Create buffer - ALuint format = 0; - if (bitsPerSample == 8) - { - if (channels == 1) - format = AL_FORMAT_MONO8; - else if (channels == 2) - format = AL_FORMAT_STEREO8; - } - if (bitsPerSample == 16) - { - if (channels == 1) - format = AL_FORMAT_MONO16; - else if (channels == 2) - format = AL_FORMAT_STEREO16; - } - - ALuint buffer; - alGenBuffers(1, &buffer); - alBufferData(buffer, format, buf, dataSize, sampleRate); - delete[] buf; - - return buffer; -} + FMOD_Sound_Release(m_Sound); +} \ No newline at end of file diff --git a/src/Sound.h b/src/Sound.h index 236768e..6a47e45 100644 --- a/src/Sound.h +++ b/src/Sound.h @@ -1,22 +1,21 @@ #ifndef Sound_h__ #define Sound_h__ -#include -#include - #include "ResourceManager.h" +#include +#include +#include class Sound : public Resource { public: - Sound(std::string path); + Sound(std::string path, FMOD_SYSTEM* system, Components::SoundEmitter::SoundType type); + ~Sound(); - ALuint LoadFile(std::string path); - - operator ALuint() const { return m_Buffer; } + operator FMOD_SOUND*() const { return m_Sound; } private: - ALuint m_Buffer; + FMOD_SOUND* m_Sound; }; #endif // Sound_h__ diff --git a/src/System.h b/src/System.h index 9e94dab..f1fd616 100755 --- a/src/System.h +++ b/src/System.h @@ -29,8 +29,6 @@ public: // Called once for every entity in the world every tick virtual void UpdateEntity(double dt, EntityID entity, EntityID parent) { } - // Called when a component is created - virtual void OnComponentCreated(std::string type, std::shared_ptr component) { } // Called when a component is removed virtual void OnComponentRemoved(EntityID entity, std::string type, Component* component) { } // Called when components are committed to an entity diff --git a/src/Systems/DebugSystem.cpp b/src/Systems/DebugSystem.cpp index f076664..b8d6d28 100644 --- a/src/Systems/DebugSystem.cpp +++ b/src/Systems/DebugSystem.cpp @@ -19,10 +19,10 @@ bool Systems::DebugSystem::OnKeyDown(const Events::KeyDown &event) { if (event.KeyCode == GLFW_KEY_ENTER) { - Events::PlaySound e; + Events::PlaySFX e; e.Emitter = 0; e.Resource = "Sounds/korvring.wav"; - EventBroker->Publish(e); + EventBroker->Publish(e); return true; } diff --git a/src/Systems/DebugSystem.h b/src/Systems/DebugSystem.h index afdc091..525c127 100644 --- a/src/Systems/DebugSystem.h +++ b/src/Systems/DebugSystem.h @@ -4,7 +4,7 @@ #include "System.h" #include "Components/Transform.h" #include "Events/KeyDown.h" -#include "Events/PlaySound.h" +#include "Events/PlaySFX.h" namespace Systems { diff --git a/src/Systems/FollowSystem.cpp b/src/Systems/FollowSystem.cpp new file mode 100644 index 0000000..b4dcbe7 --- /dev/null +++ b/src/Systems/FollowSystem.cpp @@ -0,0 +1,26 @@ +#include "PrecompiledHeader.h" +#include "FollowSystem.h" +#include "World.h" + +void Systems::FollowSystem::RegisterComponents( ComponentFactory* cf ) +{ + cf->Register([]() { return new Components::Follow(); }); +} + +void Systems::FollowSystem::Update( double dt ) +{ + +} + +void Systems::FollowSystem::UpdateEntity( double dt, EntityID entity, EntityID parent ) +{ + auto followComponent = m_World->GetComponent(entity); + auto transformComponent = m_World->GetComponent(entity); + if(!followComponent || !transformComponent) + return; + auto absoluteTransformTarget = m_World->GetSystem()->AbsoluteTransform(followComponent->Entity); + + glm::vec3 Offset = (absoluteTransformTarget.Orientation * glm::normalize(absoluteTransformTarget.Position) * followComponent->Distance); + transformComponent->Position = (absoluteTransformTarget.Position + Offset); + transformComponent->Orientation = -glm::quat(glm::eulerAngles(absoluteTransformTarget.Orientation) * followComponent->FollowAxis); +} diff --git a/src/Systems/FollowSystem.h b/src/Systems/FollowSystem.h new file mode 100644 index 0000000..c57b775 --- /dev/null +++ b/src/Systems/FollowSystem.h @@ -0,0 +1,37 @@ +#ifndef FollowSystem_h__ +#define FollowSystem_h__ + + +#include "System.h" +#include "Systems/TransformSystem.h" +#include "Components/Transform.h" +#include "Components/Follow.h" + +#include "Events/Move.h" +#include "Events/Rotate.h" + + +namespace Systems +{ + class FollowSystem : public System + { + public: + + FollowSystem(World* world, std::shared_ptr<::EventBroker> eventBroker, std::shared_ptr<::ResourceManager> resourceManager) + : System(world, eventBroker, resourceManager) { } + + //void Initialize() override; + void RegisterComponents(ComponentFactory* cf) override; + void Update(double dt) override; + void UpdateEntity(double dt, EntityID entity, EntityID parent) override; + /*void OnComponentCreated(std::string type, std::shared_ptr component) override; + void OnComponentRemoved(EntityID entity, std::string type, Component* component) override; + void OnEntityCommit(EntityID entity) override; + void OnEntityRemoved(EntityID entity) override;*/ + + private: + + }; + +} +#endif // FollowSystem_h__ diff --git a/src/Systems/GarageSystem.cpp b/src/Systems/GarageSystem.cpp new file mode 100644 index 0000000..d019b27 --- /dev/null +++ b/src/Systems/GarageSystem.cpp @@ -0,0 +1,142 @@ +#include "PrecompiledHeader.h" +#include "GarageSystem.h" +#include "World.h" + +void Systems::GarageSystem::RegisterComponents( ComponentFactory* cf ) +{ + cf->Register([]() { return new Components::Garage(); }); + cf->Register([]() { return new Components::SpawnPoint(); }); +} + +void Systems::GarageSystem::Initialize() +{ + EVENT_SUBSCRIBE_MEMBER(m_EEnterTrigger, &Systems::GarageSystem::OnEnterTrigger); + EVENT_SUBSCRIBE_MEMBER(m_ELeaveTrigger, &Systems::GarageSystem::OnLeaveTrigger); + EVENT_SUBSCRIBE_MEMBER(m_ECommand, &Systems::GarageSystem::OnCommand); +} + +void Systems::GarageSystem::Update(double dt) +{ + +} + +void Systems::GarageSystem::UpdateEntity(double dt, EntityID entity, EntityID parent) +{ + +} + +bool Systems::GarageSystem::OnEnterTrigger(const Events::EnterTrigger &event) +{ + EntityID garage = m_World->GetEntityParent(event.Trigger); + if (garage == 0) + return false; + auto garageComponent = m_World->GetComponent(garage); + if (!garageComponent) + return false; + + std::string name = m_World->GetProperty(event.Trigger, "Name"); + + if (name == "BoundsTrigger") + { + ToggleGarage(garageComponent); + } + + m_EntitiesInTrigger[event.Trigger].insert(event.Entity); + + return true; +} + + +bool Systems::GarageSystem::OnLeaveTrigger(const Events::LeaveTrigger &event) +{ + EntityID garage = m_World->GetEntityParent(event.Trigger); + if (garage == 0) + return false; + auto garageComponent = m_World->GetComponent(garage); + if (!garageComponent) + return false; + + std::string name = m_World->GetProperty(event.Trigger, "Name"); + + if (name == "BoundsTrigger") + { + ToggleGarage(garageComponent); + } + + m_EntitiesInTrigger[event.Trigger].erase(event.Entity); + + return true; +} + +bool Systems::GarageSystem::OnCommand(const Events::InputCommand &event) +{ + if (event.Command == "use" && event.Value > 0) + { + for (auto &pair : m_EntitiesInTrigger) + { + EntityID trigger = pair.first; + auto entities = pair.second; + + std::string name = m_World->GetProperty(trigger, "Name"); + if (name != "ElevatorShaftTrigger") + continue; + + auto triggerBaseParent = m_World->GetEntityBaseParent(trigger); + auto triggerPlayerComponent = m_World->GetComponent(triggerBaseParent); + + for (EntityID entity : entities) + { + auto entityPlayerComponent = m_World->GetComponent(triggerBaseParent); + if (triggerPlayerComponent == entityPlayerComponent) + { + EntityID garage = m_World->GetEntityParent(trigger); + auto garageComponent = m_World->GetComponent(garage); + ToggleGarage(garageComponent); + } + } + } + } + + return true; +} + +void Systems::GarageSystem::ToggleGarage(Components::Garage* garageComponent) +{ + // Elevator + if (garageComponent->Elevator != 0) + { + auto move = m_World->GetComponent(garageComponent->Elevator); + Events::Move e; + e.Entity = garageComponent->Elevator; + e.GoalPosition = move->GoalPosition; + e.Speed = move->Speed; + e.Queue = true; + EventBroker->Publish(e); + std::swap(move->GoalPosition, move->StartPosition); + } + + // Left door + if (garageComponent->DoorLeft != 0) + { + auto rotate = m_World->GetComponent(garageComponent->DoorLeft); + Events::Rotate e; + e.Entity = garageComponent->DoorLeft; + e.GoalRotation = rotate->GoalRotation; + e.Time = rotate->Time; + e.Queue = true; + EventBroker->Publish(e); + std::swap(rotate->GoalRotation, rotate->StartRotation); + } + // Right door + if (garageComponent->DoorRight != 0) + { + auto rotate = m_World->GetComponent(garageComponent->DoorRight); + Events::Rotate e; + e.Entity = garageComponent->DoorRight; + e.GoalRotation = rotate->GoalRotation; + e.Time = rotate->Time; + e.Queue = true; + EventBroker->Publish(e); + std::swap(rotate->GoalRotation, rotate->StartRotation); + } +} diff --git a/src/Systems/GarageSystem.h b/src/Systems/GarageSystem.h new file mode 100644 index 0000000..aca5673 --- /dev/null +++ b/src/Systems/GarageSystem.h @@ -0,0 +1,51 @@ +#ifndef GarageSystem_h__ +#define GarageSystem_h__ + +#include + +#include "System.h" +#include "Components/Transform.h" +#include "Components/Trigger.h" +#include "Components/Garage.h" +#include "Components/SpawnPoint.h" +#include "Events/EnterTrigger.h" +#include "Events/LeaveTrigger.h" +#include "Events/SpawnVehicle.h" +#include "Events/InputCommand.h" + +#include "Components/Player.h" +#include "Events/Move.h" +#include "Events/Rotate.h" +#include "Components/Move.h" +#include "Components/Rotate.h" + +namespace Systems +{ + class GarageSystem : public System + { + public: + + GarageSystem(World* world, std::shared_ptr<::EventBroker> eventBroker, std::shared_ptr<::ResourceManager> resourceManager) + : System(world, eventBroker, resourceManager) { } + + void Initialize() override; + void RegisterComponents(ComponentFactory* cf) override; + void Update(double dt) override; + void UpdateEntity(double dt, EntityID entity, EntityID parent) override; + + private: + std::map> m_EntitiesInTrigger; + + EventRelay m_EEnterTrigger; + bool OnEnterTrigger(const Events::EnterTrigger &event); + EventRelay m_ELeaveTrigger; + bool OnLeaveTrigger(const Events::LeaveTrigger &event); + EventRelay m_ECommand; + bool OnCommand(const Events::InputCommand &event); + + void ToggleGarage(Components::Garage* garageComponent); + + }; + +} +#endif // GarageSystem_h__ diff --git a/src/Systems/InputSystem.cpp b/src/Systems/InputSystem.cpp index 2f774d0..733c3bc 100755 --- a/src/Systems/InputSystem.cpp +++ b/src/Systems/InputSystem.cpp @@ -46,8 +46,8 @@ void Systems::InputSystem::Update(double dt) bool Systems::InputSystem::OnKeyDown(const Events::KeyDown &event) { - auto bindingIt = m_KeyBindings.find(event.KeyCode); - if (bindingIt != m_KeyBindings.end()) + auto range = m_KeyBindings.equal_range(event.KeyCode); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -61,8 +61,8 @@ bool Systems::InputSystem::OnKeyDown(const Events::KeyDown &event) bool Systems::InputSystem::OnKeyUp(const Events::KeyUp &event) { - auto bindingIt = m_KeyBindings.find(event.KeyCode); - if (bindingIt != m_KeyBindings.end()) + auto range = m_KeyBindings.equal_range(event.KeyCode); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -76,8 +76,8 @@ bool Systems::InputSystem::OnKeyUp(const Events::KeyUp &event) bool Systems::InputSystem::OnMousePress(const Events::MousePress &event) { - auto bindingIt = m_MouseButtonBindings.find(event.Button); - if (bindingIt != m_MouseButtonBindings.end()) + auto range = m_MouseButtonBindings.equal_range(event.Button); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -91,8 +91,8 @@ bool Systems::InputSystem::OnMousePress(const Events::MousePress &event) bool Systems::InputSystem::OnMouseRelease(const Events::MouseRelease &event) { - auto bindingIt = m_MouseButtonBindings.find(event.Button); - if (bindingIt != m_MouseButtonBindings.end()) + auto range = m_MouseButtonBindings.equal_range(event.Button); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -106,8 +106,8 @@ bool Systems::InputSystem::OnMouseRelease(const Events::MouseRelease &event) bool Systems::InputSystem::OnGamepadAxis(const Events::GamepadAxis &event) { - auto bindingIt = m_GamepadAxisBindings.find(event.Axis); - if (bindingIt != m_GamepadAxisBindings.end()) + auto range = m_GamepadAxisBindings.equal_range(event.Axis); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -121,8 +121,8 @@ bool Systems::InputSystem::OnGamepadAxis(const Events::GamepadAxis &event) bool Systems::InputSystem::OnGamepadButtonDown(const Events::GamepadButtonDown &event) { - auto bindingIt = m_GamepadButtonBindings.find(event.Button); - if (bindingIt != m_GamepadButtonBindings.end()) + auto range = m_GamepadButtonBindings.equal_range(event.Button); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -136,8 +136,8 @@ bool Systems::InputSystem::OnGamepadButtonDown(const Events::GamepadButtonDown & bool Systems::InputSystem::OnGamepadButtonUp(const Events::GamepadButtonUp &event) { - auto bindingIt = m_GamepadButtonBindings.find(event.Button); - if (bindingIt != m_GamepadButtonBindings.end()) + auto range = m_GamepadButtonBindings.equal_range(event.Button); + for (auto bindingIt = range.first; bindingIt != range.second; bindingIt++) { std::string command; float value; @@ -149,18 +149,13 @@ bool Systems::InputSystem::OnGamepadButtonUp(const Events::GamepadButtonUp &even return true; } - bool Systems::InputSystem::OnBindKey(const Events::BindKey &event) { if (event.Command.empty()) - { - m_KeyBindings.erase(event.KeyCode); - } - else - { - m_KeyBindings[event.KeyCode] = std::make_tuple(event.Command, event.Value); - LOG_DEBUG("Input: Bound key %c to %s", (char)event.KeyCode, event.Command.c_str()); - } + return false; + + m_KeyBindings.insert(std::make_pair(event.KeyCode, std::make_tuple(event.Command, event.Value))); + LOG_DEBUG("Input: Bound key %i to %s", event.KeyCode, event.Command.c_str()); return true; } @@ -168,14 +163,10 @@ bool Systems::InputSystem::OnBindKey(const Events::BindKey &event) bool Systems::InputSystem::OnBindMouseButton(const Events::BindMouseButton &event) { if (event.Command.empty()) - { - m_MouseButtonBindings.erase(event.Button); - } - else - { - m_MouseButtonBindings[event.Button] = std::make_tuple(event.Command, event.Value); - LOG_DEBUG("Input: Bound mouse button %i to %s", event.Button, event.Command.c_str()); - } + return false; + + m_MouseButtonBindings.insert(std::make_pair(event.Button, std::make_tuple(event.Command, event.Value))); + LOG_DEBUG("Input: Bound mouse button %i to %s", event.Button, event.Command.c_str()); return true; } @@ -183,14 +174,10 @@ bool Systems::InputSystem::OnBindMouseButton(const Events::BindMouseButton &even bool Systems::InputSystem::OnBindGamepadAxis(const Events::BindGamepadAxis &event) { if (event.Command.empty()) - { - m_GamepadAxisBindings.erase(event.Axis); - } - else - { - m_GamepadAxisBindings[event.Axis] = std::make_tuple(event.Command, event.Value); - LOG_DEBUG("Input: Bound gamepad axis %i to %s", event.Axis, event.Command.c_str()); - } + return false; + + m_GamepadAxisBindings.insert(std::make_pair(event.Axis, std::make_tuple(event.Command, event.Value))); + LOG_DEBUG("Input: Bound gamepad axis %i to %s", event.Axis, event.Command.c_str()); return true; } @@ -198,14 +185,10 @@ bool Systems::InputSystem::OnBindGamepadAxis(const Events::BindGamepadAxis &even bool Systems::InputSystem::OnBindGamepadButton(const Events::BindGamepadButton &event) { if (event.Command.empty()) - { - m_GamepadButtonBindings.erase(event.Button); - } - else - { - m_GamepadButtonBindings[event.Button] = std::make_tuple(event.Command, event.Value); - LOG_DEBUG("Input: Bound gamepad axis %i to %s", event.Button, event.Command.c_str()); - } + return false; + + m_GamepadButtonBindings.insert(std::make_pair(event.Button, std::make_tuple(event.Command, event.Value))); + LOG_DEBUG("Input: Bound gamepad axis %i to %s", event.Button, event.Command.c_str()); return true; } diff --git a/src/Systems/InputSystem.h b/src/Systems/InputSystem.h index 5a193a6..7e0330b 100755 --- a/src/Systems/InputSystem.h +++ b/src/Systems/InputSystem.h @@ -40,10 +40,10 @@ private: std::unordered_map> m_CommandGamepadAxisValues; // command string -> gamepad axis value for command std::unordered_map> m_CommandGamepadButtonValues; // command string -> gamepad button value for command // Input binding tables - std::unordered_map> m_KeyBindings; // GLFW_KEY... -> command string & value - std::unordered_map> m_MouseButtonBindings; // GLFW_MOUSE_BUTTON... -> command string - std::unordered_map> m_GamepadAxisBindings; // Gamepad::Axis -> command string & value - std::unordered_map> m_GamepadButtonBindings; // Gamepad::Button -> command string + std::unordered_multimap> m_KeyBindings; // GLFW_KEY... -> command string & value + std::unordered_multimap> m_MouseButtonBindings; // GLFW_MOUSE_BUTTON... -> command string + std::unordered_multimap> m_GamepadAxisBindings; // Gamepad::Axis -> command string & value + std::unordered_multimap> m_GamepadButtonBindings; // Gamepad::Button -> command string // Input events EventRelay m_EKeyDown; diff --git a/src/Systems/PhysicsSystem.cpp b/src/Systems/PhysicsSystem.cpp index 4d8b8ed..d147dcd 100644 --- a/src/Systems/PhysicsSystem.cpp +++ b/src/Systems/PhysicsSystem.cpp @@ -112,20 +112,8 @@ void Systems::PhysicsSystem::Initialize() m_collisionResolution = new MyCollisionResolution(this); } - enum - { - GROUND_LAYER = 1, - VEHICLE1_LAYER = 2, - VEHICLE2_LAYER = 3, - EXPLOSION_LAYER = 4, - }; -/* - { - Events::DisableCollisions e; - e.Layer1 = GROUND_LAYER; - e.Layer2 = EXPLOSION_LAYER; - EventBroker->Publish(e); - }*/ + + /*{ Events::DisableCollisions e; e.Layer1 = VEHICLE1_LAYER; @@ -170,31 +158,34 @@ void Systems::PhysicsSystem::Update(double dt) if (!transformComponent) continue; - if(m_RigidBodies[entity]->isActive()) - { - hkVector4 position; - hkQuaternion rotation; - hkVector4 velocity; + + hkVector4 position; + hkQuaternion rotation; + hkVector4 velocity; - if (parent) - { - auto absoluteTransform = m_World->GetSystem()->AbsoluteTransform(entity); - position = GLMVEC3_TO_HKVECTOR4(absoluteTransform.Position); - rotation = GLMQUAT_TO_HKQUATERNION(absoluteTransform.Orientation); - velocity = GLMVEC3_TO_HKVECTOR4(absoluteTransform.Velocity); - } - else - { - position = GLMVEC3_TO_HKVECTOR4(transformComponent->Position); - rotation = GLMQUAT_TO_HKQUATERNION(transformComponent->Orientation); - velocity = GLMVEC3_TO_HKVECTOR4(transformComponent->Velocity); - } - m_PhysicsWorld->markForWrite(); - m_RigidBodies[entity]->setPositionAndRotation(position, rotation); - m_RigidBodies[entity]->setLinearVelocity(velocity); - m_PhysicsWorld->unmarkForWrite(); - + if (parent) + { + auto absoluteTransform = m_World->GetSystem()->AbsoluteTransform(entity); + position = GLMVEC3_TO_HKVECTOR4(absoluteTransform.Position); + rotation = GLMQUAT_TO_HKQUATERNION(absoluteTransform.Orientation); + velocity = GLMVEC3_TO_HKVECTOR4(absoluteTransform.Velocity); } + else + { + position = GLMVEC3_TO_HKVECTOR4(transformComponent->Position); + rotation = GLMQUAT_TO_HKQUATERNION(transformComponent->Orientation); + velocity = GLMVEC3_TO_HKVECTOR4(transformComponent->Velocity); + } + m_PhysicsWorld->markForWrite(); + m_RigidBodies[entity]->setPositionAndRotation(position, rotation); + + if(m_RigidBodies[entity]->getMotionType() != hkpMotion::MOTION_FIXED) + { + m_RigidBodies[entity]->setLinearVelocity(velocity); + } + m_PhysicsWorld->unmarkForWrite(); + + /* glm::vec3 pos1 = HKVECTOR4_TO_GLMVEC3(m_RigidBodies[m_World->m_Terrain]->getPosition()); @@ -291,26 +282,27 @@ void Systems::PhysicsSystem::OnEntityCommit( EntityID entity ) m_Wheels.push_back(entity); } - EntityID entityParent = m_World->GetEntityBaseParent(entity); + EntityID entityParent = m_World->GetEntityParent(entity); auto sphereComponent = m_World->GetComponent(entity); auto boxComponent = m_World->GetComponent(entity); auto meshShapeComponent = m_World->GetComponent(entity); - if(entityParent == entity && (sphereComponent || boxComponent || meshShapeComponent)) + if(entityParent == 0 && (sphereComponent || boxComponent || meshShapeComponent)) { - LOG_ERROR("Entity: %i , Only the children can have a shapeComponent", entity); + LOG_ERROR("Entity: %i, Only the children can have a shapeComponent", entity); return; } auto physicsComponent = m_World->GetComponent(entity); if (physicsComponent && m_Shapes[entity].size() > 0) { - if(entityParent != entity) + if(entityParent != 0 && !physicsComponent->Static) { - LOG_ERROR("Entity: %i , Only the baseparent can have a PhysicsComponent", entity); + LOG_ERROR("Entity: %i, Only the baseparent can have a dynamic PhysicsComponent", entity); return; } + hkpShape* shape; if(! physicsComponent->Static) // Not static { @@ -498,7 +490,7 @@ void Systems::PhysicsSystem::OnEntityCommit( EntityID entity ) hkpRigidBodyCinfo rigidBodyInfo; { rigidBodyInfo.m_shape = shape; - rigidBodyInfo.m_motionType = hkpMotion::MOTION_FIXED; + rigidBodyInfo.m_motionType = hkpMotion::MOTION_KEYFRAMED; auto absoluteTransform = m_World->GetSystem()->AbsoluteTransform(entity); hkVector4 position = GLMVEC3_TO_HKVECTOR4(absoluteTransform.Position); hkQuaternion rotation = GLMQUAT_TO_HKQUATERNION(absoluteTransform.Orientation); @@ -681,11 +673,6 @@ void Systems::PhysicsSystem::TearDownPhysicsState(EntityID entity, EntityID pare } -void Systems::PhysicsSystem::OnComponentCreated(std::string type, std::shared_ptr component) -{ - -} - void Systems::PhysicsSystem::SetupVisualDebugger(hkpPhysicsContext* worlds) { // Setup the visual debugger @@ -737,18 +724,12 @@ bool Systems::PhysicsSystem::OnTankSteer(const Events::TankSteer &event) { steeringX = (1 - (glm::clamp(abs(m_Vehicles[event.Entity]->calcKMPH() /vehicleComponent->TopSpeed), 0.f, 0.7f))) * steeringX; } - if(abs(m_Vehicles[event.Entity]->calcKMPH()) < 2 && abs(m_Vehicles[event.Entity]->m_mainSteeringAngle) > 80.f * (HK_REAL_PI / 180)) { deviceStatus->m_positionY = -0.4f; deviceStatus->m_positionX = steeringX; } -// else if(m_Vehicles[event.Entity]->calcKMPH() > -2 && abs(m_Vehicles[event.Entity]->m_mainSteeringAngle) > 80.f * (HK_REAL_PI / 180)) -// { -// deviceStatus->m_positionY = 0.4f;; -// deviceStatus->m_positionX = -steeringX; -// } else { deviceStatus->m_positionX = steeringX; @@ -769,9 +750,9 @@ bool Systems::PhysicsSystem::OnSetVelocity( const Events::SetVelocity &event ) { if(m_RigidBodies.find(event.Entity) != m_RigidBodies.end()) { + m_PhysicsWorld->markForWrite(); m_RigidBodies[event.Entity]->setLinearVelocity(GLMVEC3_TO_HKVECTOR4(event.Velocity)); - auto transformComponent = m_World->GetComponent(event.Entity); transformComponent->Velocity = event.Velocity; m_PhysicsWorld->unmarkForWrite(); diff --git a/src/Systems/PhysicsSystem.h b/src/Systems/PhysicsSystem.h index 8512017..a14481b 100644 --- a/src/Systems/PhysicsSystem.h +++ b/src/Systems/PhysicsSystem.h @@ -28,6 +28,7 @@ #include "Events/ApplyForce.h" #include "Events/ApplyPointImpulse.h" #include "Events/Collision.h" +#include "Events/LeaveTrigger.h" #include "OBJ.h" // Math and base include @@ -131,15 +132,24 @@ public: if(m_PhysicsSystem->m_World->ValidEntity(entity1) && m_PhysicsSystem->m_World->ValidEntity(entity2)) { Events::EnterTrigger e; - e.Entity1 = entity1; - e.Entity2 = entity2; + e.Trigger = entity1; + e.Entity = entity2; m_PhysicsSystem->EventBroker->Publish(e); } } virtual void phantomLeaveEvent( const hkpCollidable* collidableA, const hkpCollidable* collidableB ) { + EntityID entity1 = m_PhysicsSystem->m_RigidBodyEntities[hkpGetRigidBody(collidableA)]; + EntityID entity2 = m_PhysicsSystem->m_RigidBodyEntities[hkpGetRigidBody(collidableB)]; + if(m_PhysicsSystem->m_World->ValidEntity(entity1) && m_PhysicsSystem->m_World->ValidEntity(entity2)) + { + Events::LeaveTrigger e; + e.Trigger = entity1; + e.Entity = entity2; + m_PhysicsSystem->EventBroker->Publish(e); + } } private: @@ -155,7 +165,6 @@ public: void Update(double dt) override; void UpdateEntity(double dt, EntityID entity, EntityID parent) override; - void OnComponentCreated(std::string type, std::shared_ptr component) override; void OnComponentRemoved(EntityID entity, std::string type, Component* component) override; void OnEntityCommit(EntityID entity) override; void OnEntityRemoved(EntityID entity) override; @@ -180,7 +189,6 @@ private: EventRelay m_EDisableCollisions; bool OnDisableCollisions(const Events::DisableCollisions &e); - void SetUpPhysicsState(EntityID entity, EntityID parent); void TearDownPhysicsState(EntityID entity, EntityID parent); diff --git a/src/Systems/SoundSystem.cpp b/src/Systems/SoundSystem.cpp index 4ce23eb..7e0333e 100755 --- a/src/Systems/SoundSystem.cpp +++ b/src/Systems/SoundSystem.cpp @@ -4,157 +4,203 @@ void Systems::SoundSystem::Initialize() { - //initialize OpenAL - ALCdevice* Device = alcOpenDevice(NULL); - ALCcontext* context; - if(Device) + EVENT_SUBSCRIBE_MEMBER(m_EComponentCreated, &SoundSystem::OnComponentCreated); + EVENT_SUBSCRIBE_MEMBER(m_EPlaySFX, &SoundSystem::PlaySFX); + EVENT_SUBSCRIBE_MEMBER(m_EPlayBGM, &SoundSystem::PlayBGM); + EVENT_SUBSCRIBE_MEMBER(m_EStopSound, &SoundSystem::StopSound); + + m_TransformSystem = m_World->GetSystem(); + FMOD_System_Create(&m_System); + FMOD_RESULT result = FMOD_System_Init(m_System, 32, FMOD_INIT_3D_RIGHTHANDED, 0); + if(result != FMOD_OK) { - context = alcCreateContext(Device, NULL); - alcMakeContextCurrent(context); + LOG_ERROR("Did initialized load FMOD correctly"); } else { - LOG_ERROR("OMG OPEN AL FAIL"); + LOG_INFO("FMOD initialized successfully"); } - - alGetError(); - - alSpeedOfSound(340.29f); // Speed of sound - alDistanceModel(AL_INVERSE_DISTANCE_CLAMPED); - - // Subscribe to events - m_EPlaySound = decltype(m_EPlaySound)(std::bind(&Systems::SoundSystem::OnPlaySound, this, std::placeholders::_1)); - EventBroker->Subscribe(m_EPlaySound); + FMOD_System_Set3DSettings(m_System, 1.f, 1.f, 1.f); //dopplerScale, distancefactor, rolloffscale + } void Systems::SoundSystem::RegisterComponents(ComponentFactory* cf) { cf->Register([]() { return new Components::SoundEmitter(); }); + cf->Register([]() { return new Components::Listener(); }); } void Systems::SoundSystem::RegisterResourceTypes(std::shared_ptr<::ResourceManager> rm) { - rm->RegisterType("Sound", [](std::string resourceName) { return new Sound(resourceName); }); + rm->RegisterType("Sound3D", [this](std::string resourceName) { return new Sound(resourceName, this->m_System, Components::SoundEmitter::SoundType::SOUND_3D); }); + rm->RegisterType("Sound2D", [this](std::string resourceName) { return new Sound(resourceName, this->m_System, Components::SoundEmitter::SoundType::SOUND_2D); }); } void Systems::SoundSystem::Update(double dt) { + FMOD_System_Update(m_System); + + //Delete sounds. Not until it's done playing + std::map::iterator it; + for(it = m_DeleteChannels.begin(); it != m_DeleteChannels.end();) + { + FMOD_BOOL *isPlaying = false; + FMOD_Channel_IsPlaying(it->second, isPlaying); + if(isPlaying) + { + it++; + } + else + { + FMOD_Sound_Release(m_DeleteSounds[it->first]); + m_DeleteSounds.erase(it->first); + it = m_DeleteChannels.erase(it); + } + } } void Systems::SoundSystem::UpdateEntity(double dt, EntityID entity, EntityID parent) { - auto transformComponent = m_World->GetComponent(entity); - if (transformComponent == nullptr) - return; - - auto entityName = m_World->GetProperty(entity, "Name"); - if (entityName == "Camera") + auto listener = m_World->GetComponent(entity); + if(listener) { - glm::vec3 playerPos = transformComponent->Position; - ALfloat listenerPos[3] = { playerPos.x, playerPos.y, -playerPos.z }; + int lID = std::find(m_Listeners.begin(), m_Listeners.end(), entity) - m_Listeners.begin(); + auto lTransform = m_World->GetComponent(entity); + + glm::vec3 tPos = m_TransformSystem->AbsolutePosition(entity); + FMOD_VECTOR lPos = {tPos.x, tPos.y, tPos.z}; - glm::vec3 playerVel = transformComponent->Velocity; - ALfloat listenerVel[3] = { playerVel.x, playerVel.y, -playerVel.z }; + glm::vec3 tVel = (lTransform->Velocity * 1000.f) / (float)dt; + FMOD_VECTOR lVel = {tVel.x, tVel.y, tVel.z}; - glm::fquat playerQuatOri = transformComponent->Orientation; - glm::vec3 playerOriFW = glm::rotate(playerQuatOri, glm::vec3(0, 0, -1)); - glm::vec3 playerOriUP = glm::rotate(playerQuatOri, glm::vec3(0, 1, 0)); - ALfloat listenerOri[6] = { playerOriFW.x, playerOriFW.y, playerOriFW.z, playerOriUP.x, playerOriUP.y, playerOriUP.z }; + glm::vec3 tUp = glm::normalize(lTransform->Orientation * glm::vec3(0,1,0)); + FMOD_VECTOR lUp = {tUp.x, tUp.y, tUp.z}; + glm::vec3 tForward = glm::normalize(lTransform->Orientation * glm::vec3(0,0,-1)); + FMOD_VECTOR lForward = {tForward.x, tForward.y, tForward.z}; - //Listener - alListenerfv(AL_POSITION, listenerPos); - alListenerfv(AL_VELOCITY, listenerVel); - alListenerfv(AL_ORIENTATION, listenerOri); + FMOD_System_Set3DListenerAttributes(m_System, lID, (const FMOD_VECTOR*)&lPos, (const FMOD_VECTOR*)&lVel, (const FMOD_VECTOR*)&lForward, (const FMOD_VECTOR*)&lUp); } - auto soundEmitter = m_World->GetComponent(entity); - if(soundEmitter != nullptr) + auto emitter = m_World->GetComponent(entity); + if(emitter) { - ALuint source = m_Sources[soundEmitter]; - alSourcef(source, AL_GAIN, soundEmitter->Gain); - //alSourcef(source, AL_MAX_DISTANCE, soundEmitter->MaxDistance); - alSourcef(source, AL_REFERENCE_DISTANCE, soundEmitter->ReferenceDistance); - alSourcef(source, AL_PITCH, soundEmitter->Pitch); - alSourcei(source, AL_LOOPING, soundEmitter->Loop); + FMOD_CHANNEL* channel = m_Channels[entity]; + FMOD_SOUND* sound = m_Sounds[entity]; + auto eTransform = m_World->GetComponent(entity); + + glm::vec3 tPos = m_TransformSystem->AbsolutePosition(entity); + FMOD_VECTOR ePos = {tPos.x, tPos.y, tPos.z}; - glm::vec3 emitterPos = transformComponent->Position; - ALfloat sourcePos[3] = { emitterPos.x, emitterPos.y, -emitterPos.z }; - - glm::vec3 emitterVel= transformComponent->Velocity; - ALfloat sourceVel[3] = { emitterVel.x, emitterVel.y, -emitterVel.z }; - - alSourcefv(source, AL_POSITION, sourcePos); - alSourcefv(source, AL_VELOCITY, sourceVel); + glm::vec3 tVel = (eTransform->Velocity * 1000.f) / float(dt); + FMOD_VECTOR eVel = {tVel.x, tVel.y, tVel.z}; + + FMOD_Channel_Set3DAttributes(channel, &ePos, &eVel); } } -void Systems::SoundSystem::PlaySound(Components::SoundEmitter* emitter, std::string fileName) +bool Systems::SoundSystem::OnComponentCreated(const Events::ComponentCreated &event) { - if (m_Sources.find(emitter) == m_Sources.end()) - return; - - ALuint buffer = *ResourceManager->Load("Sound", fileName); - if (buffer == 0) - return; - ALuint source = m_Sources[emitter]; - alSourcei(source, AL_BUFFER, buffer); - alSourcePlay(m_Sources[emitter]); -} - -void Systems::SoundSystem::PlaySound(std::shared_ptr emitter) -{ - ALuint buffer = *ResourceManager->Load("Sound", emitter->Path); - ALuint source = m_Sources[emitter.get()]; - alSourcei(source, AL_BUFFER, buffer); - alSourcePlay(m_Sources[emitter.get()]); -} - -void Systems::SoundSystem::StopSound(std::shared_ptr emitter) -{ - alSourceStop(m_Sources[emitter.get()]); -} - -void Systems::SoundSystem::OnComponentCreated(std::string type, std::shared_ptr component) -{ - if(type == "SoundEmitter") + auto listener = std::dynamic_pointer_cast(event.Component); + if(listener) { - ALuint source = CreateSource(); - m_Sources[component.get()] = source; + m_Listeners.push_back(listener->Entity); + } + + auto emitter = std::dynamic_pointer_cast(event.Component); + if(emitter) + { + FMOD_CHANNEL* channel; + FMOD_SOUND* sound; + + std::string path = emitter->Path; + float volume = emitter->Gain; + bool loop = emitter->Loop; + float maxDist = emitter->MaxDistance; + float minDist = emitter->MinDistance; + float pitch = emitter->Pitch; + //LoadSound(sound, path, maxDist, minDist); + m_Channels.insert(std::make_pair(emitter->Entity, channel)); + m_Sounds.insert(std::make_pair(emitter->Entity, sound)); + } + return true; +} + +bool Systems::SoundSystem::PlaySFX(const Events::PlaySFX &event) +{ + auto emitter = m_World->GetComponent(event.Emitter); + if(!emitter) + { + LOG_ERROR("FMOD: The Entity %i does not have a SoundEmitter-component, but is trying to play a sound", event.Emitter);FMOD_CHANNEL* channel = m_Channels[event.Emitter]; + return false; + } + + emitter->type = Components::SoundEmitter::SoundType::SOUND_3D; + Sound* sound = ResourceManager->Load("Sound3D", event.Resource); + m_Sounds[event.Emitter] = *sound; + FMOD_Sound_Set3DMinMaxDistance(*sound, emitter->MinDistance, emitter->MaxDistance); + + PlaySound(&m_Channels[event.Emitter], m_Sounds[event.Emitter], 1.0, event.Loop); + FMOD_System_Update(m_System); + + FMOD_BOOL isPlaying = false; + FMOD_Channel_IsPlaying(m_Channels[event.Emitter], &isPlaying); + if(!isPlaying) + LOG_ERROR("FMOD: File %s is not playing", event.Resource.c_str()); + else + LOG_INFO("Now playing sound %s", event.Resource.c_str()); + return true; +} + +bool Systems::SoundSystem::PlayBGM(const Events::PlayBGM &event) +{ + auto emitter = m_World->CreateEntity(); + auto eTransform = m_World->AddComponent(emitter); + auto eComponent = m_World->AddComponent(emitter); + m_Channels[emitter] = m_BGMChannel; + eComponent->type = Components::SoundEmitter::SoundType::SOUND_3D; + Sound* sound = ResourceManager->Load("Sound2D", event.Resource); + m_Sounds[emitter] = *sound; + + FMOD_System_PlaySound(m_System, FMOD_CHANNEL_FREE, *sound, false, &m_Channels[emitter]); + return true; +} + +bool Systems::SoundSystem::StopSound(const Events::StopSound &event) +{ + FMOD_Channel_Stop(m_Channels[event.Emitter]); + return true; +} + +void Systems::SoundSystem::LoadSound(FMOD_SOUND* &sound, std::string filePath, float maxDist, float minDist) +{ + FMOD_RESULT result = FMOD_System_CreateSound(m_System, filePath.c_str(), FMOD_3D | FMOD_HARDWARE , 0, &sound); + if (result != FMOD_OK) + { + LOG_ERROR("FMOD did not load file: %s", filePath.c_str()); + } + FMOD_Sound_Set3DMinMaxDistance(sound, minDist, maxDist); +} + +void Systems::SoundSystem::PlaySound(FMOD_CHANNEL** channel, FMOD_SOUND* sound, float volume, bool loop) +{ + FMOD_System_PlaySound(m_System, FMOD_CHANNEL_FREE, sound, false, channel); + FMOD_Channel_SetVolume(*channel, volume); + if(loop) + { + FMOD_Channel_SetMode(*channel, FMOD_LOOP_NORMAL); + FMOD_Sound_SetLoopCount(sound, -1); } } void Systems::SoundSystem::OnComponentRemoved(EntityID entity, std::string type, Component* component) { - if(type == "SoundEmitter") + auto emitter = dynamic_cast(component); + if(emitter) { - if (m_Sources.find(component) != m_Sources.end()) - { - ALuint source = m_Sources[component]; - alDeleteSources(1, &source); - } + m_DeleteChannels.insert(std::make_pair(entity, m_Channels[entity])); + m_DeleteSounds.insert(std::make_pair(entity, m_Sounds[entity])); + m_Channels.erase(entity); + m_Sounds.erase(entity); } -} - -ALuint Systems::SoundSystem::CreateSource() -{ - ALuint source; - alGenSources((ALuint)1, &source); - - alDopplerFactor(1); // Numbers greater than 1 will increase Doppler effect, numbers lower than 1 will decrease the Doppler effect - alDopplerVelocity(350.f); // Defines the velocity of the sound - - return source; -} - -bool Systems::SoundSystem::OnPlaySound(const Events::PlaySound &event) -{ - LOG_DEBUG("Events::PlaySound.Resource = %s", event.Resource.c_str()); - - ALuint buffer = *ResourceManager->Load("Sound", event.Resource); - ALuint source = m_Sources.begin()->second; - alSourcei(source, AL_BUFFER, buffer); - alSourcePlay(source); - - return true; -} +} \ No newline at end of file diff --git a/src/Systems/SoundSystem.h b/src/Systems/SoundSystem.h index b738a4b..3f0b426 100755 --- a/src/Systems/SoundSystem.h +++ b/src/Systems/SoundSystem.h @@ -1,13 +1,18 @@ #ifndef SoundEmitter_h__ #define SoundEmitter_h__ -#include -#include +#include +#include #include #include "System.h" +#include "Systems/TransformSystem.h" #include "Components/Transform.h" #include "Components/SoundEmitter.h" -#include "Events/PlaySound.h" +#include "Components/Listener.h" +#include "Events/ComponentCreated.h" +#include "Events/PlaySFX.h" +#include "Events/PlayBGM.h" +#include "Events/StopSound.h" #include "Sound.h" namespace Systems @@ -23,33 +28,34 @@ public: void RegisterComponents(ComponentFactory* cf) override; void RegisterResourceTypes(std::shared_ptr<::ResourceManager> rm) override; void Initialize() override; - void Update(double dt) override; void UpdateEntity(double dt, EntityID entity, EntityID parent) override; - void OnComponentCreated(std::string type, std::shared_ptr component) override; + //void OnComponentRemoved(std::string type, Component* component); void OnComponentRemoved(EntityID entity, std::string type, Component* component) override; - void PlaySound(Components::SoundEmitter* emitter, std::string path); // Use if you want to play a temporary .wav file not from component - void PlaySound(std::shared_ptr emitter); // Use if you want to play .wav file from component // imon no hate plx T.T - void StopSound(std::shared_ptr emitter); - + FMOD_SYSTEM* GetFMODSystem() const { return m_System; } private: - ALuint LoadFile(std::string fileName); - ALuint CreateSource(); - - //File-info - //char type[4]; - //unsigned long size, chunkSize; - //short formatType, channels; - //unsigned long sampleRate, avgBytesPerSec; - //short bytesPerSample, bitsPerSample; - //unsigned long dataSize; - // Events - EventRelay m_EPlaySound; - bool OnPlaySound(const Events::PlaySound &event); + EventRelay m_EComponentCreated; + bool OnComponentCreated(const Events::ComponentCreated &event); + EventRelay m_EPlaySFX; + bool PlaySFX(const Events::PlaySFX &event); + EventRelay m_EPlayBGM; + bool PlayBGM(const Events::PlayBGM &event); + EventRelay m_EStopSound; + bool StopSound(const Events::StopSound &event); - std::map m_Sources; - std::map m_BufferCache; // string = fileName + void LoadSound(FMOD_SOUND*&, std::string, float, float); + void PlaySound(FMOD_CHANNEL**, FMOD_SOUND*, float volume, bool loop); + + FMOD_SYSTEM* m_System; + FMOD_CHANNEL* m_BGMChannel; + std::vector m_Listeners; + std::map m_Channels; + std::map m_DeleteChannels; + std::map m_Sounds; + std::map m_DeleteSounds; + std::shared_ptr m_TransformSystem; + }; } diff --git a/src/Systems/TankSteeringSystem.cpp b/src/Systems/TankSteeringSystem.cpp index 55ad7c5..b142973 100644 --- a/src/Systems/TankSteeringSystem.cpp +++ b/src/Systems/TankSteeringSystem.cpp @@ -2,7 +2,7 @@ #include "TankSteeringSystem.h" #include "World.h" -void Systems::TankSteeringSystem::RegisterComponents( ComponentFactory* cf ) +void Systems::TankSteeringSystem::RegisterComponents(ComponentFactory* cf) { cf->Register([]() { return new Components::TankSteering(); }); cf->Register([]() { return new Components::TowerSteering(); }); @@ -12,6 +12,7 @@ void Systems::TankSteeringSystem::RegisterComponents( ComponentFactory* cf ) void Systems::TankSteeringSystem::Initialize() { EVENT_SUBSCRIBE_MEMBER(m_ECollision, &Systems::TankSteeringSystem::OnCollision); + EVENT_SUBSCRIBE_MEMBER(m_ESpawnVehicle, &Systems::TankSteeringSystem::OnSpawnVehicle); for (int i = 0; i < 4; i++) { @@ -68,6 +69,20 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit glm::quat orientation = glm::angleAxis(barrelSteeringComponent->TurnSpeed * inputController->BarrelDirection * (float)dt, barrelSteeringComponent->Axis); transformComponent->Orientation *= orientation; + glm::vec3 angles = glm::eulerAngles(transformComponent->Orientation); + if(angles.x > barrelSteeringComponent->UpperRotationLimit) + { + angles.x = barrelSteeringComponent->UpperRotationLimit; + transformComponent->Orientation = glm::quat(angles); + } + else if(angles.x < barrelSteeringComponent->LowerRotationLimit) + { + angles.x = barrelSteeringComponent->LowerRotationLimit; + transformComponent->Orientation = glm::quat(angles); + } + + + if(inputController->Shoot && m_TimeSinceLastShot[tankSteeringComponent->Barrel] > 0.5) { EntityID clone = m_World->CloneEntity(barrelSteeringComponent->ShotTemplate); @@ -96,7 +111,7 @@ void Systems::TankSteeringSystem::UpdateEntity(double dt, EntityID entity, Entit } } -bool Systems::TankSteeringSystem::OnCollision( const Events::Collision &e ) +bool Systems::TankSteeringSystem::OnCollision(const Events::Collision &e) { if(m_World->ValidEntity(e.Entity1) && m_World->ValidEntity(e.Entity2)) { @@ -272,6 +287,313 @@ bool Systems::TankSteeringSystem::OnCollision( const Events::Collision &e ) return true; } +bool Systems::TankSteeringSystem::OnSpawnVehicle(const Events::SpawnVehicle &event) +{ + if (event.VehicleType != "Tank") + return false; + + auto spawnPointComponents = m_World->GetComponentsOfType(); + for (auto &spawnPointComponent : *spawnPointComponents) + { + auto spawnPoint = spawnPointComponent->Entity; + auto spawnPointBaseParent = m_World->GetEntityBaseParent(spawnPoint); + auto playerComponent = m_World->GetComponent(spawnPointBaseParent); + if (!playerComponent || playerComponent->ID != event.PlayerID) + continue; + + Components::Transform absoluteTransform = m_World->GetSystem()->AbsoluteTransform(spawnPoint); + + // Create a tank + EntityID tank = CreateTank(event.PlayerID); + auto tankTransform = m_World->GetComponent(tank); + tankTransform->Position = absoluteTransform.Position; + tankTransform->Orientation = absoluteTransform.Orientation; + // Set the viewport correctly + Events::SetViewportCamera e; + e.CameraEntity = m_World->GetProperty(tank, "Camera"); + if (event.PlayerID == 1) + e.ViewportFrame = "Viewport1"; + else if (event.PlayerID == 2) + e.ViewportFrame = "Viewport2"; + EventBroker->Publish(e); + } + + return true; +} + +EntityID Systems::TankSteeringSystem::CreateTank(int playerID) +{ + auto tank = m_World->CreateEntity(); + auto transform = m_World->AddComponent(tank); + transform->Position = glm::vec3(0, 5, 0); + //transform->Orientation = glm::angleAxis(0.f, glm::vec3(0, 1, 0)); + auto physics = m_World->AddComponent(tank); + physics->Mass = 63000 - 16000; + physics->Static = false; + auto vehicle = m_World->AddComponent(tank); + vehicle->MaxTorque = 8000.f; + vehicle->MaxSteeringAngle = 90.f; + vehicle->MaxSpeedFullSteeringAngle = 4.f; + auto player = m_World->AddComponent(tank); + player->ID = playerID; + auto tankSteering = m_World->AddComponent(tank); + m_World->AddComponent(tank); + auto health = m_World->AddComponent(tank); + health->Amount = 100.f; + + { + auto shape = m_World->CreateEntity(tank); + auto transform = m_World->AddComponent(shape); + auto meshShape = m_World->AddComponent(shape); + meshShape->ResourceName = "Models/Tank/TankCollisionShape.obj"; + m_World->CommitEntity(shape); + } + { + auto shapeTower = m_World->CreateEntity(tank); + auto transform = m_World->AddComponent(shapeTower); + transform->Position = glm::vec3(0, 1.10633f, 1.03024f); + auto box = m_World->AddComponent(shapeTower); + box->Width = 1.298f; + box->Height = 0.502f; + box->Depth = 1.211f; + m_World->CommitEntity(shapeTower); + } + + { + auto chassis = m_World->CreateEntity(tank); + auto transform = m_World->AddComponent(chassis); + transform->Position = glm::vec3(0, 0, 0); + auto model = m_World->AddComponent(chassis); + model->ModelFile = "Models/Tank/tankBody.obj"; + } + { + auto tower = m_World->CreateEntity(tank); + m_World->SetProperty(tower, "Name", "tower"); + auto transform = m_World->AddComponent(tower); + transform->Position = glm::vec3(0.f, 0.68f, 0.9f); + auto model = m_World->AddComponent(tower); + model->ModelFile = "Models/Tank/tankTop.obj"; + auto towerSteering = m_World->AddComponent(tower); + towerSteering->Axis = glm::vec3(0.f, 1.f, 0.f); + towerSteering->TurnSpeed = glm::pi() / 4.f; + { + auto barrel = m_World->CreateEntity(tower); + auto transform = m_World->AddComponent(barrel); + transform->Position = glm::vec3(-0.012f, 0.3f, -0.95); + auto model = m_World->AddComponent(barrel); + model->ModelFile = "Models/Tank/tankBarrel.obj"; + auto barrelSteering = m_World->AddComponent(barrel); + barrelSteering->Axis = glm::vec3(1.f, 0.f, 0.f); + barrelSteering->TurnSpeed = glm::pi() / 4.f; + barrelSteering->ShotSpeed = 70.f; + barrelSteering->LowerRotationLimit = glm::radians(-10.f); + barrelSteering->UpperRotationLimit = glm::radians(40.f); + { + auto shot = m_World->CreateEntity(barrel); + auto transform = m_World->AddComponent(shot); + transform->Position = glm::vec3(0.35f, 0.f, -2.f); + transform->Orientation = glm::angleAxis(-glm::pi() / 2.f, glm::vec3(1, 0, 0)); + transform->Scale = glm::vec3(3.f); + m_World->AddComponent(shot); + auto physics = m_World->AddComponent(shot); + physics->Mass = 25.f; + physics->Static = false; + physics->CollisionEvent = true; + auto modelComponent = m_World->AddComponent(shot); + modelComponent->ModelFile = "Models/Placeholders/rocket/Rocket.obj"; + auto tankShellComponent = m_World->AddComponent(shot); + tankShellComponent->Damage = 20.f; + tankShellComponent->ExplosionRadius = 30.f; + tankShellComponent->ExplosionStrength = 300000.f; + { + auto shape = m_World->CreateEntity(shot); + auto transform = m_World->AddComponent(shape); + auto boxShape = m_World->AddComponent(shape); + boxShape->Width = 0.5f; + boxShape->Height = 0.5f; + boxShape->Depth = 0.5f; + m_World->CommitEntity(shape); + } + m_World->CommitEntity(shot); + barrelSteering->ShotTemplate = shot; + + + auto cameraTower = m_World->CreateEntity(barrel); + { + auto transform = m_World->AddComponent(cameraTower); + transform->Position.z = 16.f; + transform->Position.y = 4.f; + transform->Orientation = glm::quat(glm::vec3(-glm::radians(5.f), 0.f, 0.f)); + auto cameraComp = m_World->AddComponent(cameraTower); + cameraComp->FarClip = 2000.f; + /*auto follow = m_World->AddComponent(cameraTower); + follow->Entity = barrel; + follow->Distance = 15.f; + follow->FollowAxis = glm::vec3(1, 1, 1);*/ + } + + m_World->SetProperty(tank, "Camera", cameraTower); + } + m_World->CommitEntity(barrel); + tankSteering->Barrel = barrel; + } + m_World->CommitEntity(tower); + tankSteering->Turret = tower; + + + + } + + + + //{ + // auto lightentity = m_World->CreateEntity(tank); + // auto transform = m_World->AddComponent(lightentity); + // transform->Position = glm::vec3(0, 0, 0); + // auto light = m_World->AddComponent(lightentity); + // //light->Diffuse = glm::vec3(128.f/255.f, 172.f/255.f, 242.f/255.f); + // //light->Specular = glm::vec3(1.f); + // /*light->ConstantAttenuation = 0.3f; + // light->LinearAttenuation = 0.003f; + // light->QuadraticAttenuation = 0.002f;*/ + //} + + // auto wheelpair = m_World->CreateEntity(tank); + // SetProperty(wheelpair, "Name", "WheelPair"); + // AddComponent(wheelpair, "WheelPairThingy"); + +#pragma region Wheels + //Create wheels + float wheelOffset = -0.83f; + const float suspensionStrength = 15.f; + const float springLength = 0.3f; + + AddTankWheelPair(tank, glm::vec3(1.68f, wheelOffset, -1.715f), 0, true); + AddTankWheelPair(tank, glm::vec3(-1.68f, wheelOffset, -1.715f), 0, true); + AddTankWheelPair(tank, glm::vec3(1.68f, wheelOffset, 2.375), 1, false); + AddTankWheelPair(tank, glm::vec3(-1.68f, wheelOffset, 2.375), 1, false); +#pragma endregion + + { + auto entity = m_World->CreateEntity(tank); + auto transformComponent = m_World->AddComponent(entity); + transformComponent->Position = glm::vec3(-2, -1.7, 2.0); + transformComponent->Scale = glm::vec3(3, 3, 3); + transformComponent->Orientation = glm::angleAxis(glm::pi() / 2, glm::vec3(1, 0, 0)); + auto emitterComponent = m_World->AddComponent(entity); + emitterComponent->SpawnCount = 2; + emitterComponent->SpawnFrequency = 0.005; + emitterComponent->SpreadAngle = glm::pi(); + emitterComponent->UseGoalVelocity = false; + emitterComponent->LifeTime = 0.5; + //emitterComponent->AngularVelocitySpectrum.push_back(glm::pi() / 100); + emitterComponent->ScaleSpectrum.push_back(glm::vec3(0.05)); + m_World->CommitEntity(entity); + + auto particleEntity = m_World->CreateEntity(entity); + auto TEMP = m_World->AddComponent(particleEntity); + TEMP->Scale = glm::vec3(0); + auto spriteComponent = m_World->AddComponent(particleEntity); + spriteComponent->SpriteFile = "Models/Textures/Sprites/Dust.png"; + emitterComponent->ParticleTemplate = particleEntity; + + m_World->CommitEntity(particleEntity); + } + + m_World->CommitEntity(tank); + + return tank; +} + +void Systems::TankSteeringSystem::AddTankWheelPair(EntityID tankEntity, glm::vec3 position, int axleID, bool front) +{ + const float separation = 1.77f; + const float suspensionStrength = 15.f; + const float springLength = 0.3f; + + bool steering = front; + + auto wheelFront = m_World->CreateEntity(tankEntity); + { + auto transform = m_World->AddComponent(wheelFront); + transform->Position = position - glm::vec3(0, 0, separation / 2.f); // glm::vec3(1.68f, -0.83f - wheelOffset, -0.83f); + //transform->Orientation = glm::angleAxis(glm::pi(), glm::vec3(0, 1, 0)); +#ifdef DEBUG + auto model = m_World->AddComponent(wheelFront); + model->ModelFile = "Models/Tank/Fix/WheelPhysics.obj"; +#endif + auto Wheel = m_World->AddComponent(wheelFront); + Wheel->Hardpoint = transform->Position + glm::vec3(0.f, springLength, 0.f); + Wheel->AxleID = axleID; + Wheel->Mass = 2000; + Wheel->Radius = 0.6f; + Wheel->Steering = steering; + Wheel->SuspensionStrength = suspensionStrength; + Wheel->Friction = 4.f; + Wheel->ConnectedToHandbrake = true; + Wheel->TorqueRatio = 0.125f; + Wheel->Width = 0.6f; + m_World->CommitEntity(wheelFront); + } + + auto wheelBack = m_World->CreateEntity(tankEntity); + { + auto transform = m_World->AddComponent(wheelBack); + transform->Position = position + glm::vec3(0, 0, separation / 2.f); // glm::vec3(1.68f, -0.83f - wheelOffset, -2.6f); + //transform->Orientation = glm::angleAxis(glm::pi(), glm::vec3(0, 1, 0)); +#ifdef DEBUG + auto model = m_World->AddComponent(wheelBack); + model->ModelFile = "Models/Tank/Fix/WheelPhysics.obj"; +#endif + auto Wheel = m_World->AddComponent(wheelBack); + Wheel->Hardpoint = transform->Position + glm::vec3(0.f, springLength, 0.f); + Wheel->AxleID = axleID; + Wheel->Mass = 2000; + Wheel->Radius = 0.6f; + Wheel->Steering = steering; + Wheel->SuspensionStrength = suspensionStrength; + Wheel->Friction = 4.f; + Wheel->ConnectedToHandbrake = true; + Wheel->TorqueRatio = 0.125f; + Wheel->Width = 0.6f; + m_World->CommitEntity(wheelBack); + } + + auto wheelPair = m_World->CreateEntity(tankEntity); + { + { + auto transform = m_World->AddComponent(wheelPair); + transform->Position = position; + //transform->Orientation = glm::quat(glm::vec3(0, glm::pi() / 4.f, 0)); + + auto pair = m_World->AddComponent(wheelPair); + pair->FakeWheelFront = wheelFront; + pair->FakeWheelBack = wheelBack; + } + + auto modelEntity = m_World->CreateEntity(wheelPair); + { + auto transform = m_World->AddComponent(modelEntity); + //transform->Position = glm::vec3(0.f, 0.35f, 0.f); + if (front) + { + transform->Position = glm::vec3(0.f, 0.03f, 0.f); + transform->Orientation = glm::quat(glm::vec3(0, glm::pi(), 0)); + } + else + { + transform->Position = glm::vec3(0.f, 0.17f, 0.f); + transform->Scale = glm::vec3(1.f, 1.2f, 1.2f); + } + + auto model = m_World->AddComponent(modelEntity); + model->ModelFile = "Models/Tank/tankWheel.obj"; + } + m_World->CommitEntity(modelEntity); + } + m_World->CommitEntity(wheelPair); +} + void Systems::TankSteeringSystem::TankSteeringInputController::Update( double dt ) { PositionX = m_Horizontal; @@ -336,5 +658,3 @@ bool Systems::TankSteeringSystem::TankSteeringInputController::OnCommand(const E return true; } - - diff --git a/src/Systems/TankSteeringSystem.h b/src/Systems/TankSteeringSystem.h index 8c996fa..981c650 100644 --- a/src/Systems/TankSteeringSystem.h +++ b/src/Systems/TankSteeringSystem.h @@ -33,6 +33,18 @@ #include "Components/Vehicle.h" #include "Components/Player.h" +#include "Events/SpawnVehicle.h" +#include "Components/SpawnPoint.h" + +#include "Components/Wheel.h" +#include "Components/MeshShape.h" +#include "Components/Camera.h" +#include "Components/BoxShape.h" +#include "Components/WheelPair.h" +#include "Components/Input.h" + +#include "Events/SetViewportCamera.h" + namespace Systems { @@ -50,13 +62,18 @@ namespace Systems void UpdateEntity(double dt, EntityID entity, EntityID parent) override; private: + std::map m_TimeSinceLastShot; + EventRelay m_ECollision; bool OnCollision(const Events::Collision &e); + EventRelay m_ESpawnVehicle; + bool OnSpawnVehicle(const Events::SpawnVehicle &e); class TankSteeringInputController; std::array, 4> m_TankInputControllers; - std::map m_TimeSinceLastShot; + EntityID CreateTank(int playerID); + void AddTankWheelPair(EntityID tankEntity, glm::vec3 position, int axleID, bool front); }; class TankSteeringSystem::TankSteeringInputController : InputController diff --git a/src/Systems/TransformSystem.cpp b/src/Systems/TransformSystem.cpp index 69ec6fb..5823d12 100755 --- a/src/Systems/TransformSystem.cpp +++ b/src/Systems/TransformSystem.cpp @@ -13,6 +13,118 @@ // transform->Position = parentTransform->Position + transform->RelativePosition; //} +void Systems::TransformSystem::Initialize() +{ + EVENT_SUBSCRIBE_MEMBER(m_EMove, &Systems::TransformSystem::OnMove); + EVENT_SUBSCRIBE_MEMBER(m_ERotate, &Systems::TransformSystem::OnRotate); +} + +void Systems::TransformSystem::UpdateEntity( double dt, EntityID entity, EntityID parent ) +{ + if(m_MoveItems.find(entity) != m_MoveItems.end()) + { + auto transform = m_World->GetComponent(entity); + + glm::vec3 direction = glm::normalize(m_MoveItems[entity].GoalPosition - transform->Position); + glm::vec3 movement = direction * m_MoveItems[entity].Speed * (float)dt; + + glm::vec3 v1 = m_MoveItems[entity].GoalPosition - transform->Position; + glm::vec3 v2 = movement; + + if(glm::length(v2) >= glm::length(v1)) + { + transform->Position = m_MoveItems[entity].GoalPosition; + + m_MoveItems.erase(entity); + + if(m_QueuedMoveItems.find(entity) != m_QueuedMoveItems.end()) + { + auto it = m_QueuedMoveItems.find(entity); + m_MoveItems[entity] = it->second; + m_QueuedMoveItems.erase(it->first); + } + } + else + { + transform->Position += movement; + } + + } + + if(m_RotationItems.find(entity) != m_RotationItems.end()) + { + auto transform = m_World->GetComponent(entity); + + float percentage = dt/m_RotationItems[entity].Time; + m_RotationItems[entity].Time -= dt; + glm::clamp(percentage, 0.f, 1.0f); + transform->Orientation = glm::slerp(transform->Orientation, m_RotationItems[entity].GoalRotation, percentage); + + if(m_RotationItems[entity].Time <= 0) + { + m_RotationItems.erase(entity); + + if(m_QueuedRotationItems.find(entity) != m_QueuedRotationItems.end()) + { + auto it = m_QueuedRotationItems.find(entity); + m_RotationItems[entity] = it->second; + m_QueuedRotationItems.erase(it->first); + } + } + } +} + +bool Systems::TransformSystem::OnRotate( const Events::Rotate &event ) +{ + RotationItems item; + item.Entity = event.Entity; + item.GoalRotation = event.GoalRotation; + item.Time = event.Time; + + if(event.Queue) + { + if(m_RotationItems.find(event.Entity) != m_RotationItems.end()) + { + m_QueuedRotationItems.insert(std::make_pair(event.Entity, item)); + } + else + { + m_RotationItems[event.Entity] = item; + } + } + else + { + m_RotationItems[event.Entity] = item; + } + return true; +} + +bool Systems::TransformSystem::OnMove( const Events::Move &event ) +{ + MoveItems item; + item.Entity = event.Entity; + item.GoalPosition = event.GoalPosition; + item.Speed = event.Speed; + + if(event.Queue) + { + if(m_MoveItems.find(event.Entity) != m_MoveItems.end()) + { + m_QueuedMoveItems.insert(std::make_pair(event.Entity, item)); + } + else + { + m_MoveItems[event.Entity] = item; + } + } + else + { + m_MoveItems[event.Entity] = item; + } + return true; +} + + glm::vec3 Systems::TransformSystem::AbsolutePosition(EntityID entity) { glm::vec3 absPosition; @@ -91,3 +203,6 @@ Components::Transform Systems::TransformSystem::AbsoluteTransform(EntityID entit return transform; } + + + diff --git a/src/Systems/TransformSystem.h b/src/Systems/TransformSystem.h index 993e9d2..7d6f30e 100755 --- a/src/Systems/TransformSystem.h +++ b/src/Systems/TransformSystem.h @@ -3,6 +3,10 @@ #include "System.h" #include "Components/Transform.h" +#include "Events/Move.h" +#include "Events/Rotate.h" +#include + namespace Systems { @@ -14,12 +18,37 @@ public: : System(world, eventBroker, resourceManager) { } //void Update(double dt) override; - //void UpdateEntity(double dt, EntityID entity, EntityID parent) override; + + void Initialize() override; + void UpdateEntity(double dt, EntityID entity, EntityID parent) override; Components::Transform AbsoluteTransform(EntityID entity); glm::vec3 AbsolutePosition(EntityID entity); glm::quat AbsoluteOrientation(EntityID entity); glm::vec3 AbsoluteScale(EntityID entity); + + // Events + EventRelay m_EMove; + bool OnMove(const Events::Move &event); + EventRelay m_ERotate; + bool OnRotate(const Events::Rotate &event); +private: + struct MoveItems + { + EntityID Entity; + glm::vec3 GoalPosition; + float Speed; + }; + std::unordered_map m_MoveItems; + std::multimap m_QueuedMoveItems; + struct RotationItems + { + EntityID Entity; + glm::quat GoalRotation; + double Time; + }; + std::unordered_map m_RotationItems; + std::multimap m_QueuedRotationItems; }; } diff --git a/src/Systems/TriggerSystem.cpp b/src/Systems/TriggerSystem.cpp index 166a509..b6fbe65 100644 --- a/src/Systems/TriggerSystem.cpp +++ b/src/Systems/TriggerSystem.cpp @@ -6,11 +6,14 @@ void Systems::TriggerSystem::RegisterComponents( ComponentFactory* cf ) { cf->Register([]() { return new Components::Trigger(); }); cf->Register([]() { return new Components::TriggerExplosion(); }); + cf->Register([]() { return new Components::TriggerMove(); }); + cf->Register([]() { return new Components::TriggerRotate(); }); } void Systems::TriggerSystem::Initialize() { EVENT_SUBSCRIBE_MEMBER(m_EEnterTrigger, &Systems::TriggerSystem::OnEnterTrigger); + EVENT_SUBSCRIBE_MEMBER(m_ELeaveTrigger, &Systems::TriggerSystem::OnLeaveTrigger); } void Systems::TriggerSystem::Update( double dt ) @@ -23,10 +26,6 @@ void Systems::TriggerSystem::UpdateEntity( double dt, EntityID entity, EntityID } -void Systems::TriggerSystem::OnComponentCreated( std::string type, std::shared_ptr component ) -{ - -} void Systems::TriggerSystem::OnComponentRemoved(EntityID entity, std::string type, Component* component ) { @@ -45,34 +44,92 @@ void Systems::TriggerSystem::OnEntityRemoved( EntityID entity ) bool Systems::TriggerSystem::OnEnterTrigger( const Events::EnterTrigger &event ) { - /*auto explosionComponent1 = m_World->GetComponent(event.Entity1); - auto explosionComponent2 = m_World->GetComponent(event.Entity2); - - if(explosionComponent1) - { - Explosion(event.Entity2, event.Entity1); - } - else if (explosionComponent2) - { - Explosion(event.Entity1, event.Entity2); - }*/ - - auto flagComponent1 = m_World->GetComponent(event.Entity1); - auto flagComponent2 = m_World->GetComponent(event.Entity2); + + auto flagComponent1 = m_World->GetComponent(event.Trigger); + auto flagComponent2 = m_World->GetComponent(event.Entity); + //HACK: SIMON IS DISSING AMERICA if(flagComponent1) { - Flag(event.Entity2, event.Entity1); + Flag(event.Entity, event.Trigger); } else if (flagComponent2) { - Flag(event.Entity1, event.Entity2); + Flag(event.Trigger, event.Entity); + } + + + auto triggerMoveComponent = m_World->GetComponent(event.Trigger); + if (triggerMoveComponent) + { + Move(triggerMoveComponent->Entity, triggerMoveComponent->Queue, triggerMoveComponent->Swap); + } + + auto triggerRotateComponent = m_World->GetComponent(event.Trigger); + if (triggerRotateComponent) + { + Rotate(triggerMoveComponent->Entity, triggerMoveComponent->Queue, triggerMoveComponent->Swap); } return true; } +bool Systems::TriggerSystem::OnLeaveTrigger( const Events::LeaveTrigger &event ) +{ + auto triggerMoveComponent = m_World->GetComponent(event.Trigger); + if (triggerMoveComponent) + { + Move(triggerMoveComponent->Entity, triggerMoveComponent->Queue, triggerMoveComponent->Swap); + } + + auto triggerRotateComponent = m_World->GetComponent(event.Trigger); + if (triggerRotateComponent) + { + Rotate(triggerMoveComponent->Entity, triggerMoveComponent->Queue, triggerMoveComponent->Swap); + } + + return true; +} + + +void Systems::TriggerSystem::Rotate(EntityID entity, bool queue, bool swap) +{ + auto transform = m_World->GetComponent(entity); + auto rotate = m_World->GetComponent(entity); + + Events::Rotate e; + e.Entity = entity; + e.GoalRotation = rotate->GoalRotation; + e.Time = rotate->Time; + e.Queue = queue; + EventBroker->Publish(e); + + if (swap) + { + std::swap(rotate->GoalRotation, rotate->StartRotation); + } +} + + + +void Systems::TriggerSystem::Move(EntityID entity, bool queue, bool swap) +{ + auto move = m_World->GetComponent(entity); + Events::Move e; + e.Entity = entity; + e.GoalPosition = move->GoalPosition; + e.Speed = move->Speed; + e.Queue = queue; + EventBroker->Publish(e); + + if (swap) + { + std::swap(move->GoalPosition, move->StartPosition); + } +} + + void Systems::TriggerSystem::Flag( EntityID entity, EntityID phantomEntity ) { auto tankSteering = m_World->GetComponent(entity); diff --git a/src/Systems/TriggerSystem.h b/src/Systems/TriggerSystem.h index dffeb11..d158557 100644 --- a/src/Systems/TriggerSystem.h +++ b/src/Systems/TriggerSystem.h @@ -14,7 +14,15 @@ #include "Components/Trigger.h" #include "Components/TriggerExplosion.h" #include "Events/EnterTrigger.h" +#include "Events/LeaveTrigger.h" #include "Components/Flag.h" +#include "Components/TriggerMove.h" +#include "Components/TriggerRotate.h" +#include "Components/Move.h" +#include "Components/Rotate.h" +#include "Components/Player.h" +#include "Events/Move.h" +#include "Events/Rotate.h" #include namespace Systems { @@ -29,17 +37,20 @@ namespace Systems void RegisterComponents(ComponentFactory* cf) override; void Update(double dt) override; void UpdateEntity(double dt, EntityID entity, EntityID parent) override; - void OnComponentCreated(std::string type, std::shared_ptr component) override; + //void OnComponentCreated(std::string type, std::shared_ptr component) override; void OnComponentRemoved(EntityID entity, std::string type, Component* component) override; void OnEntityCommit(EntityID entity) override; void OnEntityRemoved(EntityID entity) override; EventRelay m_EEnterTrigger; bool OnEnterTrigger(const Events::EnterTrigger &event); + EventRelay m_ELeaveTrigger; + bool OnLeaveTrigger(const Events::LeaveTrigger &event); private: void Flag(EntityID entity, EntityID phantomEntity); void Explosion(EntityID entity, EntityID phantomEntity); - + void Move(EntityID entity, bool queue, bool swap); + void Rotate(EntityID entity, bool queue, bool swap); }; } diff --git a/src/World.cpp b/src/World.cpp index 482cf35..e5f9dfe 100755 --- a/src/World.cpp +++ b/src/World.cpp @@ -155,11 +155,11 @@ void World::AddComponent(EntityID entity, std::string componentType, std::shared component->Entity = entity; m_ComponentsOfType[componentType].push_back(component); m_EntityComponents[entity][componentType] = component; - for (auto pair : m_Systems) - { - auto system = pair.second; - system->OnComponentCreated(componentType, component); - } + + Events::ComponentCreated e; + e.Entity = entity; + e.Component = component; + EventBroker->Publish(e); } EntityID World::CloneEntity(EntityID entity, EntityID parent /* = 0 */) diff --git a/src/World.h b/src/World.h index 6e0f64f..ed3812c 100755 --- a/src/World.h +++ b/src/World.h @@ -17,6 +17,7 @@ #include "Components/Template.h" #include "System.h" #include "EventBroker.h" +#include "Events/ComponentCreated.h" #include "ResourceManager.h" class World diff --git a/vs11/Returngeance/Returngeance.vcxproj b/vs11/Returngeance/Returngeance.vcxproj index fb3c43e..7410589 100755 --- a/vs11/Returngeance/Returngeance.vcxproj +++ b/vs11/Returngeance/Returngeance.vcxproj @@ -39,14 +39,14 @@ - $(HAVOK_2013_1_0_r1_ROOT)\Source;$(BOOST_1_55_0_ROOT);$(SolutionDir)\..\src;$(SolutionDir)\..\libs;$(SolutionDir)\..\libs\glew-1.10.0\include;$(SolutionDir)\..\libs\glfw-3.0.4\include;$(SolutionDir)\..\libs\glm-0.9.5.3;$(SolutionDir)\..\libs\openal-soft-1.15.1\include;$(SolutionDir)\..\libs\bullet-2.82-r2704\src;$(SolutionDir)\..\libs\SOIL\src;$(DXSDK_DIR)\Include;$(IncludePath) - $(HAVOK_2013_1_0_r1_ROOT)\Lib\win32_vs2012_win7\debug_dll;$(BOOST_1_55_0_ROOT)\lib32-msvc-11.0;$(SolutionDir)\..\libs\glew-1.10.0\lib\Debug\Win32;$(SolutionDir)\..\libs\glfw-3.0.4\lib\Debug;$(SolutionDir)\..\libs\openal-soft-1.15.1\lib\Win32\Debug;$(SolutionDir)\..\libs\bullet-2.82-r2704\lib\Debug;$(SolutionDir)\..\libs\SOIL\lib\Debug;$(LibraryPath);$(DXSDK_DIR)\Lib\x86 + $(HAVOK_2013_1_0_r1_ROOT)\Source;$(BOOST_1_55_0_ROOT);$(SolutionDir)\..\src;$(SolutionDir)\..\libs;$(SolutionDir)\..\libs\glew-1.10.0\include;$(SolutionDir)\..\libs\glfw-3.0.4\include;$(SolutionDir)\..\libs\glm-0.9.5.3;$(SolutionDir)\..\libs\bullet-2.82-r2704\src;$(SolutionDir)\..\libs\SOIL\src;$(SolutionDir)\..\libs\FMOD\inc;$(DXSDK_DIR)\Include;$(IncludePath) + $(HAVOK_2013_1_0_r1_ROOT)\Lib\win32_vs2012_win7\debug_dll;$(BOOST_1_55_0_ROOT)\lib32-msvc-11.0;$(SolutionDir)\..\libs\glew-1.10.0\lib\Debug\Win32;$(SolutionDir)\..\libs\glfw-3.0.4\lib\Debug;$(SolutionDir)\..\libs\bullet-2.82-r2704\lib\Debug;$(SolutionDir)\..\libs\SOIL\lib\Debug;$(SolutionDir)\..\libs\FMOD\lib;$(LibraryPath);$(DXSDK_DIR)\Lib\x86 $(SolutionDir)\..\bin\$(Configuration)\ $(SolutionDir)\..\obj\$(Configuration)\ - $(HAVOK_2013_1_0_r1_ROOT)\Source;$(BOOST_1_55_0_ROOT);$(SolutionDir)\..\src;$(SolutionDir)\..\libs;$(SolutionDir)\..\libs\glew-1.10.0\include;$(SolutionDir)\..\libs\glfw-3.0.4\include;$(SolutionDir)\..\libs\glm-0.9.5.3;$(SolutionDir)\..\libs\openal-soft-1.15.1\include;$(SolutionDir)\..\libs\bullet-2.82-r2704\src;$(SolutionDir)\..\libs\SOIL\src;$(DXSDK_DIR)\Include;$(IncludePath) - $(HAVOK_2013_1_0_r1_ROOT)\Lib\win32_vs2012_win7\release_dll;$(BOOST_1_55_0_ROOT)\lib32-msvc-11.0;$(SolutionDir)\..\libs\glfw-3.0.4\lib\Release;$(SolutionDir)\..\libs\glew-1.10.0\lib\Release\Win32;$(SolutionDir)\..\libs\openal-soft-1.15.1\lib\Win32\Release;$(SolutionDir)\..\libs\bullet-2.82-r2704\lib\Release;$(SolutionDir)\..\libs\SOIL\lib\Release;$(LibraryPath);$(DXSDK_DIR)\Lib\x86 + $(HAVOK_2013_1_0_r1_ROOT)\Source;$(BOOST_1_55_0_ROOT);$(SolutionDir)\..\src;$(SolutionDir)\..\libs;$(SolutionDir)\..\libs\glew-1.10.0\include;$(SolutionDir)\..\libs\glfw-3.0.4\include;$(SolutionDir)\..\libs\glm-0.9.5.3;$(SolutionDir)\..\libs\FMOD\inc;$(SolutionDir)\..\libs\bullet-2.82-r2704\src;$(SolutionDir)\..\libs\SOIL\src;$(DXSDK_DIR)\Include;$(IncludePath) + $(HAVOK_2013_1_0_r1_ROOT)\Lib\win32_vs2012_win7\release_dll;$(BOOST_1_55_0_ROOT)\lib32-msvc-11.0;$(SolutionDir)\..\libs\glfw-3.0.4\lib\Release;$(SolutionDir)\..\libs\glew-1.10.0\lib\Release\Win32;$(SolutionDir)\..\libs\bullet-2.82-r2704\lib\Release;$(SolutionDir)\..\libs\SOIL\lib\Release;$(SolutionDir)\..\libs\FMOD\lib;$(LibraryPath);$(DXSDK_DIR)\Lib\x86 $(SolutionDir)\..\bin\$(Configuration)\ $(SolutionDir)\..\obj\$(Configuration)\ @@ -65,7 +65,7 @@ true - OpenAL32.lib;opengl32.lib;glu32.lib;SOIL.lib;XInput9_1_0.lib;glew32d.lib;glfw3.lib;hkBase.lib;hkVisualize.lib;hkInternal.lib;hkSerialize.lib;hkGeometryUtilities.lib;hkcdInternal.lib;hkcdCollide.lib;hkpCollide.lib;hkpConstraint.lib;hkpConstraintSolver.lib;hkpDynamics.lib;hkpInternal.lib;hkpUtilities.lib;hkSceneData.lib;hkpVehicle.lib;%(AdditionalDependencies) + fmodex_vc.lib;opengl32.lib;glu32.lib;SOIL.lib;XInput9_1_0.lib;glew32d.lib;glfw3.lib;hkBase.lib;hkVisualize.lib;hkInternal.lib;hkSerialize.lib;hkGeometryUtilities.lib;hkcdInternal.lib;hkcdCollide.lib;hkpCollide.lib;hkpConstraint.lib;hkpConstraintSolver.lib;hkpDynamics.lib;hkpInternal.lib;hkpUtilities.lib;hkSceneData.lib;hkpVehicle.lib;%(AdditionalDependencies) /ignore:4221 @@ -89,7 +89,7 @@ true true true - OpenAL32.lib;opengl32.lib;glu32.lib;SOIL.lib;XInput9_1_0.lib;glew32.lib;glfw3.lib;hkBase.lib;hkVisualize.lib;hkInternal.lib;hkSerialize.lib;hkGeometryUtilities.lib;hkcdInternal.lib;hkcdCollide.lib;hkpCollide.lib;hkpConstraint.lib;hkpConstraintSolver.lib;hkpDynamics.lib;hkpInternal.lib;hkpUtilities.lib;hkSceneData.lib;hkpVehicle.lib;%(AdditionalDependencies) + fmodex_vc.lib;opengl32.lib;glu32.lib;SOIL.lib;XInput9_1_0.lib;glew32.lib;glfw3.lib;hkBase.lib;hkVisualize.lib;hkInternal.lib;hkSerialize.lib;hkGeometryUtilities.lib;hkcdInternal.lib;hkcdCollide.lib;hkpCollide.lib;hkpConstraint.lib;hkpConstraintSolver.lib;hkpDynamics.lib;hkpInternal.lib;hkpUtilities.lib;hkSceneData.lib;hkpVehicle.lib;%(AdditionalDependencies) @@ -111,7 +111,9 @@ + + @@ -136,7 +138,12 @@ + + + + + @@ -145,6 +152,7 @@ + @@ -161,7 +169,9 @@ + + @@ -176,6 +186,7 @@ + @@ -184,13 +195,19 @@ + - + + + + + + @@ -219,7 +236,9 @@ + + diff --git a/vs11/Returngeance/Returngeance.vcxproj.filters b/vs11/Returngeance/Returngeance.vcxproj.filters index 3d17c9e..4281fd2 100755 --- a/vs11/Returngeance/Returngeance.vcxproj.filters +++ b/vs11/Returngeance/Returngeance.vcxproj.filters @@ -49,7 +49,6 @@ Input\Systems - Particle System\Systems @@ -64,7 +63,7 @@ Physics\Systems - Gameplay\Vehicles\Helicopter\Systems + Game\Vehicles\Helicopter\Systems Physics\Systems @@ -73,9 +72,18 @@ Base\Systems - Gameplay\Systems + Game\Systems + + Game\Systems + + + Game\Systems + + + Audio + @@ -150,34 +158,40 @@ {42ae084f-ade8-402c-87ba-f03f6b846bc8} - + + {a025d51e-594d-4844-983b-f683726bf1bf} + + + {ffab6cc2-2fbf-400f-9398-a6741b6cc95c} + + {5b992473-73e6-485e-8f13-17e0801fb2ca} - + {8a78be3a-a3c5-4054-a2f1-1456f3fcbab0} - + {8ccc0abe-5bdd-4656-ab11-5708a39c71ae} - + {b2416d05-a49e-4fef-a5c4-cd03d8cc2efd} - + {b34c0c95-a887-4cf4-af24-cf7c1f459aa8} - + {cb06b441-90b8-46ed-b347-4190dac7185b} {ddd3c442-7c2f-4690-9308-fcef62deee0b} - + {3c2ea0e5-41a1-4b11-a891-1d59ead7223c} - - {a025d51e-594d-4844-983b-f683726bf1bf} + + {3cbe68d9-2446-45ee-8637-ffb805997dcd} - + {9702064a-02a2-4b3c-a2ab-47c23a9cf49c} @@ -323,9 +337,6 @@ Util - - Audio\Events - Input\Events @@ -405,10 +416,10 @@ Input\Events - Gameplay\Vehicles\Helicopter\Components + Game\Vehicles\Helicopter\Components - Gameplay\Vehicles\Helicopter\Systems + Game\Vehicles\Helicopter\Systems Physics\Events @@ -417,7 +428,7 @@ Physics\Events - Gameplay\Components + Game\Components Particle System\Events @@ -428,6 +439,21 @@ Gameplay\Components + + Audio\Components + + + Base\Events + + + Audio\Events + + + Audio\Events + + + Audio\Events + Physics\Components @@ -459,13 +485,13 @@ Base\Components - Gameplay\Systems + Game\Systems - Gameplay\Events + Game\Events - Gameplay\Components + Game\Components GUI @@ -488,12 +514,52 @@ Physics\Systems + + Base\Events + + Rendering\Components + + Physics\Events + + + Game\Components + + + Game\Systems + + + Base\Events + + + Physics\Components + + + Physics\Components + + + Game\Systems + + + Game\Components + + + Base\Components + + + Base\Components + GUI + + Game\Events + + + Game\Components +