diff --git a/README.md b/README.md
index cfe8c21..1f03936 100644
--- a/README.md
+++ b/README.md
@@ -7,15 +7,17 @@ Modify and tear it apart as needed to fit the specific needs of whatever you're
This is practically my entire toolset - being iterated on since 2018.
Games shipped using the concepts in this template:
-- https://store.steampowered.com/app/2571560/ARCANA/
-- https://store.steampowered.com/app/3309460/Demon_Knives/
-- https://store.steampowered.com/app/3433610/Terrafactor/
+
+-
+-
+-
Things are in various stages of completion, lots of TODOs thrown around, dumb performance bottlenecks, etc. But as it stands, it's about as production ready as I've been able to pull off so far.
I'll be updating this as I continue making games and learning new things.
# Features
+
- Very fast pixel art asset creation & iteration pipeline with Aseprite via `asset_workbench/aseprite_asset_export.lua`
- Shaders with a rendering system that can be completely overhauled to suit whatever VFX you need
- A single-function entity gameplay programming workflow that scales well
@@ -25,21 +27,25 @@ I'll be updating this as I continue making games and learning new things.
# The Structure
## Core
+
Any file with `core_` is the meat of the tooling and is more or less seperate from the game logic.
I used to have these in standalone packages, but it's too annoying to enforce a clear boundary. Often you want to be able to access the entity structure or other game-specific stuff in the core.
-## `main.odin`
+## `main.odin`
+
This is the entrypoint and the structure of the main loop.
By default, I use a variable timestep. It works nicely in most situations for as little complexity as possible. But this can be altered to fit whatever the constraints of the game are. Maybe it's multiplayer. Maybe it needs a fixed timestep. Etc.
## `game.odin`
+
This is where most of the magic happens. The intersection of all tech. A place to "just make game".
This is the file I spend 90% of my time in, adding in new content to whatever the game is. It gets pretty big pretty quick. It's a very cozy place for writing gameplay slop.
## `entity.odin`
+
The backbone of the entity megastruct. As talked about [in here](https://randyprime.beehiiv.com/p/entity-structure-made-simple).
# Building
@@ -49,40 +55,52 @@ In general, development is way easier on windows since there's more tooling and
I get that some people prefer to be linux or mac chads though. It's relatively simple to get working natively since Sokol is great, so I'm beginning to add in support for both.
## Windows
+
1. [install Odin](https://odin-lang.org/docs/install/)
2. call `build.bat`
3. check `build/windows_debug`
4. see instructions below for running
## Mac
+
1. [install Odin](https://odin-lang.org/docs/install/)
2. call `build_mac.sh`
3. check `build/mac_debug`
4. see instructions below for running
## Linux
-todo
+
+1. [install Odin](https://odin-lang.org/docs/install/)
+2. call `build_linux.sh`
+3. check `build/linux_debug`
+4. see instructions below for running
## Web
+
coming soon™️
# Running
+
Needs to run from the root directory since it's accessing /res.
I'd recommend setting up the [RAD Debugger](https://github.com/EpicGamesExt/raddebugger) (windows-only) for a great running & debugging experience. I always launch my game directly from there so it's easier to catch bugs on the fly.
# FAQ
+
## Why is this a "blueprint" (not a library)?
+
Game development is complicated.
I think trying to abstract everything away behind a library is a mistake. It makes things look and feel "clean" but sacrifices the capability, limiting what you're able to do and forcing you to use hacky workarounds instead of just doing the simplest and most direct thing possible to solve the problem.
old way:
+
1. use library
2. hit a wall in using it
3. work around it in a hacky way or cut the idea
new way:
+
1. use this blueprint
2. hit a wall in using it
3. learn the fundamental thing it's doing, then build on top of it, adjusting the source
@@ -95,13 +113,16 @@ I tried my best to seperate the core stuff from the game specific stuff so it's
I'll continue trying to simplify this and make it as readable and usable as possible, without sacrificing the full production-ready power of it.
## Why Odin?
+
Compared to C, it's a lot more fun to work in. Less overall typing, more safety by default, and great quality of life. Happy programming = more gameplay.
Compared to Jai, it has more users and is public (Jai is still in a closed beta). So that means more stability and a better ecosystem around packages, tooling etc, (because more people use it).
## Why Sokol?
+
It feels like a nice sweet spot high and low level.
It's not as high level as something like Raylib, so there's more flexibility with what you can do.
-But usually to use Sokol you need to learn graphics programming, and usually there's a lot of boilerplate involved. That's why I've built this blueprint.
\ No newline at end of file
+But usually to use Sokol you need to learn graphics programming, and usually there's a lot of boilerplate involved. That's why I've built this blueprint.
+
diff --git a/sauce/build/build.odin b/sauce/build/build.odin
index 05bb933..d7c17e4 100644
--- a/sauce/build/build.odin
+++ b/sauce/build/build.odin
@@ -162,13 +162,20 @@ main :: proc() {
append(&files_to_copy, "sauce/fmod/core/lib/darwin/libfmod.dylib")
append(&files_to_copy, "sauce/fmod/core/lib/darwin/libfmodL.dylib")
case .linux:
- //TODO: linux fmod support
+ append(&files_to_copy, "sauce/fmod/studio/lib/linux/libfmodstudio.so")
+ append(&files_to_copy, "sauce/fmod/studio/lib/linux/libfmodstudio.so.13")
+ append(&files_to_copy, "sauce/fmod/studio/lib/linux/libfmodstudioL.so")
+ append(&files_to_copy, "sauce/fmod/studio/lib/linux/libfmodstudioL.so.13")
+ append(&files_to_copy, "sauce/fmod/core/lib/linux/libfmod.so")
+ append(&files_to_copy, "sauce/fmod/core/lib/linux/libfmod.so.13")
+ append(&files_to_copy, "sauce/fmod/core/lib/linux/libfmodL.so")
+ append(&files_to_copy, "sauce/fmod/core/lib/linux/libfmodL.so.13")
}
for src in files_to_copy {
dir, file_name := path.split(src)
assert(os.exists(dir), fmt.tprint("directory doesn't exist:", dir))
- dest := fmt.tprintf("%v/%v", out_dir, file_name)
+ dest := path.join({out_dir, file_name})
if !os.exists(dest) {
os2.copy_file(dest, src)
}
diff --git a/sauce/core_main.odin b/sauce/core_main.odin
index a9a2205..207acee 100644
--- a/sauce/core_main.odin
+++ b/sauce/core_main.odin
@@ -25,7 +25,7 @@ import sg "sokol/gfx"
import sglue "sokol/glue"
import slog "sokol/log"
-import win32 "core:sys/windows" // wait, how is this building on mac?
+import win32 "core:sys/windows" // wait, how is this building on mac? even more so, how is this building on linux?D:
Core_Context :: struct {
gs: ^Game_State,
diff --git a/sauce/fmod/core/fmod.odin b/sauce/fmod/core/fmod.odin
index 3194d7f..9cf0878 100644
--- a/sauce/fmod/core/fmod.odin
+++ b/sauce/fmod/core/fmod.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
// ========================================================================================
@@ -21,6 +20,20 @@ when ODIN_OS == .Windows {
foreign import lib "lib/windows/x64/fmod_vc.lib"
}
}
+when ODIN_OS == .Darwin {
+ when LOGGING_ENABLED {
+ foreign import lib "lib/darwin/libfmodL.dylib"
+ } else {
+ foreign import lib "lib/darwin/libfmod.dylib"
+ }
+}
+when ODIN_OS == .Linux {
+ when LOGGING_ENABLED {
+ foreign import lib "lib/linux/libfmodL.so"
+ } else {
+ foreign import lib "lib/linux/libfmod.so"
+ }
+}
@(default_calling_convention = "c", link_prefix = "FMOD_")
foreign lib {
diff --git a/sauce/fmod/core/fmod_codec.odin b/sauce/fmod/core/fmod_codec.odin
index 21b3550..a89c7bc 100644
--- a/sauce/fmod/core/fmod_codec.odin
+++ b/sauce/fmod/core/fmod_codec.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ======================================================================================== */
@@ -34,47 +33,47 @@ CODEC_SEEK_METHOD :: enum i32 {
// Codec callbacks
//
-CODEC_OPEN_CALLBACK :: #type proc "stdcall" (
+CODEC_OPEN_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
usermode: MODE,
userexinfo: ^CREATESOUNDEXINFO,
) -> RESULT
-CODEC_CLOSE_CALLBACK :: #type proc "stdcall" (codec_state: ^CODEC_STATE) -> RESULT
+CODEC_CLOSE_CALLBACK :: #type proc "cdecl" (codec_state: ^CODEC_STATE) -> RESULT
-CODEC_READ_CALLBACK :: #type proc "stdcall" (
+CODEC_READ_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
buffer: rawptr,
samples_in: u32,
samples_out: ^u32,
) -> RESULT
-CODEC_GETLENGTH_CALLBACK :: #type proc "stdcall" (
+CODEC_GETLENGTH_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
length: ^u32,
lengthtype: TIMEUNIT,
) -> RESULT
-CODEC_SETPOSITION_CALLBACK :: #type proc "stdcall" (
+CODEC_SETPOSITION_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
subsound: i32,
position: u32,
postype: TIMEUNIT,
) -> RESULT
-CODEC_GETPOSITION_CALLBACK :: #type proc "stdcall" (
+CODEC_GETPOSITION_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
position: ^u32,
postype: TIMEUNIT,
) -> RESULT
-CODEC_SOUNDCREATE_CALLBACK :: #type proc "stdcall" (
+CODEC_SOUNDCREATE_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
subsound: i32,
sound: ^SOUND,
) -> RESULT
-CODEC_GETWAVEFORMAT_CALLBACK :: #type proc "stdcall" (
+CODEC_GETWAVEFORMAT_CALLBACK :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
index: i32,
waveformat: ^CODEC_WAVEFORMAT,
@@ -86,7 +85,7 @@ CODEC_GETWAVEFORMAT_CALLBACK :: #type proc "stdcall" (
// Codec functions
//
-CODEC_METADATA_FUNC :: #type proc "stdcall" (
+CODEC_METADATA_FUNC :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
tagtype: TAGTYPE,
name: [^]u8,
@@ -96,10 +95,10 @@ CODEC_METADATA_FUNC :: #type proc "stdcall" (
unique: i32,
) -> RESULT
-CODEC_ALLOC_FUNC :: #type proc "stdcall" (size: u32, align: u32, file: cstring, line: i32) -> rawptr
-CODEC_FREE_FUNC :: #type proc "stdcall" (ptr: rawptr, file: cstring, line: i32)
+CODEC_ALLOC_FUNC :: #type proc "cdecl" (size: u32, align: u32, file: cstring, line: i32) -> rawptr
+CODEC_FREE_FUNC :: #type proc "cdecl" (ptr: rawptr, file: cstring, line: i32)
-CODEC_LOG_FUNC :: #type proc "stdcall" (
+CODEC_LOG_FUNC :: #type proc "cdecl" (
level: DEBUG_FLAGS,
file: cstring,
line: i32,
@@ -108,21 +107,21 @@ CODEC_LOG_FUNC :: #type proc "stdcall" (
#c_vararg args: ..any,
)
-CODEC_FILE_READ_FUNC :: #type proc "stdcall" (
+CODEC_FILE_READ_FUNC :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
buffer: rawptr,
sizebytes: u32,
bytesread: ^u32,
) -> RESULT
-CODEC_FILE_SEEK_FUNC :: #type proc "stdcall" (
+CODEC_FILE_SEEK_FUNC :: #type proc "cdecl" (
codec_state: ^CODEC_STATE,
pos: u32,
method: CODEC_SEEK_METHOD,
) -> RESULT
-CODEC_FILE_TELL_FUNC :: #type proc "stdcall" (codec_state: ^CODEC_STATE, pos: ^u32) -> RESULT
-CODEC_FILE_SIZE_FUNC :: #type proc "stdcall" (codec_state: ^CODEC_STATE, size: ^u32) -> RESULT
+CODEC_FILE_TELL_FUNC :: #type proc "cdecl" (codec_state: ^CODEC_STATE, pos: ^u32) -> RESULT
+CODEC_FILE_SIZE_FUNC :: #type proc "cdecl" (codec_state: ^CODEC_STATE, size: ^u32) -> RESULT
diff --git a/sauce/fmod/core/fmod_codec_darwin.odin b/sauce/fmod/core/fmod_codec_darwin.odin
deleted file mode 100644
index 64cbc4e..0000000
--- a/sauce/fmod/core/fmod_codec_darwin.odin
+++ /dev/null
@@ -1,206 +0,0 @@
-package fmod_core
-
-/* ======================================================================================== */
-/* FMOD Core API - Codec development header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* 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. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/core-api.html */
-/* ======================================================================================== */
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Codec constants
-//
-
-CODEC_PLUGIN_VERSION :: 1
-
-CODEC_SEEK_METHOD :: enum i32 {
- SET = 0,
- CURRENT = 1,
- END = 2,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Codec callbacks
-//
-
-/*
-CODEC_OPEN_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- usermode: MODE,
- userexinfo: ^CREATESOUNDEXINFO,
-) -> RESULT
-
-CODEC_CLOSE_CALLBACK :: #type proc (codec_state: ^CODEC_STATE) -> RESULT
-
-CODEC_READ_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- buffer: rawptr,
- samples_in: u32,
- samples_out: ^u32,
-) -> RESULT
-
-CODEC_GETLENGTH_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- length: ^u32,
- lengthtype: TIMEUNIT,
-) -> RESULT
-
-CODEC_SETPOSITION_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- subsound: i32,
- position: u32,
- postype: TIMEUNIT,
-) -> RESULT
-
-CODEC_GETPOSITION_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- position: ^u32,
- postype: TIMEUNIT,
-) -> RESULT
-
-CODEC_SOUNDCREATE_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- subsound: i32,
- sound: ^SOUND,
-) -> RESULT
-
-CODEC_GETWAVEFORMAT_CALLBACK :: #type proc (
- codec_state: ^CODEC_STATE,
- index: i32,
- waveformat: ^CODEC_WAVEFORMAT,
-) -> RESULT
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Codec functions
-//
-
-CODEC_METADATA_FUNC :: #type proc (
- codec_state: ^CODEC_STATE,
- tagtype: TAGTYPE,
- name: [^]u8,
- data: rawptr,
- datalen: u32,
- datatype: TAGDATATYPE,
- unique: i32,
-) -> RESULT
-
-CODEC_ALLOC_FUNC :: #type proc (size: u32, align: u32, file: cstring, line: i32) -> rawptr
-CODEC_FREE_FUNC :: #type proc (ptr: rawptr, file: cstring, line: i32)
-
-CODEC_LOG_FUNC :: #type proc (
- level: DEBUG_FLAGS,
- file: cstring,
- line: i32,
- function: cstring,
- str: cstring,
- #c_vararg args: ..any,
-)
-
-CODEC_FILE_READ_FUNC :: #type proc (
- codec_state: ^CODEC_STATE,
- buffer: rawptr,
- sizebytes: u32,
- bytesread: ^u32,
-) -> RESULT
-
-CODEC_FILE_SEEK_FUNC :: #type proc (
- codec_state: ^CODEC_STATE,
- pos: u32,
- method: CODEC_SEEK_METHOD,
-) -> RESULT
-
-CODEC_FILE_TELL_FUNC :: #type proc (codec_state: ^CODEC_STATE, pos: ^u32) -> RESULT
-CODEC_FILE_SIZE_FUNC :: #type proc (codec_state: ^CODEC_STATE, size: ^u32) -> RESULT
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Codec structures
-//
-
-CODEC_DESCRIPTION :: struct {
- apiversion: u32,
- name: cstring,
- version: u32,
- defaultasstream: i32,
- timeunits: TIMEUNIT,
- open: CODEC_OPEN_CALLBACK,
- close: CODEC_CLOSE_CALLBACK,
- read: CODEC_READ_CALLBACK,
- getlength: CODEC_GETLENGTH_CALLBACK,
- setposition: CODEC_SETPOSITION_CALLBACK,
- getposition: CODEC_GETPOSITION_CALLBACK,
- soundcreate: CODEC_SOUNDCREATE_CALLBACK,
- getwaveformat: CODEC_GETWAVEFORMAT_CALLBACK,
-}
-
-CODEC_WAVEFORMAT :: struct {
- name: cstring,
- format: SOUND_FORMAT,
- channels: i32,
- frequency: i32,
- lengthbytes: u32,
- lengthpcm: u32,
- pcmblocksize: u32,
- loopstart: i32,
- loopend: i32,
- mode: MODE,
- channelmask: CHANNELMASK,
- channelorder: CHANNELORDER,
- peakvolume: f32,
-}
-
-CODEC_STATE_FUNCTIONS :: struct {
- metadata: CODEC_METADATA_FUNC,
- alloc: CODEC_ALLOC_FUNC,
- free: CODEC_FREE_FUNC,
- log: CODEC_LOG_FUNC,
- read: CODEC_FILE_READ_FUNC,
- seek: CODEC_FILE_SEEK_FUNC,
- tell: CODEC_FILE_TELL_FUNC,
- size: CODEC_FILE_SIZE_FUNC,
-}
-
-CODEC_STATE :: struct {
- plugindata: rawptr,
- waveformat: ^CODEC_WAVEFORMAT,
- functions: ^CODEC_STATE_FUNCTIONS,
- numsubsounds: i32,
-}
-*/
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Codec macros
-//
-
-/*
-#define CODEC_METADATA(_state, _tagtype, _name, _data, _datalen, _datatype, _unique) \
- (_state)->functions->metadata(_state, _tagtype, _name, _data, _datalen, _datatype, _unique)
-#define CODEC_ALLOC(_state, _size, _align) \
- (_state)->functions->alloc(_size, _align, __FILE__, __LINE__)
-#define CODEC_FREE(_state, _ptr) \
- (_state)->functions->free(_ptr, __FILE__, __LINE__)
-#define CODEC_LOG(_state, _level, _location, _format, ...) \
- (_state)->functions->log(_level, __FILE__, __LINE__, _location, _format, __VA_ARGS__)
-#define CODEC_FILE_READ(_state, _buffer, _sizebytes, _bytesread) \
- (_state)->functions->read(_state, _buffer, _sizebytes, _bytesread)
-#define CODEC_FILE_SEEK(_state, _pos, _method) \
- (_state)->functions->seek(_state, _pos, _method)
-#define CODEC_FILE_TELL(_state, _pos) \
- (_state)->functions->tell(_state, _pos)
-#define CODEC_FILE_SIZE(_state, _size) \
- (_state)->functions->size(_state, _size)
-*/
diff --git a/sauce/fmod/core/fmod_common.odin b/sauce/fmod/core/fmod_common.odin
index b4fe2d6..e082616 100644
--- a/sauce/fmod/core/fmod_common.odin
+++ b/sauce/fmod/core/fmod_common.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ======================================================================================== */
@@ -667,7 +666,7 @@ PORT_TYPE :: enum i32 {
// FMOD callbacks
//
-DEBUG_CALLBACK :: #type proc "stdcall" (
+DEBUG_CALLBACK :: #type proc "cdecl" (
flags: DEBUG_FLAGS,
file: cstring,
line: i32,
@@ -675,7 +674,7 @@ DEBUG_CALLBACK :: #type proc "stdcall" (
message: cstring,
) -> RESULT
-SYSTEM_CALLBACK :: #type proc "stdcall" (
+SYSTEM_CALLBACK :: #type proc "cdecl" (
system: ^SYSTEM,
type: SYSTEM_CALLBACK_TYPE,
commanddata1: rawptr,
@@ -683,7 +682,7 @@ SYSTEM_CALLBACK :: #type proc "stdcall" (
userdata: rawptr,
) -> RESULT
-CHANNELCONTROL_CALLBACK :: proc "stdcall" (
+CHANNELCONTROL_CALLBACK :: proc "cdecl" (
channelcontrol: ^CHANNELCONTROL,
controltype: CHANNELCONTROL_TYPE,
callbacktype: CHANNELCONTROL_CALLBACK_TYPE,
@@ -691,27 +690,27 @@ CHANNELCONTROL_CALLBACK :: proc "stdcall" (
commanddata2: rawptr,
) -> RESULT
-DSP_CALLBACK :: #type proc "stdcall" (dsp: ^DSP, type: DSP_CALLBACK_TYPE, data: rawptr) -> RESULT
-SOUND_NONBLOCK_CALLBACK :: #type proc "stdcall" (sound: ^SOUND, result: RESULT) -> RESULT
-SOUND_PCMREAD_CALLBACK :: #type proc "stdcall" (sound: ^SOUND, data: rawptr, datalen: u32) -> RESULT
+DSP_CALLBACK :: #type proc "cdecl" (dsp: ^DSP, type: DSP_CALLBACK_TYPE, data: rawptr) -> RESULT
+SOUND_NONBLOCK_CALLBACK :: #type proc "cdecl" (sound: ^SOUND, result: RESULT) -> RESULT
+SOUND_PCMREAD_CALLBACK :: #type proc "cdecl" (sound: ^SOUND, data: rawptr, datalen: u32) -> RESULT
-SOUND_PCMSETPOS_CALLBACK :: #type proc "stdcall" (
+SOUND_PCMSETPOS_CALLBACK :: #type proc "cdecl" (
sound: ^SOUND,
subsound: i32,
position: u32,
postype: TIMEUNIT,
) -> RESULT
-FILE_OPEN_CALLBACK :: #type proc "stdcall" (
+FILE_OPEN_CALLBACK :: #type proc "cdecl" (
name: cstring,
filesize: ^u32,
handle: ^rawptr,
userdata: rawptr,
) -> RESULT
-FILE_CLOSE_CALLBACK :: #type proc "stdcall" (handle: rawptr, userdata: rawptr) -> RESULT
+FILE_CLOSE_CALLBACK :: #type proc "cdecl" (handle: rawptr, userdata: rawptr) -> RESULT
-FILE_READ_CALLBACK :: #type proc "stdcall" (
+FILE_READ_CALLBACK :: #type proc "cdecl" (
handle: rawptr,
buffer: rawptr,
sizebytes: u32,
@@ -719,22 +718,22 @@ FILE_READ_CALLBACK :: #type proc "stdcall" (
userdata: rawptr,
) -> RESULT
-FILE_SEEK_CALLBACK :: #type proc "stdcall" (handle: rawptr, pos: u32, userdata: rawptr) -> RESULT
-FILE_ASYNCREAD_CALLBACK :: #type proc "stdcall" (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
-FILE_ASYNCCANCEL_CALLBACK :: #type proc "stdcall" (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
+FILE_SEEK_CALLBACK :: #type proc "cdecl" (handle: rawptr, pos: u32, userdata: rawptr) -> RESULT
+FILE_ASYNCREAD_CALLBACK :: #type proc "cdecl" (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
+FILE_ASYNCCANCEL_CALLBACK :: #type proc "cdecl" (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
-FILE_ASYNCDONE_FUNC :: #type proc "stdcall" (info: ^ASYNCREADINFO, result: RESULT)
-MEMORY_ALLOC_CALLBACK :: #type proc "stdcall" (size: u32, _type: MEMORY_TYPE, sourcestr: cstring)
+FILE_ASYNCDONE_FUNC :: #type proc "cdecl" (info: ^ASYNCREADINFO, result: RESULT)
+MEMORY_ALLOC_CALLBACK :: #type proc "cdecl" (size: u32, _type: MEMORY_TYPE, sourcestr: cstring)
-MEMORY_REALLOC_CALLBACK :: #type proc "stdcall" (
+MEMORY_REALLOC_CALLBACK :: #type proc "cdecl" (
ptr: rawptr,
size: u32,
_type: MEMORY_TYPE,
sourcestr: cstring,
)
-MEMORY_FREE_CALLBACK :: #type proc "stdcall" (ptr: rawptr, _type: MEMORY_TYPE, sourcestr: cstring)
-_3D_ROLLOFF_CALLBACK :: #type proc "stdcall" (channelcontrol: ^CHANNELCONTROL, distance: f32) -> f32
+MEMORY_FREE_CALLBACK :: #type proc "cdecl" (ptr: rawptr, _type: MEMORY_TYPE, sourcestr: cstring)
+_3D_ROLLOFF_CALLBACK :: #type proc "cdecl" (channelcontrol: ^CHANNELCONTROL, distance: f32) -> f32
diff --git a/sauce/fmod/core/fmod_common_darwin.odin b/sauce/fmod/core/fmod_common_darwin.odin
deleted file mode 100644
index da365fa..0000000
--- a/sauce/fmod/core/fmod_common_darwin.odin
+++ /dev/null
@@ -1,885 +0,0 @@
-package fmod_core
-
-/* ======================================================================================== */
-/* FMOD Core API - Common C/C++ header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* This header is included by fmod.hpp (C++ interface) and fmod.h (C interface) */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/core-api-common.html */
-/* ======================================================================================== */
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD constants
-//
-
-VERSION: u32 : 0x00020215 /* 0xaaaabbcc -> aaaa = product version, bb = major version, cc = minor version.*/
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD core types
-//
-
-SYSTEM :: struct {}
-SOUND :: struct {}
-CHANNELCONTROL :: struct {}
-CHANNEL :: struct {}
-CHANNELGROUP :: struct {}
-SOUNDGROUP :: struct {}
-REVERB3D :: struct {}
-DSP :: struct {}
-DSPCONNECTION :: struct {}
-POLYGON :: struct {}
-GEOMETRY :: struct {}
-SYNCPOINT :: struct {}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD constants
-//
-
-DEBUG_FLAGS :: distinct u32
-DEBUG_LEVEL_NONE :: 0x00000000
-DEBUG_LEVEL_ERROR :: 0x00000001
-DEBUG_LEVEL_WARNING :: 0x00000002
-DEBUG_LEVEL_LOG :: 0x00000004
-DEBUG_TYPE_MEMORY :: 0x00000100
-DEBUG_TYPE_FILE :: 0x00000200
-DEBUG_TYPE_CODEC :: 0x00000400
-DEBUG_TYPE_TRACE :: 0x00000800
-DEBUG_DISPLAY_TIMESTAMPS :: 0x00010000
-DEBUG_DISPLAY_LINENUMBERS :: 0x00020000
-DEBUG_DISPLAY_THREAD :: 0x00040000
-
-MEMORY_TYPE :: distinct u32
-MEMORY_NORMAL :: 0x00000000
-MEMORY_STREAM_FILE :: 0x00000001
-MEMORY_STREAM_DECODE :: 0x00000002
-MEMORY_SAMPLEDATA :: 0x00000004
-MEMORY_DSP_BUFFER :: 0x00000008
-MEMORY_PLUGIN :: 0x00000010
-MEMORY_PERSISTENT :: 0x00200000
-MEMORY_ALL :: 0xFFFFFFFF
-
-INITFLAGS :: distinct u32
-INIT_NORMAL :: 0x00000000
-INIT_STREAM_FROM_UPDATE :: 0x00000001
-INIT_MIX_FROM_UPDATE :: 0x00000002
-INIT_3D_RIGHTHANDED :: 0x00000004
-INIT_CLIP_OUTPUT :: 0x00000008
-INIT_CHANNEL_LOWPASS :: 0x00000100
-INIT_CHANNEL_DISTANCEFILTER :: 0x00000200
-INIT_PROFILE_ENABLE :: 0x00010000
-INIT_VOL0_BECOMES_VIRTUAL :: 0x00020000
-INIT_GEOMETRY_USECLOSEST :: 0x00040000
-INIT_PREFER_DOLBY_DOWNMIX :: 0x00080000
-INIT_THREAD_UNSAFE :: 0x00100000
-INIT_PROFILE_METER_ALL :: 0x00200000
-INIT_MEMORY_TRACKING :: 0x00400000
-
-DRIVER_STATE :: distinct u32
-DRIVER_STATE_CONNECTED :: 0x00000001
-DRIVER_STATE_DEFAULT :: 0x00000002
-
-TIMEUNIT :: distinct u32
-TIMEUNIT_MS :: 0x00000001
-TIMEUNIT_PCM :: 0x00000002
-TIMEUNIT_PCMBYTES :: 0x00000004
-TIMEUNIT_RAWBYTES :: 0x00000008
-TIMEUNIT_PCMFRACTION :: 0x00000010
-TIMEUNIT_MODORDER :: 0x00000100
-TIMEUNIT_MODROW :: 0x00000200
-TIMEUNIT_MODPATTERN :: 0x00000400
-
-SYSTEM_CALLBACK_TYPE :: distinct u32
-SYSTEM_CALLBACK_DEVICELISTCHANGED :: 0x00000001
-SYSTEM_CALLBACK_DEVICELOST :: 0x00000002
-SYSTEM_CALLBACK_MEMORYALLOCATIONFAILED :: 0x00000004
-SYSTEM_CALLBACK_THREADCREATED :: 0x00000008
-SYSTEM_CALLBACK_BADDSPCONNECTION :: 0x00000010
-SYSTEM_CALLBACK_PREMIX :: 0x00000020
-SYSTEM_CALLBACK_POSTMIX :: 0x00000040
-SYSTEM_CALLBACK_ERROR :: 0x00000080
-SYSTEM_CALLBACK_MIDMIX :: 0x00000100
-SYSTEM_CALLBACK_THREADDESTROYED :: 0x00000200
-SYSTEM_CALLBACK_PREUPDATE :: 0x00000400
-SYSTEM_CALLBACK_POSTUPDATE :: 0x00000800
-SYSTEM_CALLBACK_RECORDLISTCHANGED :: 0x00001000
-SYSTEM_CALLBACK_BUFFEREDNOMIX :: 0x00002000
-SYSTEM_CALLBACK_DEVICEREINITIALIZE :: 0x00004000
-SYSTEM_CALLBACK_OUTPUTUNDERRUN :: 0x00008000
-SYSTEM_CALLBACK_RECORDPOSITIONCHANGED :: 0x00010000
-SYSTEM_CALLBACK_ALL :: 0xFFFFFFFF
-
-MODE :: distinct u32
-MODE_DEFAULT :: 0x00000000
-MODE_LOOP_OFF :: 0x00000001
-MODE_LOOP_NORMAL :: 0x00000002
-MODE_LOOP_BIDI :: 0x00000004
-MODE_2D :: 0x00000008
-MODE_3D :: 0x00000010
-MODE_CREATESTREAM :: 0x00000080
-MODE_CREATESAMPLE :: 0x00000100
-MODE_CREATECOMPRESSEDSAMPLE :: 0x00000200
-MODE_OPENUSER :: 0x00000400
-MODE_OPENMEMORY :: 0x00000800
-MODE_OPENMEMORY_POINT :: 0x10000000
-MODE_OPENRAW :: 0x00001000
-MODE_OPENONLY :: 0x00002000
-MODE_ACCURATETIME :: 0x00004000
-MODE_MPEGSEARCH :: 0x00008000
-MODE_NONBLOCKING :: 0x00010000
-MODE_UNIQUE :: 0x00020000
-MODE_3D_HEADRELATIVE :: 0x00040000
-MODE_3D_WORLDRELATIVE :: 0x00080000
-MODE_3D_INVERSEROLLOFF :: 0x00100000
-MODE_3D_LINEARROLLOFF :: 0x00200000
-MODE_3D_LINEARSQUAREROLLOFF :: 0x00400000
-MODE_3D_INVERSETAPEREDROLLOFF :: 0x00800000
-MODE_3D_CUSTOMROLLOFF :: 0x04000000
-MODE_3D_IGNOREGEOMETRY :: 0x40000000
-MODE_IGNORETAGS :: 0x02000000
-MODE_LOWMEM :: 0x08000000
-MODE_VIRTUAL_PLAYFROMSTART :: 0x80000000
-
-CHANNELMASK :: distinct u32
-CHANNELMASK_FRONT_LEFT :: 0x00000001
-CHANNELMASK_FRONT_RIGHT :: 0x00000002
-CHANNELMASK_FRONT_CENTER :: 0x00000004
-CHANNELMASK_LOW_FREQUENCY :: 0x00000008
-CHANNELMASK_SURROUND_LEFT :: 0x00000010
-CHANNELMASK_SURROUND_RIGHT :: 0x00000020
-CHANNELMASK_BACK_LEFT :: 0x00000040
-CHANNELMASK_BACK_RIGHT :: 0x00000080
-CHANNELMASK_BACK_CENTER :: 0x00000100
-CHANNELMASK_MONO :: (CHANNELMASK_FRONT_LEFT)
-CHANNELMASK_STEREO :: (CHANNELMASK_FRONT_LEFT | CHANNELMASK_FRONT_RIGHT)
-CHANNELMASK_LRC :: (CHANNELMASK_FRONT_LEFT | CHANNELMASK_FRONT_RIGHT | CHANNELMASK_FRONT_CENTER)
-CHANNELMASK_QUAD ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_SURROUND_LEFT |
- CHANNELMASK_SURROUND_RIGHT)
-CHANNELMASK_SURROUND ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_FRONT_CENTER |
- CHANNELMASK_SURROUND_LEFT |
- CHANNELMASK_SURROUND_RIGHT)
-CHANNELMASK_5POINT1 ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_FRONT_CENTER |
- CHANNELMASK_LOW_FREQUENCY |
- CHANNELMASK_SURROUND_LEFT |
- CHANNELMASK_SURROUND_RIGHT)
-CHANNELMASK_5POINT1_REARS ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_FRONT_CENTER |
- CHANNELMASK_LOW_FREQUENCY |
- CHANNELMASK_BACK_LEFT |
- CHANNELMASK_BACK_RIGHT)
-CHANNELMASK_7POINT0 ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_FRONT_CENTER |
- CHANNELMASK_SURROUND_LEFT |
- CHANNELMASK_SURROUND_RIGHT |
- CHANNELMASK_BACK_LEFT |
- CHANNELMASK_BACK_RIGHT)
-CHANNELMASK_7POINT1 ::
- (CHANNELMASK_FRONT_LEFT |
- CHANNELMASK_FRONT_RIGHT |
- CHANNELMASK_FRONT_CENTER |
- CHANNELMASK_LOW_FREQUENCY |
- CHANNELMASK_SURROUND_LEFT |
- CHANNELMASK_SURROUND_RIGHT |
- CHANNELMASK_BACK_LEFT |
- CHANNELMASK_BACK_RIGHT)
-
-PORT_INDEX :: distinct uint
-PORT_INDEX_NONE :: 0xFFFFFFFFFFFFFFFF
-PORT_INDEX_FLAG_VR_CONTROLLER :: 0x1000000000000000
-
-THREAD_PRIORITY :: distinct i32
-/* Platform specific priority range */
-THREAD_PRIORITY_PLATFORM_MIN :: (-32 * 1024)
-THREAD_PRIORITY_PLATFORM_MAX :: (32 * 1024)
-/* Platform agnostic priorities, maps internally to platform specific value */
-THREAD_PRIORITY_DEFAULT :: (THREAD_PRIORITY_PLATFORM_MIN - 1)
-THREAD_PRIORITY_LOW :: (THREAD_PRIORITY_PLATFORM_MIN - 2)
-THREAD_PRIORITY_MEDIUM :: (THREAD_PRIORITY_PLATFORM_MIN - 3)
-THREAD_PRIORITY_HIGH :: (THREAD_PRIORITY_PLATFORM_MIN - 4)
-THREAD_PRIORITY_VERY_HIGH :: (THREAD_PRIORITY_PLATFORM_MIN - 5)
-THREAD_PRIORITY_EXTREME :: (THREAD_PRIORITY_PLATFORM_MIN - 6)
-THREAD_PRIORITY_CRITICAL :: (THREAD_PRIORITY_PLATFORM_MIN - 7)
-/* Thread defaults */
-THREAD_PRIORITY_MIXER :: THREAD_PRIORITY_EXTREME
-THREAD_PRIORITY_FEEDER :: THREAD_PRIORITY_CRITICAL
-THREAD_PRIORITY_STREAM :: THREAD_PRIORITY_VERY_HIGH
-THREAD_PRIORITY_FILE :: THREAD_PRIORITY_HIGH
-THREAD_PRIORITY_NONBLOCKING :: THREAD_PRIORITY_HIGH
-THREAD_PRIORITY_RECORD :: THREAD_PRIORITY_HIGH
-THREAD_PRIORITY_GEOMETRY :: THREAD_PRIORITY_LOW
-THREAD_PRIORITY_PROFILER :: THREAD_PRIORITY_MEDIUM
-THREAD_PRIORITY_STUDIO_UPDATE :: THREAD_PRIORITY_MEDIUM
-THREAD_PRIORITY_STUDIO_LOAD_BANK :: THREAD_PRIORITY_MEDIUM
-THREAD_PRIORITY_STUDIO_LOAD_SAMPLE :: THREAD_PRIORITY_MEDIUM
-THREAD_PRIORITY_CONVOLUTION1 :: THREAD_PRIORITY_VERY_HIGH
-THREAD_PRIORITY_CONVOLUTION2 :: THREAD_PRIORITY_VERY_HIGH
-
-THREAD_STACK_SIZE :: distinct u32
-THREAD_STACK_SIZE_DEFAULT :: 0
-THREAD_STACK_SIZE_MIXER :: (80 * 1024)
-THREAD_STACK_SIZE_FEEDER :: (16 * 1024)
-THREAD_STACK_SIZE_STREAM :: (96 * 1024)
-THREAD_STACK_SIZE_FILE :: (64 * 1024)
-THREAD_STACK_SIZE_NONBLOCKING :: (112 * 1024)
-THREAD_STACK_SIZE_RECORD :: (16 * 1024)
-THREAD_STACK_SIZE_GEOMETRY :: (48 * 1024)
-THREAD_STACK_SIZE_PROFILER :: (128 * 1024)
-THREAD_STACK_SIZE_STUDIO_UPDATE :: (96 * 1024)
-THREAD_STACK_SIZE_STUDIO_LOAD_BANK :: (96 * 1024)
-THREAD_STACK_SIZE_STUDIO_LOAD_SAMPLE :: (96 * 1024)
-THREAD_STACK_SIZE_CONVOLUTION1 :: (16 * 1024)
-THREAD_STACK_SIZE_CONVOLUTION2 :: (16 * 1024)
-
-THREAD_AFFINITY :: distinct int
-/* Platform agnostic thread groupings */
-THREAD_AFFINITY_GROUP_DEFAULT :: 0x4000000000000000
-THREAD_AFFINITY_GROUP_A :: 0x4000000000000001
-THREAD_AFFINITY_GROUP_B :: 0x4000000000000002
-THREAD_AFFINITY_GROUP_C :: 0x4000000000000003
-/* Thread defaults */
-THREAD_AFFINITY_MIXER :: THREAD_AFFINITY_GROUP_A
-THREAD_AFFINITY_FEEDER :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_STREAM :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_FILE :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_NONBLOCKING :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_RECORD :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_GEOMETRY :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_PROFILER :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_STUDIO_UPDATE :: THREAD_AFFINITY_GROUP_B
-THREAD_AFFINITY_STUDIO_LOAD_BANK :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_STUDIO_LOAD_SAMPLE :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_CONVOLUTION1 :: THREAD_AFFINITY_GROUP_C
-THREAD_AFFINITY_CONVOLUTION2 :: THREAD_AFFINITY_GROUP_C
-/* Core mask, valid up to 1 << 62 */
-THREAD_AFFINITY_CORE_ALL :: 0
-THREAD_AFFINITY_CORE_0 :: (1 << 0)
-THREAD_AFFINITY_CORE_1 :: (1 << 1)
-THREAD_AFFINITY_CORE_2 :: (1 << 2)
-THREAD_AFFINITY_CORE_3 :: (1 << 3)
-THREAD_AFFINITY_CORE_4 :: (1 << 4)
-THREAD_AFFINITY_CORE_5 :: (1 << 5)
-THREAD_AFFINITY_CORE_6 :: (1 << 6)
-THREAD_AFFINITY_CORE_7 :: (1 << 7)
-THREAD_AFFINITY_CORE_8 :: (1 << 8)
-THREAD_AFFINITY_CORE_9 :: (1 << 9)
-THREAD_AFFINITY_CORE_10 :: (1 << 10)
-THREAD_AFFINITY_CORE_11 :: (1 << 11)
-THREAD_AFFINITY_CORE_12 :: (1 << 12)
-THREAD_AFFINITY_CORE_13 :: (1 << 13)
-THREAD_AFFINITY_CORE_14 :: (1 << 14)
-THREAD_AFFINITY_CORE_15 :: (1 << 15)
-
-/* Preset for REVERB_PROPERTIES */
-PRESET_OFF :: REVERB_PROPERTIES{1000, 7, 11, 5000, 100, 100, 100, 250, 0, 20, 96, -80.0}
-PRESET_GENERIC :: REVERB_PROPERTIES{1500, 7, 11, 5000, 83, 100, 100, 250, 0, 14500, 96, -8.0}
-PRESET_PADDEDCELL :: REVERB_PROPERTIES{170, 1, 2, 5000, 10, 100, 100, 250, 0, 160, 84, -7.8}
-PRESET_ROOM :: REVERB_PROPERTIES{400, 2, 3, 5000, 83, 100, 100, 250, 0, 6050, 88, -9.4}
-PRESET_BATHROOM :: REVERB_PROPERTIES{1500, 7, 11, 5000, 54, 100, 60, 250, 0, 2900, 83, 0.5}
-PRESET_LIVINGROOM :: REVERB_PROPERTIES{500, 3, 4, 5000, 10, 100, 100, 250, 0, 160, 58, -19.0}
-PRESET_STONEROOM :: REVERB_PROPERTIES{2300, 12, 17, 5000, 64, 100, 100, 250, 0, 7800, 71, -8.5}
-PRESET_AUDITORIUM :: REVERB_PROPERTIES{4300, 20, 30, 5000, 59, 100, 100, 250, 0, 5850, 64, -11.7}
-PRESET_CONCERTHALL :: REVERB_PROPERTIES{3900, 20, 29, 5000, 70, 100, 100, 250, 0, 5650, 80, -9.8}
-PRESET_CAVE :: REVERB_PROPERTIES{2900, 15, 22, 5000, 100, 100, 100, 250, 0, 20000, 59, -11.3}
-PRESET_ARENA :: REVERB_PROPERTIES{7200, 20, 30, 5000, 33, 100, 100, 250, 0, 4500, 80, -9.6}
-PRESET_HANGAR :: REVERB_PROPERTIES{10000, 20, 30, 5000, 23, 100, 100, 250, 0, 3400, 72, -7.4}
-PRESET_CARPETTEDHALLWAY :: REVERB_PROPERTIES{300, 2, 30, 5000, 10, 100, 100, 250, 0, 500, 56, -24.0}
-PRESET_HALLWAY :: REVERB_PROPERTIES{1500, 7, 11, 5000, 59, 100, 100, 250, 0, 7800, 87, -5.5}
-PRESET_STONECORRIDOR :: REVERB_PROPERTIES{270, 13, 20, 5000, 79, 100, 100, 250, 0, 9000, 86, -6.0}
-PRESET_ALLEY :: REVERB_PROPERTIES{1500, 7, 11, 5000, 86, 100, 100, 250, 0, 8300, 80, -9.8}
-PRESET_FOREST :: REVERB_PROPERTIES{1500, 162, 88, 5000, 54, 79, 100, 250, 0, 760, 94, -12.3}
-PRESET_CITY :: REVERB_PROPERTIES{1500, 7, 11, 5000, 67, 50, 100, 250, 0, 4050, 66, -26.0}
-PRESET_MOUNTAINS :: REVERB_PROPERTIES{1500, 300, 100, 5000, 21, 27, 100, 250, 0, 1220, 82, -24.0}
-PRESET_QUARRY :: REVERB_PROPERTIES{1500, 61, 25, 5000, 83, 100, 100, 250, 0, 3400, 100, -5.0}
-PRESET_PLAIN :: REVERB_PROPERTIES{1500, 179, 100, 5000, 50, 21, 100, 250, 0, 1670, 65, -28.0}
-PRESET_PARKINGLOT :: REVERB_PROPERTIES{1700, 8, 12, 5000, 100, 100, 100, 250, 0, 20000, 56, -19.5}
-PRESET_SEWERPIPE :: REVERB_PROPERTIES{2800, 14, 21, 5000, 14, 80, 60, 250, 0, 3400, 66, 1.2}
-PRESET_UNDERWATER :: REVERB_PROPERTIES{1500, 7, 11, 5000, 10, 100, 100, 250, 0, 500, 92, 7.0}
-
-MAX_CHANNEL_WIDTH :: 32
-MAX_SYSTEMS :: 8
-MAX_LISTENERS :: 8
-REVERB_MAXINSTANCES :: 4
-
-THREAD_TYPE :: enum i32 {
- THREAD_TYPE_MIXER,
- THREAD_TYPE_FEEDER,
- THREAD_TYPE_STREAM,
- THREAD_TYPE_FILE,
- THREAD_TYPE_NONBLOCKING,
- THREAD_TYPE_RECORD,
- THREAD_TYPE_GEOMETRY,
- THREAD_TYPE_PROFILER,
- THREAD_TYPE_STUDIO_UPDATE,
- THREAD_TYPE_STUDIO_LOAD_BANK,
- THREAD_TYPE_STUDIO_LOAD_SAMPLE,
- THREAD_TYPE_CONVOLUTION1,
- THREAD_TYPE_CONVOLUTION2,
- THREAD_TYPE_MAX,
-}
-
-RESULT :: enum i32 {
- OK = 0,
- ERR_BADCOMMAND,
- ERR_CHANNEL_ALLOC,
- ERR_CHANNEL_STOLEN,
- ERR_DMA,
- ERR_DSP_CONNECTION,
- ERR_DSP_DONTPROCESS,
- ERR_DSP_FORMAT,
- ERR_DSP_INUSE,
- ERR_DSP_NOTFOUND,
- ERR_DSP_RESERVED,
- ERR_DSP_SILENCE,
- ERR_DSP_TYPE,
- ERR_FILE_BAD,
- ERR_FILE_COULDNOTSEEK,
- ERR_FILE_DISKEJECTED,
- ERR_FILE_EOF,
- ERR_FILE_ENDOFDATA,
- ERR_FILE_NOTFOUND,
- ERR_FORMAT,
- ERR_HEADER_MISMATCH,
- ERR_HTTP,
- ERR_HTTP_ACCESS,
- ERR_HTTP_PROXY_AUTH,
- ERR_HTTP_SERVER_ERROR,
- ERR_HTTP_TIMEOUT,
- ERR_INITIALIZATION,
- ERR_INITIALIZED,
- ERR_INTERNAL,
- ERR_INVALID_FLOAT,
- ERR_INVALID_HANDLE,
- ERR_INVALID_PARAM,
- ERR_INVALID_POSITION,
- ERR_INVALID_SPEAKER,
- ERR_INVALID_SYNCPOINT,
- ERR_INVALID_THREAD,
- ERR_INVALID_VECTOR,
- ERR_MAXAUDIBLE,
- ERR_MEMORY,
- ERR_MEMORY_CANTPOINT,
- ERR_NEEDS3D,
- ERR_NEEDSHARDWARE,
- ERR_NET_CONNECT,
- ERR_NET_SOCKET_ERROR,
- ERR_NET_URL,
- ERR_NET_WOULD_BLOCK,
- ERR_NOTREADY,
- ERR_OUTPUT_ALLOCATED,
- ERR_OUTPUT_CREATEBUFFER,
- ERR_OUTPUT_DRIVERCALL,
- ERR_OUTPUT_FORMAT,
- ERR_OUTPUT_INIT,
- ERR_OUTPUT_NODRIVERS,
- ERR_PLUGIN,
- ERR_PLUGIN_MISSING,
- ERR_PLUGIN_RESOURCE,
- ERR_PLUGIN_VERSION,
- ERR_RECORD,
- ERR_REVERB_CHANNELGROUP,
- ERR_REVERB_INSTANCE,
- ERR_SUBSOUNDS,
- ERR_SUBSOUND_ALLOCATED,
- ERR_SUBSOUND_CANTMOVE,
- ERR_TAGNOTFOUND,
- ERR_TOOMANYCHANNELS,
- ERR_TRUNCATED,
- ERR_UNIMPLEMENTED,
- ERR_UNINITIALIZED,
- ERR_UNSUPPORTED,
- ERR_VERSION,
- ERR_EVENT_ALREADY_LOADED,
- ERR_EVENT_LIVEUPDATE_BUSY,
- ERR_EVENT_LIVEUPDATE_MISMATCH,
- ERR_EVENT_LIVEUPDATE_TIMEOUT,
- ERR_EVENT_NOTFOUND,
- ERR_STUDIO_UNINITIALIZED,
- ERR_STUDIO_NOT_LOADED,
- ERR_INVALID_STRING,
- ERR_ALREADY_LOCKED,
- ERR_NOT_LOCKED,
- ERR_RECORD_DISCONNECTED,
- ERR_TOOMANYSAMPLES,
-}
-
-CHANNELCONTROL_TYPE :: enum i32 {
- CHANNELCONTROL_CHANNEL,
- CHANNELCONTROL_CHANNELGROUP,
- CHANNELCONTROL_MAX,
-}
-
-OUTPUTTYPE :: enum i32 {
- OUTPUTTYPE_AUTODETECT,
- OUTPUTTYPE_UNKNOWN,
- OUTPUTTYPE_NOSOUND,
- OUTPUTTYPE_WAVWRITER,
- OUTPUTTYPE_NOSOUND_NRT,
- OUTPUTTYPE_WAVWRITER_NRT,
- OUTPUTTYPE_WASAPI,
- OUTPUTTYPE_ASIO,
- OUTPUTTYPE_PULSEAUDIO,
- OUTPUTTYPE_ALSA,
- OUTPUTTYPE_COREAUDIO,
- OUTPUTTYPE_AUDIOTRACK,
- OUTPUTTYPE_OPENSL,
- OUTPUTTYPE_AUDIOOUT,
- OUTPUTTYPE_AUDIO3D,
- OUTPUTTYPE_WEBAUDIO,
- OUTPUTTYPE_NNAUDIO,
- OUTPUTTYPE_WINSONIC,
- OUTPUTTYPE_AAUDIO,
- OUTPUTTYPE_AUDIOWORKLET,
- OUTPUTTYPE_PHASE,
- OUTPUTTYPE_MAX,
-}
-
-DEBUG_MODE :: enum i32 {
- DEBUG_MODE_TTY,
- DEBUG_MODE_FILE,
- DEBUG_MODE_CALLBACK,
-}
-
-SPEAKERMODE :: enum i32 {
- SPEAKERMODE_DEFAULT,
- SPEAKERMODE_RAW,
- SPEAKERMODE_MONO,
- SPEAKERMODE_STEREO,
- SPEAKERMODE_QUAD,
- SPEAKERMODE_SURROUND,
- SPEAKERMODE_5POINT1,
- SPEAKERMODE_7POINT1,
- SPEAKERMODE_7POINT1POINT4,
- SPEAKERMODE_MAX,
-}
-
-SPEAKER :: enum i32 {
- SPEAKER_NONE = -1,
- SPEAKER_FRONT_LEFT = 0,
- SPEAKER_FRONT_RIGHT,
- SPEAKER_FRONT_CENTER,
- SPEAKER_LOW_FREQUENCY,
- SPEAKER_SURROUND_LEFT,
- SPEAKER_SURROUND_RIGHT,
- SPEAKER_BACK_LEFT,
- SPEAKER_BACK_RIGHT,
- SPEAKER_TOP_FRONT_LEFT,
- SPEAKER_TOP_FRONT_RIGHT,
- SPEAKER_TOP_BACK_LEFT,
- SPEAKER_TOP_BACK_RIGHT,
- SPEAKER_MAX,
-}
-
-CHANNELORDER :: enum i32 {
- CHANNELORDER_DEFAULT,
- CHANNELORDER_WAVEFORMAT,
- CHANNELORDER_PROTOOLS,
- CHANNELORDER_ALLMONO,
- CHANNELORDER_ALLSTEREO,
- CHANNELORDER_ALSA,
- CHANNELORDER_MAX,
-}
-
-PLUGINTYPE :: enum i32 {
- PLUGINTYPE_OUTPUT,
- PLUGINTYPE_CODEC,
- PLUGINTYPE_DSP,
- PLUGINTYPE_MAX,
-}
-
-SOUND_TYPE :: enum i32 {
- SOUND_TYPE_UNKNOWN,
- SOUND_TYPE_AIFF,
- SOUND_TYPE_ASF,
- SOUND_TYPE_DLS,
- SOUND_TYPE_FLAC,
- SOUND_TYPE_FSB,
- SOUND_TYPE_IT,
- SOUND_TYPE_MIDI,
- SOUND_TYPE_MOD,
- SOUND_TYPE_MPEG,
- SOUND_TYPE_OGGVORBIS,
- SOUND_TYPE_PLAYLIST,
- SOUND_TYPE_RAW,
- SOUND_TYPE_S3M,
- SOUND_TYPE_USER,
- SOUND_TYPE_WAV,
- SOUND_TYPE_XM,
- SOUND_TYPE_XMA,
- SOUND_TYPE_AUDIOQUEUE,
- SOUND_TYPE_AT9,
- SOUND_TYPE_VORBIS,
- SOUND_TYPE_MEDIA_FOUNDATION,
- SOUND_TYPE_MEDIACODEC,
- SOUND_TYPE_FADPCM,
- SOUND_TYPE_OPUS,
- SOUND_TYPE_MAX,
-}
-
-SOUND_FORMAT :: enum i32 {
- SOUND_FORMAT_NONE,
- SOUND_FORMAT_PCM8,
- SOUND_FORMAT_PCM16,
- SOUND_FORMAT_PCM24,
- SOUND_FORMAT_PCM32,
- SOUND_FORMAT_PCMFLOAT,
- SOUND_FORMAT_BITSTREAM,
- SOUND_FORMAT_MAX,
-}
-
-OPENSTATE :: enum i32 {
- OPENSTATE_READY,
- OPENSTATE_LOADING,
- OPENSTATE_ERROR,
- OPENSTATE_CONNECTING,
- OPENSTATE_BUFFERING,
- OPENSTATE_SEEKING,
- OPENSTATE_PLAYING,
- OPENSTATE_SETPOSITION,
- OPENSTATE_MAX,
-}
-
-SOUNDGROUP_BEHAVIOR :: enum i32 {
- SOUNDGROUP_BEHAVIOR_FAIL,
- SOUNDGROUP_BEHAVIOR_MUTE,
- SOUNDGROUP_BEHAVIOR_STEALLOWEST,
- SOUNDGROUP_BEHAVIOR_MAX,
-}
-
-CHANNELCONTROL_CALLBACK_TYPE :: enum i32 {
- CHANNELCONTROL_CALLBACK_END,
- CHANNELCONTROL_CALLBACK_VIRTUALVOICE,
- CHANNELCONTROL_CALLBACK_SYNCPOINT,
- CHANNELCONTROL_CALLBACK_OCCLUSION,
- CHANNELCONTROL_CALLBACK_MAX,
-}
-
-CHANNELCONTROL_DSP_INDEX :: enum i32 {
- CHANNELCONTROL_DSP_HEAD = -1,
- CHANNELCONTROL_DSP_FADER = -2,
- CHANNELCONTROL_DSP_TAIL = -3,
-}
-
-ERRORCALLBACK_INSTANCETYPE :: enum i32 {
- ERRORCALLBACK_INSTANCETYPE_NONE,
- ERRORCALLBACK_INSTANCETYPE_SYSTEM,
- ERRORCALLBACK_INSTANCETYPE_CHANNEL,
- ERRORCALLBACK_INSTANCETYPE_CHANNELGROUP,
- ERRORCALLBACK_INSTANCETYPE_CHANNELCONTROL,
- ERRORCALLBACK_INSTANCETYPE_SOUND,
- ERRORCALLBACK_INSTANCETYPE_SOUNDGROUP,
- ERRORCALLBACK_INSTANCETYPE_DSP,
- ERRORCALLBACK_INSTANCETYPE_DSPCONNECTION,
- ERRORCALLBACK_INSTANCETYPE_GEOMETRY,
- ERRORCALLBACK_INSTANCETYPE_REVERB3D,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_SYSTEM,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_EVENTDESCRIPTION,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_EVENTINSTANCE,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_PARAMETERINSTANCE,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_BUS,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_VCA,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_BANK,
- ERRORCALLBACK_INSTANCETYPE_STUDIO_COMMANDREPLAY,
-}
-
-DSP_RESAMPLER :: enum i32 {
- DSP_RESAMPLER_DEFAULT,
- DSP_RESAMPLER_NOINTERP,
- DSP_RESAMPLER_LINEAR,
- DSP_RESAMPLER_CUBIC,
- DSP_RESAMPLER_SPLINE,
- DSP_RESAMPLER_MAX,
-}
-
-DSP_CALLBACK_TYPE :: enum i32 {
- DSP_CALLBACK_DATAPARAMETERRELEASE,
- DSP_CALLBACK_MAX,
-}
-
-DSPCONNECTION_TYPE :: enum i32 {
- DSPCONNECTION_TYPE_STANDARD,
- DSPCONNECTION_TYPE_SIDECHAIN,
- DSPCONNECTION_TYPE_SEND,
- DSPCONNECTION_TYPE_SEND_SIDECHAIN,
- DSPCONNECTION_TYPE_MAX,
-}
-
-TAGTYPE :: enum i32 {
- TAGTYPE_UNKNOWN,
- TAGTYPE_ID3V1,
- TAGTYPE_ID3V2,
- TAGTYPE_VORBISCOMMENT,
- TAGTYPE_SHOUTCAST,
- TAGTYPE_ICECAST,
- TAGTYPE_ASF,
- TAGTYPE_MIDI,
- TAGTYPE_PLAYLIST,
- TAGTYPE_FMOD,
- TAGTYPE_USER,
- TAGTYPE_MAX,
-}
-
-TAGDATATYPE :: enum i32 {
- TAGDATATYPE_BINARY,
- TAGDATATYPE_INT,
- TAGDATATYPE_FLOAT,
- TAGDATATYPE_STRING,
- TAGDATATYPE_STRING_UTF16,
- TAGDATATYPE_STRING_UTF16BE,
- TAGDATATYPE_STRING_UTF8,
- TAGDATATYPE_MAX,
-}
-
-PORT_TYPE :: enum i32 {
- PORT_TYPE_MUSIC,
- PORT_TYPE_COPYRIGHT_MUSIC,
- PORT_TYPE_VOICE,
- PORT_TYPE_CONTROLLER,
- PORT_TYPE_PERSONAL,
- PORT_TYPE_VIBRATION,
- PORT_TYPE_AUX,
- PORT_TYPE_MAX,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD callbacks
-//
-
-DEBUG_CALLBACK :: #type proc (
- flags: DEBUG_FLAGS,
- file: cstring,
- line: i32,
- func: cstring,
- message: cstring,
-) -> RESULT
-
-SYSTEM_CALLBACK :: #type proc (
- system: ^SYSTEM,
- type: SYSTEM_CALLBACK_TYPE,
- commanddata1: rawptr,
- commanddata2: rawptr,
- userdata: rawptr,
-) -> RESULT
-
-CHANNELCONTROL_CALLBACK :: proc (
- channelcontrol: ^CHANNELCONTROL,
- controltype: CHANNELCONTROL_TYPE,
- callbacktype: CHANNELCONTROL_CALLBACK_TYPE,
- commanddata1: rawptr,
- commanddata2: rawptr,
-) -> RESULT
-
-DSP_CALLBACK :: #type proc (dsp: ^DSP, type: DSP_CALLBACK_TYPE, data: rawptr) -> RESULT
-SOUND_NONBLOCK_CALLBACK :: #type proc (sound: ^SOUND, result: RESULT) -> RESULT
-SOUND_PCMREAD_CALLBACK :: #type proc (sound: ^SOUND, data: rawptr, datalen: u32) -> RESULT
-
-SOUND_PCMSETPOS_CALLBACK :: #type proc (
- sound: ^SOUND,
- subsound: i32,
- position: u32,
- postype: TIMEUNIT,
-) -> RESULT
-
-FILE_OPEN_CALLBACK :: #type proc (
- name: cstring,
- filesize: ^u32,
- handle: ^rawptr,
- userdata: rawptr,
-) -> RESULT
-
-FILE_CLOSE_CALLBACK :: #type proc (handle: rawptr, userdata: rawptr) -> RESULT
-
-FILE_READ_CALLBACK :: #type proc (
- handle: rawptr,
- buffer: rawptr,
- sizebytes: u32,
- bytesread: ^u32,
- userdata: rawptr,
-) -> RESULT
-
-FILE_SEEK_CALLBACK :: #type proc (handle: rawptr, pos: u32, userdata: rawptr) -> RESULT
-FILE_ASYNCREAD_CALLBACK :: #type proc (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
-FILE_ASYNCCANCEL_CALLBACK :: #type proc (info: ^ASYNCREADINFO, userdata: rawptr) -> RESULT
-
-FILE_ASYNCDONE_FUNC :: #type proc (info: ^ASYNCREADINFO, result: RESULT)
-MEMORY_ALLOC_CALLBACK :: #type proc (size: u32, _type: MEMORY_TYPE, sourcestr: cstring)
-
-MEMORY_REALLOC_CALLBACK :: #type proc (
- ptr: rawptr,
- size: u32,
- _type: MEMORY_TYPE,
- sourcestr: cstring,
-)
-
-MEMORY_FREE_CALLBACK :: #type proc (ptr: rawptr, _type: MEMORY_TYPE, sourcestr: cstring)
-_3D_ROLLOFF_CALLBACK :: #type proc (channelcontrol: ^CHANNELCONTROL, distance: f32) -> f32
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD structs
-//
-
-ASYNCREADINFO :: struct {
- handle: rawptr,
- offset: u32,
- sizebytes: u32,
- priority: i32,
- userdata: rawptr,
- buffer: rawptr,
- bytesread: u32,
- done: FILE_ASYNCDONE_FUNC,
-}
-
-VECTOR :: [3]f32
-
-_3D_ATTRIBUTES :: struct {
- position: VECTOR,
- velocity: VECTOR,
- forward: VECTOR,
- up: VECTOR,
-}
-
-GUID :: struct {
- Data1: u32,
- Data2: u16,
- Data3: u16,
- Data4: [8]u8,
-}
-
-PLUGINLIST :: struct {
- type: PLUGINTYPE,
- description: rawptr,
-}
-
-ADVANCEDSETTINGS :: struct {
- cbSize: i32,
- maxMPEGCodecs: i32,
- maxADPCMCodecs: i32,
- maxXMACodecs: i32,
- maxVorbisCodecs: i32,
- maxAT9Codecs: i32,
- maxFADPCMCodecs: i32,
- maxPCMCodecs: i32,
- ASIONumChannels: i32,
- ASIOChannelList: ^rawptr,
- ASIOSpeakerList: ^SPEAKER,
- vol0virtualvol: f32,
- defaultDecodeBufferSize: u32,
- profilePort: u16,
- geometryMaxFadeTime: u32,
- distanceFilterCenterFreq: f32,
- reverb3Dinstance: i32,
- DSPBufferPoolSize: i32,
- resamplerMethod: DSP_RESAMPLER,
- randomSeed: u32,
- maxConvolutionThreads: i32,
- maxOpusCodecs: i32,
-}
-
-TAG :: struct {
- type: TAGTYPE,
- datatype: TAGDATATYPE,
- name: [^]byte,
- data: rawptr,
- datalen: u32,
- updated: b32,
-}
-
-CREATESOUNDEXINFO :: struct {
- cbsize: i32,
- length: u32,
- fileoffset: u32,
- numchannels: i32,
- defaultfrequency: i32,
- format: SOUND_FORMAT,
- decodebuffersize: u32,
- initialsubsound: i32,
- numsubsounds: i32,
- inclusionlist: ^i32,
- inclusionlistnum: i32,
- pcmreadcallback: SOUND_PCMREAD_CALLBACK,
- pcmsetposcallback: SOUND_PCMSETPOS_CALLBACK,
- nonblockcallback: SOUND_NONBLOCK_CALLBACK,
- dlsname: cstring,
- encryptionkey: cstring,
- maxpolyphony: i32,
- userdata: rawptr,
- suggestedsoundtype: SOUND_TYPE,
- fileuseropen: FILE_OPEN_CALLBACK,
- fileuserclose: FILE_CLOSE_CALLBACK,
- fileuserread: FILE_READ_CALLBACK,
- fileuserseek: FILE_SEEK_CALLBACK,
- fileuserasyncread: FILE_ASYNCREAD_CALLBACK,
- fileuserasynccancel: FILE_ASYNCCANCEL_CALLBACK,
- fileuserdata: rawptr,
- filebuffersize: i32,
- channelorder: CHANNELORDER,
- initialsoundgroup: ^SOUNDGROUP,
- initialseekposition: u32,
- initialseekpostype: TIMEUNIT,
- ignoresetfilesystem: i32,
- audioqueuepolicy: u32,
- minmidigranularity: u32,
- nonblockthreadid: i32,
- fsbguid: ^GUID,
-}
-
-REVERB_PROPERTIES :: struct {
- DecayTime: f32,
- EarlyDelay: f32,
- LateDelay: f32,
- HFReference: f32,
- HFDecayRatio: f32,
- Diffusion: f32,
- Density: f32,
- LowShelfFrequency: f32,
- LowShelfGain: f32,
- HighCut: f32,
- EarlyLateMix: f32,
- WetLevel: f32,
-}
-
-ERRORCALLBACK_INFO :: struct {
- result: RESULT,
- instancetype: ERRORCALLBACK_INSTANCETYPE,
- instance: rawptr,
- functionname: cstring,
- functionparams: cstring,
-}
-
-CPU_USAGE :: struct {
- dsp: f32,
- stream: f32,
- geometry: f32,
- update: f32,
- convolution1: f32,
- convolution2: f32,
-}
-
-DSP_DATA_PARAMETER_INFO :: struct {
- data: rawptr,
- length: u32,
- index: i32,
-}
diff --git a/sauce/fmod/core/fmod_darwin.odin b/sauce/fmod/core/fmod_darwin.odin
deleted file mode 100644
index 27936b6..0000000
--- a/sauce/fmod/core/fmod_darwin.odin
+++ /dev/null
@@ -1,755 +0,0 @@
-package fmod_core
-
-// ========================================================================================
-// FMOD Core API - C header file.
-// Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023.
-//
-// Use this header in conjunction with fmod_common.h (which contains all the constants /
-// callbacks) to develop using the C interface
-//
-// For more detail visit:
-// https://fmod.com/docs/2.02/api/core-api.html
-// ========================================================================================
-
-LOGGING_ENABLED :: #config(FMOD_LOGGING_ENABLED, ODIN_DEBUG)
-
-when LOGGING_ENABLED {
- foreign import lib "lib/darwin/libfmodL.dylib"
-} else {
- foreign import lib "lib/darwin/libfmod.dylib"
-}
-
-@(default_calling_convention = "c", link_prefix = "FMOD_")
-foreign lib {
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // FMOD global system functions (optional).
- //
-
- Memory_Initialize :: proc(poolmem: rawptr, poollen: i32, useralloc: MEMORY_ALLOC_CALLBACK, userrealloc: MEMORY_REALLOC_CALLBACK, userfree: MEMORY_FREE_CALLBACK, memtypeflags: MEMORY_TYPE) -> RESULT ---
- Memory_GetStats :: proc(currentalloced: ^i32, maxalloced: ^i32, blocking: b32) -> RESULT ---
- Debug_Initialize :: proc(flags: DEBUG_FLAGS, mode: DEBUG_MODE, callback: DEBUG_CALLBACK, filename: cstring) -> RESULT ---
- File_SetDiskBusy :: proc(busy: i32) -> RESULT ---
- File_GetDiskBusy :: proc(busy: ^i32) -> RESULT ---
- Thread_SetAttributes :: proc(_type: THREAD_TYPE, affinity: THREAD_AFFINITY, priority: THREAD_PRIORITY, stacksize: THREAD_STACK_SIZE) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // FMOD System factory functions. Use this to create an FMOD System Instance. below you will see System_Init/Close to get started.
- //
- System_Create :: proc(system: ^^SYSTEM, headerversion: u32) -> RESULT ---
- System_Release :: proc(system: ^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'System' API
- //
-
- // Setup functions.
- System_SetOutput :: proc(system: ^SYSTEM, output: OUTPUTTYPE) -> RESULT ---
- System_GetOutput :: proc(system: ^SYSTEM, output: ^OUTPUTTYPE) -> RESULT ---
- System_GetNumDrivers :: proc(system: ^SYSTEM, numdrivers: ^i32) -> RESULT ---
- System_GetDriverInfo :: proc(system: ^SYSTEM, id: i32, name: ^u8, namelen: i32, guid: ^GUID, systemrate: ^i32, speakermode: ^SPEAKERMODE, speakermodechannels: ^i32) -> RESULT ---
- System_SetDriver :: proc(system: ^SYSTEM, driver: i32) -> RESULT ---
- System_GetDriver :: proc(system: ^SYSTEM, driver: ^i32) -> RESULT ---
- System_SetSoftwareChannels :: proc(system: ^SYSTEM, numsoftwarechannels: i32) -> RESULT ---
- System_GetSoftwareChannels :: proc(system: ^SYSTEM, numsoftwarechannels: ^i32) -> RESULT ---
- System_SetSoftwareFormat :: proc(system: ^SYSTEM, samplerate: i32, speakermode: SPEAKERMODE, numrawspeakers: i32) -> RESULT ---
- System_GetSoftwareFormat :: proc(system: ^SYSTEM, samplerate: ^i32, speakermode: ^SPEAKERMODE, numrawspeakers: ^i32) -> RESULT ---
- System_SetDSPBufferSize :: proc(system: ^SYSTEM, bufferlength: u32, numbuffers: i32) -> RESULT ---
- System_GetDSPBufferSize :: proc(system: ^SYSTEM, bufferlength: ^u32, numbuffers: ^i32) -> RESULT ---
- System_SetFileSystem :: proc(system: ^SYSTEM, useropen: FILE_OPEN_CALLBACK, userclose: FILE_CLOSE_CALLBACK, userread: FILE_READ_CALLBACK, userseek: FILE_SEEK_CALLBACK, userasyncread: FILE_ASYNCREAD_CALLBACK, userasynccancel: FILE_ASYNCCANCEL_CALLBACK, blockalign: i32) -> RESULT ---
- System_AttachFileSystem :: proc(system: ^SYSTEM, useropen: FILE_OPEN_CALLBACK, userclose: FILE_CLOSE_CALLBACK, userread: FILE_READ_CALLBACK, userseek: FILE_SEEK_CALLBACK) -> RESULT ---
- System_SetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> RESULT ---
- System_GetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> RESULT ---
- System_SetCallback :: proc(system: ^SYSTEM, callback: SYSTEM_CALLBACK, callbackmask: SYSTEM_CALLBACK_TYPE) -> RESULT ---
-
- // Plug-in support.
- System_SetPluginPath :: proc(system: ^SYSTEM, path: cstring) -> RESULT ---
- System_LoadPlugin :: proc(system: ^SYSTEM, filename: cstring, handle: ^u32, priority: u32) -> RESULT ---
- System_UnloadPlugin :: proc(system: ^SYSTEM, handle: u32) -> RESULT ---
- System_GetNumNestedPlugins :: proc(system: ^SYSTEM, handle: u32, count: ^i32) -> RESULT ---
- System_GetNestedPlugin :: proc(system: ^SYSTEM, handle: u32, index: i32, nestedhandle: ^u32) -> RESULT ---
- System_GetNumPlugins :: proc(system: ^SYSTEM, plugintype: PLUGINTYPE, numplugins: ^i32) -> RESULT ---
- System_GetPluginHandle :: proc(system: ^SYSTEM, plugintype: PLUGINTYPE, index: i32, handle: ^u32) -> RESULT ---
- System_GetPluginInfo :: proc(system: ^SYSTEM, handle: u32, plugintype: ^PLUGINTYPE, name: ^u8, namelen: i32, version: ^u32) -> RESULT ---
- System_SetOutputByPlugin :: proc(system: ^SYSTEM, handle: u32) -> RESULT ---
- System_GetOutputByPlugin :: proc(system: ^SYSTEM, handle: ^u32) -> RESULT ---
- System_CreateDSPByPlugin :: proc(system: ^SYSTEM, handle: u32, dsp: ^^DSP) -> RESULT ---
- // System_GetDSPInfoByPlugin :: proc(system: ^SYSTEM, handle: u32, description: ^^DSP_DESCRIPTION) -> RESULT ---
- // System_RegisterCodec :: proc(system: ^SYSTEM, description: ^CODEC_DESCRIPTION, handle: ^u32, priority: u32) -> RESULT ---
- // System_RegisterDSP :: proc(system: ^SYSTEM, #by_ptr description: DSP_DESCRIPTION, handle: ^u32) -> RESULT ---
- // System_RegisterOutput :: proc(system: ^SYSTEM, #by_ptr description: OUTPUT_DESCRIPTION, handle: ^u32) -> RESULT ---
-
- // Init/Close.
- System_Init :: proc(system: ^SYSTEM, maxchannels: i32, flags: INITFLAGS, extradriverdata: rawptr) -> RESULT ---
- System_Close :: proc(system: ^SYSTEM) -> RESULT ---
-
- // General post-init system functions.
- System_Update :: proc(system: ^SYSTEM) -> RESULT ---
- System_SetSpeakerPosition :: proc(system: ^SYSTEM, speaker: SPEAKER, x: f32, y: f32, active: b32) -> RESULT ---
- System_GetSpeakerPosition :: proc(system: ^SYSTEM, speaker: SPEAKER, x: ^f32, y: ^f32, active: ^b32) -> RESULT ---
- System_SetStreamBufferSize :: proc(system: ^SYSTEM, filebuffersize: u32, filebuffersizetype: TIMEUNIT) -> RESULT ---
- System_GetStreamBufferSize :: proc(system: ^SYSTEM, filebuffersize: ^u32, filebuffersizetype: ^TIMEUNIT) -> RESULT ---
- System_Set3DSettings :: proc(system: ^SYSTEM, dopplerscale: f32, distancefactor: f32, rolloffscale: f32) -> RESULT ---
- System_Get3DSettings :: proc(system: ^SYSTEM, dopplerscale: ^f32, distancefactor: ^f32, rolloffscale: ^f32) -> RESULT ---
- System_Set3DNumListeners :: proc(system: ^SYSTEM, numlisteners: i32) -> RESULT ---
- System_Get3DNumListeners :: proc(system: ^SYSTEM, numlisteners: ^i32) -> RESULT ---
- System_Set3DListenerAttributes :: proc(system: ^SYSTEM, listener: i32, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR, #by_ptr forward: VECTOR, #by_ptr up: VECTOR) -> RESULT ---
- System_Get3DListenerAttributes :: proc(system: ^SYSTEM, listener: i32, pos: ^VECTOR, vel: ^VECTOR, forward: ^VECTOR, up: ^VECTOR) -> RESULT ---
- System_Set3DRolloffCallback :: proc(system: ^SYSTEM, callback: _3D_ROLLOFF_CALLBACK) -> RESULT ---
- System_MixerSuspend :: proc(system: ^SYSTEM) -> RESULT ---
- System_MixerResume :: proc(system: ^SYSTEM) -> RESULT ---
- System_GetDefaultMixMatrix :: proc(system: ^SYSTEM, sourcespeakermode: SPEAKERMODE, targetspeakermode: SPEAKERMODE, _matrix: ^f32, matrixhop: i32) -> RESULT ---
- System_GetSpeakerModeChannels :: proc(system: ^SYSTEM, mode: SPEAKERMODE, channels: ^i32) -> RESULT ---
-
- // System information functions.
- System_GetVersion :: proc(system: ^SYSTEM, version: ^u32) -> RESULT ---
- System_GetOutputHandle :: proc(system: ^SYSTEM, handle: ^rawptr) -> RESULT ---
- System_GetChannelsPlaying :: proc(system: ^SYSTEM, channels: ^i32, realchannels: ^i32) -> RESULT ---
- System_GetCPUUsage :: proc(system: ^SYSTEM, usage: ^CPU_USAGE) -> RESULT ---
- System_GetFileUsage :: proc(system: ^SYSTEM, sampleBytesRead: ^int, streamBytesRead: ^int, otherBytesRead: ^int) -> RESULT ---
-
- // Sound/DSP/Channel/FX creation and retrieval.
- System_CreateSound :: proc(system: ^SYSTEM, name_or_data: cstring, mode: MODE, exinfo: ^CREATESOUNDEXINFO, sound: ^^SOUND) -> RESULT ---
- System_CreateStream :: proc(system: ^SYSTEM, name_or_data: cstring, mode: MODE, exinfo: ^CREATESOUNDEXINFO, sound: ^^SOUND) -> RESULT ---
- // System_CreateDSP :: proc(system: ^SYSTEM, #by_ptr description: DSP_DESCRIPTION, dsp: ^^DSP) -> RESULT ---
- System_CreateDSPByType :: proc(system: ^SYSTEM, _type: DSP_TYPE, dsp: ^^DSP) -> RESULT ---
- System_CreateChannelGroup :: proc(system: ^SYSTEM, name: cstring, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- System_CreateSoundGroup :: proc(system: ^SYSTEM, name: cstring, soundgroup: ^^SOUNDGROUP) -> RESULT ---
- System_CreateReverb3D :: proc(system: ^SYSTEM, reverb: ^^REVERB3D) -> RESULT ---
- System_PlaySound :: proc(system: ^SYSTEM, sound: ^SOUND, channelgroup: ^CHANNELGROUP, paused: b32, channel: ^^CHANNEL) -> RESULT ---
- System_PlayDSP :: proc(system: ^SYSTEM, dsp: ^DSP, channelgroup: ^CHANNELGROUP, paused: b32, channel: ^^CHANNEL) -> RESULT ---
- System_GetChannel :: proc(system: ^SYSTEM, channelid: i32, channel: ^^CHANNEL) -> RESULT ---
- // System_GetDSPInfoByType :: proc(system: ^SYSTEM, _type: DSP_TYPE, description: ^^DSP_DESCRIPTION) -> RESULT ---
- System_GetMasterChannelGroup :: proc(system: ^SYSTEM, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- System_GetMasterSoundGroup :: proc(system: ^SYSTEM, soundgroup: ^^SOUNDGROUP) -> RESULT ---
-
- // Routing to ports.
- System_AttachChannelGroupToPort :: proc(system: ^SYSTEM, portType: PORT_TYPE, portIndex: PORT_INDEX, channelgroup: ^CHANNELGROUP, passThru: b32) -> RESULT ---
- System_DetachChannelGroupFromPort :: proc(system: ^SYSTEM, channelgroup: ^CHANNELGROUP) -> RESULT ---
-
- // Reverb API.
- System_SetReverbProperties :: proc(system: ^SYSTEM, instance: i32, #by_ptr prop: REVERB_PROPERTIES) -> RESULT ---
- System_GetReverbProperties :: proc(system: ^SYSTEM, instance: i32, prop: ^REVERB_PROPERTIES) -> RESULT ---
-
- // System level DSP functionality.
- System_LockDSP :: proc(system: ^SYSTEM) -> RESULT ---
- System_UnlockDSP :: proc(system: ^SYSTEM) -> RESULT ---
-
- // Recording API.
- System_GetRecordNumDrivers :: proc(system: ^SYSTEM, numdrivers: ^i32, numconnected: ^i32) -> RESULT ---
- System_GetRecordDriverInfo :: proc(system: ^SYSTEM, id: i32, name: ^u8, namelen: i32, guid: ^GUID, systemrate: ^i32, speakermode: ^SPEAKERMODE, speakermodechannels: ^i32, state: ^DRIVER_STATE) -> RESULT ---
- System_GetRecordPosition :: proc(system: ^SYSTEM, id: i32, position: ^u32) -> RESULT ---
- System_RecordStart :: proc(system: ^SYSTEM, id: i32, sound: ^SOUND, loop: b32) -> RESULT ---
- System_RecordStop :: proc(system: ^SYSTEM, id: i32) -> RESULT ---
- System_IsRecording :: proc(system: ^SYSTEM, id: i32, recording: ^b32) -> RESULT ---
-
- // Geometry API.
- System_CreateGeometry :: proc(system: ^SYSTEM, maxpolygons: i32, maxvertices: i32, geometry: ^^GEOMETRY) -> RESULT ---
- System_SetGeometrySettings :: proc(system: ^SYSTEM, maxworldsize: f32) -> RESULT ---
- System_GetGeometrySettings :: proc(system: ^SYSTEM, maxworldsize: ^f32) -> RESULT ---
- System_LoadGeometry :: proc(system: ^SYSTEM, data: rawptr, datasize: i32, geometry: ^^GEOMETRY) -> RESULT ---
- System_GetGeometryOcclusion :: proc(system: ^SYSTEM, #by_ptr listener: VECTOR, #by_ptr source: VECTOR, direct: ^f32, reverb: ^f32) -> RESULT ---
-
- // Network functions.
- System_SetNetworkProxy :: proc(system: ^SYSTEM, proxy: cstring) -> RESULT ---
- System_GetNetworkProxy :: proc(system: ^SYSTEM, proxy: ^u8, proxylen: i32) -> RESULT ---
- System_SetNetworkTimeout :: proc(system: ^SYSTEM, timeout: i32) -> RESULT ---
- System_GetNetworkTimeout :: proc(system: ^SYSTEM, timeout: ^i32) -> RESULT ---
-
- // Userdata set/get.
- System_SetUserData :: proc(system: ^SYSTEM, userdata: rawptr) -> RESULT ---
- System_GetUserData :: proc(system: ^SYSTEM, userdata: ^rawptr) -> RESULT ---
-
- // Sound API
- Sound_Release :: proc(sound: ^SOUND) -> RESULT ---
- Sound_GetSystemObject :: proc(sound: ^SOUND, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Standard sound manipulation functions.
- //
-
- Sound_Lock :: proc(sound: ^SOUND, offset: u32, length: u32, ptr1: ^rawptr, ptr2: ^rawptr, len1: ^u32, len2: ^u32) -> RESULT ---
- Sound_Unlock :: proc(sound: ^SOUND, ptr1: rawptr, ptr2: rawptr, len1: u32, len2: u32) -> RESULT ---
- Sound_SetDefaults :: proc(sound: ^SOUND, frequency: f32, priority: i32) -> RESULT ---
- Sound_GetDefaults :: proc(sound: ^SOUND, frequency: ^f32, priority: ^i32) -> RESULT ---
- Sound_Set3DMinMaxDistance :: proc(sound: ^SOUND, min: f32, max: f32) -> RESULT ---
- Sound_Get3DMinMaxDistance :: proc(sound: ^SOUND, min: ^f32, max: ^f32) -> RESULT ---
- Sound_Set3DConeSettings :: proc(sound: ^SOUND, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- Sound_Get3DConeSettings :: proc(sound: ^SOUND, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- Sound_Set3DCustomRolloff :: proc(sound: ^SOUND, points: ^VECTOR, numpoints: i32) -> RESULT ---
- Sound_Get3DCustomRolloff :: proc(sound: ^SOUND, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- Sound_GetSubSound :: proc(sound: ^SOUND, index: i32, subsound: ^^SOUND) -> RESULT ---
- Sound_GetSubSoundParent :: proc(sound: ^SOUND, parentsound: ^^SOUND) -> RESULT ---
- Sound_GetName :: proc(sound: ^SOUND, name: ^u8, namelen: i32) -> RESULT ---
- Sound_GetLength :: proc(sound: ^SOUND, length: ^u32, lengthtype: TIMEUNIT) -> RESULT ---
- Sound_GetFormat :: proc(sound: ^SOUND, _type: ^SOUND_TYPE, format: ^SOUND_FORMAT, channels: ^i32, bits: ^i32) -> RESULT ---
- Sound_GetNumSubSounds :: proc(sound: ^SOUND, numsubsounds: ^i32) -> RESULT ---
- Sound_GetNumTags :: proc(sound: ^SOUND, numtags: ^i32, numtagsupdated: ^i32) -> RESULT ---
- Sound_GetTag :: proc(sound: ^SOUND, name: cstring, index: i32, tag: ^TAG) -> RESULT ---
- Sound_GetOpenState :: proc(sound: ^SOUND, openstate: ^OPENSTATE, percentbuffered: ^u32, starving: ^b32, diskbusy: ^b32) -> RESULT ---
- Sound_ReadData :: proc(sound: ^SOUND, buffer: rawptr, length: u32, read: ^u32) -> RESULT ---
- Sound_SeekData :: proc(sound: ^SOUND, pcm: u32) -> RESULT ---
-
- Sound_SetSoundGroup :: proc(sound: ^SOUND, soundgroup: ^SOUNDGROUP) -> RESULT ---
- Sound_GetSoundGroup :: proc(sound: ^SOUND, soundgroup: ^^SOUNDGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Synchronization poAPI: i32. These points can come from markers embedded in wav files, and can also generate channel callbacks.
- //
-
- Sound_GetNumSyncPoints :: proc(sound: ^SOUND, numsyncpoints: ^i32) -> RESULT ---
- Sound_GetSyncPoint :: proc(sound: ^SOUND, index: i32, point: ^^SYNCPOINT) -> RESULT ---
- Sound_GetSyncPointInfo :: proc(sound: ^SOUND, point: ^SYNCPOINT, name: ^u8, namelen: i32, offset: ^u32, offsettype: TIMEUNIT) -> RESULT ---
- Sound_AddSyncPoint :: proc(sound: ^SOUND, offset: u32, offsettype: TIMEUNIT, name: cstring, point: ^^SYNCPOINT) -> RESULT ---
- Sound_DeleteSyncPoint :: proc(sound: ^SOUND, point: ^SYNCPOINT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Functions also in Channel class but here they are the 'default' to save having to change it in Channel all the time.
- //
-
- Sound_SetMode :: proc(sound: ^SOUND, mode: MODE) -> RESULT ---
- Sound_GetMode :: proc(sound: ^SOUND, mode: ^MODE) -> RESULT ---
- Sound_SetLoopCount :: proc(sound: ^SOUND, loopcount: i32) -> RESULT ---
- Sound_GetLoopCount :: proc(sound: ^SOUND, loopcount: ^i32) -> RESULT ---
- Sound_SetLoopPoints :: proc(sound: ^SOUND, loopstart: u32, loopstarttype: TIMEUNIT, loopend: u32, loopendtype: TIMEUNIT) -> RESULT ---
- Sound_GetLoopPoints :: proc(sound: ^SOUND, loopstart: ^u32, loopstarttype: TIMEUNIT, loopend: ^u32, loopendtype: TIMEUNIT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // For MOD/S3M/XM/IT/MID sequenced formats only.
- //
-
- Sound_GetMusicNumChannels :: proc(sound: ^SOUND, numchannels: ^i32) -> RESULT ---
- Sound_SetMusicChannelVolume :: proc(sound: ^SOUND, channel: i32, volume: f32) -> RESULT ---
- Sound_GetMusicChannelVolume :: proc(sound: ^SOUND, channel: i32, volume: ^f32) -> RESULT ---
- Sound_SetMusicSpeed :: proc(sound: ^SOUND, speed: f32) -> RESULT ---
- Sound_GetMusicSpeed :: proc(sound: ^SOUND, speed: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Sound_SetUserData :: proc(sound: ^SOUND, userdata: rawptr) -> RESULT ---
- Sound_GetUserData :: proc(sound: ^SOUND, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Channel' API
- //
-
- Channel_GetSystemObject :: proc(channel: ^CHANNEL, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // General control functionality for Channels and ChannelGroups.
- //
-
- Channel_Stop :: proc(channel: ^CHANNEL) -> RESULT ---
- Channel_SetPaused :: proc(channel: ^CHANNEL, paused: b32) -> RESULT ---
- Channel_GetPaused :: proc(channel: ^CHANNEL, paused: ^b32) -> RESULT ---
- Channel_SetVolume :: proc(channel: ^CHANNEL, volume: f32) -> RESULT ---
- Channel_GetVolume :: proc(channel: ^CHANNEL, volume: ^f32) -> RESULT ---
- Channel_SetVolumeRamp :: proc(channel: ^CHANNEL, ramp: b32) -> RESULT ---
- Channel_GetVolumeRamp :: proc(channel: ^CHANNEL, ramp: ^b32) -> RESULT ---
- Channel_GetAudibility :: proc(channel: ^CHANNEL, audibility: ^f32) -> RESULT ---
- Channel_SetPitch :: proc(channel: ^CHANNEL, pitch: f32) -> RESULT ---
- Channel_GetPitch :: proc(channel: ^CHANNEL, pitch: ^f32) -> RESULT ---
- Channel_SetMute :: proc(channel: ^CHANNEL, mute: b32) -> RESULT ---
- Channel_GetMute :: proc(channel: ^CHANNEL, mute: ^b32) -> RESULT ---
- Channel_SetReverbProperties :: proc(channel: ^CHANNEL, instance: i32, wet: f32) -> RESULT ---
- Channel_GetReverbProperties :: proc(channel: ^CHANNEL, instance: i32, wet: ^f32) -> RESULT ---
- Channel_SetLowPassGain :: proc(channel: ^CHANNEL, gain: f32) -> RESULT ---
- Channel_GetLowPassGain :: proc(channel: ^CHANNEL, gain: ^f32) -> RESULT ---
- Channel_SetMode :: proc(channel: ^CHANNEL, mode: MODE) -> RESULT ---
- Channel_GetMode :: proc(channel: ^CHANNEL, mode: ^MODE) -> RESULT ---
- Channel_SetCallback :: proc(channel: ^CHANNEL, callback: CHANNELCONTROL_CALLBACK) -> RESULT ---
- Channel_IsPlaying :: proc(channel: ^CHANNEL, isplaying: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Note all 'set' functions alter a final _matrix, this is why the only get function is getMixMatrix, to avoid other get functions returning incorrect/obsolete values.
- //
-
- Channel_SetPan :: proc(channel: ^CHANNEL, pan: f32) -> RESULT ---
- Channel_SetMixLevelsOutput :: proc(channel: ^CHANNEL, frontleft: f32, frontright: f32, center: f32, lfe: f32, surroundleft: f32, surroundright: f32, backleft: f32, backright: f32) -> RESULT ---
- Channel_SetMixLevelsInput :: proc(channel: ^CHANNEL, levels: ^f32, numlevels: i32) -> RESULT ---
- Channel_SetMixMatrix :: proc(channel: ^CHANNEL, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- Channel_GetMixMatrix :: proc(channel: ^CHANNEL, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Clock based functionality.
- //
-
- Channel_GetDSPClock :: proc(channel: ^CHANNEL, dspclock: ^uint, parentclock: ^uint) -> RESULT ---
- Channel_SetDelay :: proc(channel: ^CHANNEL, dspclock_start: uint, dspclock_end: uint, stopchannels: b32) -> RESULT ---
- Channel_GetDelay :: proc(channel: ^CHANNEL, dspclock_start: ^uint, dspclock_end: ^uint, stopchannels: ^b32) -> RESULT ---
- Channel_AddFadePoint :: proc(channel: ^CHANNEL, dspclock: uint, volume: f32) -> RESULT ---
- Channel_SetFadePointRamp :: proc(channel: ^CHANNEL, dspclock: uint, volume: f32) -> RESULT ---
- Channel_RemoveFadePoints :: proc(channel: ^CHANNEL, dspclock_start: uint, dspclock_end: uint) -> RESULT ---
- Channel_GetFadePoints :: proc(channel: ^CHANNEL, numpoints: ^u32, point_dspclock: ^uint, point_volume: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP effects.
- //
-
- Channel_GetDSP :: proc(channel: ^CHANNEL, index: i32, dsp: ^^DSP) -> RESULT ---
- Channel_AddDSP :: proc(channel: ^CHANNEL, index: i32, dsp: ^DSP) -> RESULT ---
- Channel_RemoveDSP :: proc(channel: ^CHANNEL, dsp: ^DSP) -> RESULT ---
- Channel_GetNumDSPs :: proc(channel: ^CHANNEL, numdsps: ^i32) -> RESULT ---
- Channel_SetDSPIndex :: proc(channel: ^CHANNEL, dsp: ^DSP, index: i32) -> RESULT ---
- Channel_GetDSPIndex :: proc(channel: ^CHANNEL, dsp: ^DSP, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 3D functionality.
- //
-
- Channel_Set3DAttributes :: proc(channel: ^CHANNEL, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR) -> RESULT ---
- Channel_Get3DAttributes :: proc(channel: ^CHANNEL, pos: ^VECTOR, vel: ^VECTOR) -> RESULT ---
- Channel_Set3DMinMaxDistance :: proc(channel: ^CHANNEL, mindistance: f32, maxdistance: f32) -> RESULT ---
- Channel_Get3DMinMaxDistance :: proc(channel: ^CHANNEL, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- Channel_Set3DConeSettings :: proc(channel: ^CHANNEL, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- Channel_Get3DConeSettings :: proc(channel: ^CHANNEL, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- Channel_Set3DConeOrientation :: proc(channel: ^CHANNEL, orientation: ^VECTOR) -> RESULT ---
- Channel_Get3DConeOrientation :: proc(channel: ^CHANNEL, orientation: ^VECTOR) -> RESULT ---
- Channel_Set3DCustomRolloff :: proc(channel: ^CHANNEL, points: ^VECTOR, numpoints: i32) -> RESULT ---
- Channel_Get3DCustomRolloff :: proc(channel: ^CHANNEL, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- Channel_Set3DOcclusion :: proc(channel: ^CHANNEL, directocclusion: f32, reverbocclusion: f32) -> RESULT ---
- Channel_Get3DOcclusion :: proc(channel: ^CHANNEL, directocclusion: ^f32, reverbocclusion: ^f32) -> RESULT ---
- Channel_Set3DSpread :: proc(channel: ^CHANNEL, angle: f32) -> RESULT ---
- Channel_Get3DSpread :: proc(channel: ^CHANNEL, angle: ^f32) -> RESULT ---
- Channel_Set3DLevel :: proc(channel: ^CHANNEL, level: f32) -> RESULT ---
- Channel_Get3DLevel :: proc(channel: ^CHANNEL, level: ^f32) -> RESULT ---
- Channel_Set3DDopplerLevel :: proc(channel: ^CHANNEL, level: f32) -> RESULT ---
- Channel_Get3DDopplerLevel :: proc(channel: ^CHANNEL, level: ^f32) -> RESULT ---
- Channel_Set3DDistanceFilter :: proc(channel: ^CHANNEL, custom: b32, customLevel: f32, centerFreq: f32) -> RESULT ---
- Channel_Get3DDistanceFilter :: proc(channel: ^CHANNEL, custom: ^b32, customLevel: ^f32, centerFreq: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Channel_SetUserData :: proc(channel: ^CHANNEL, userdata: rawptr) -> RESULT ---
- Channel_GetUserData :: proc(channel: ^CHANNEL, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Channel specific control functionality.
- //
-
- Channel_SetFrequency :: proc(channel: ^CHANNEL, frequency: f32) -> RESULT ---
- Channel_GetFrequency :: proc(channel: ^CHANNEL, frequency: ^f32) -> RESULT ---
- Channel_SetPriority :: proc(channel: ^CHANNEL, priority: i32) -> RESULT ---
- Channel_GetPriority :: proc(channel: ^CHANNEL, priority: ^i32) -> RESULT ---
- Channel_SetPosition :: proc(channel: ^CHANNEL, position: u32, postype: TIMEUNIT) -> RESULT ---
- Channel_GetPosition :: proc(channel: ^CHANNEL, position: ^u32, postype: TIMEUNIT) -> RESULT ---
- Channel_SetChannelGroup :: proc(channel: ^CHANNEL, channelgroup: ^CHANNELGROUP) -> RESULT ---
- Channel_GetChannelGroup :: proc(channel: ^CHANNEL, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- Channel_SetLoopCount :: proc(channel: ^CHANNEL, loopcount: i32) -> RESULT ---
- Channel_GetLoopCount :: proc(channel: ^CHANNEL, loopcount: ^i32) -> RESULT ---
- Channel_SetLoopPoints :: proc(channel: ^CHANNEL, loopstart: u32, loopstarttype: TIMEUNIT, loopend: u32, loopendtype: TIMEUNIT) -> RESULT ---
- Channel_GetLoopPoints :: proc(channel: ^CHANNEL, loopstart: ^u32, loopstarttype: TIMEUNIT, loopend: ^u32, loopendtype: TIMEUNIT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- Channel_IsVirtual :: proc(channel: ^CHANNEL, isvirtual: ^b32) -> RESULT ---
- Channel_GetCurrentSound :: proc(channel: ^CHANNEL, sound: ^^SOUND) -> RESULT ---
- Channel_GetIndex :: proc(channel: ^CHANNEL, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'ChannelGroup' API
- //
-
- ChannelGroup_GetSystemObject :: proc(channelgroup: ^CHANNELGROUP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // General control functionality for Channels and ChannelGroups.
- //
-
- ChannelGroup_Stop :: proc(channelgroup: ^CHANNELGROUP) -> RESULT ---
- ChannelGroup_SetPaused :: proc(channelgroup: ^CHANNELGROUP, paused: b32) -> RESULT ---
- ChannelGroup_GetPaused :: proc(channelgroup: ^CHANNELGROUP, paused: ^b32) -> RESULT ---
- ChannelGroup_SetVolume :: proc(channelgroup: ^CHANNELGROUP, volume: f32) -> RESULT ---
- ChannelGroup_GetVolume :: proc(channelgroup: ^CHANNELGROUP, volume: ^f32) -> RESULT ---
- ChannelGroup_SetVolumeRamp :: proc(channelgroup: ^CHANNELGROUP, ramp: b32) -> RESULT ---
- ChannelGroup_GetVolumeRamp :: proc(channelgroup: ^CHANNELGROUP, ramp: ^b32) -> RESULT ---
- ChannelGroup_GetAudibility :: proc(channelgroup: ^CHANNELGROUP, audibility: ^f32) -> RESULT ---
- ChannelGroup_SetPitch :: proc(channelgroup: ^CHANNELGROUP, pitch: f32) -> RESULT ---
- ChannelGroup_GetPitch :: proc(channelgroup: ^CHANNELGROUP, pitch: ^f32) -> RESULT ---
- ChannelGroup_SetMute :: proc(channelgroup: ^CHANNELGROUP, mute: b32) -> RESULT ---
- ChannelGroup_GetMute :: proc(channelgroup: ^CHANNELGROUP, mute: ^b32) -> RESULT ---
- ChannelGroup_SetReverbProperties :: proc(channelgroup: ^CHANNELGROUP, instance: i32, wet: f32) -> RESULT ---
- ChannelGroup_GetReverbProperties :: proc(channelgroup: ^CHANNELGROUP, instance: i32, wet: ^f32) -> RESULT ---
- ChannelGroup_SetLowPassGain :: proc(channelgroup: ^CHANNELGROUP, gain: f32) -> RESULT ---
- ChannelGroup_GetLowPassGain :: proc(channelgroup: ^CHANNELGROUP, gain: ^f32) -> RESULT ---
- ChannelGroup_SetMode :: proc(channelgroup: ^CHANNELGROUP, mode: MODE) -> RESULT ---
- ChannelGroup_GetMode :: proc(channelgroup: ^CHANNELGROUP, mode: ^MODE) -> RESULT ---
- ChannelGroup_SetCallback :: proc(channelgroup: ^CHANNELGROUP, callback: CHANNELCONTROL_CALLBACK) -> RESULT ---
- ChannelGroup_IsPlaying :: proc(channelgroup: ^CHANNELGROUP, isplaying: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Note all 'set' functions alter a final _matrix, this is why the only get function is getMixMatrix, to avoid other get functions returning incorrect/obsolete values.
- //
-
- ChannelGroup_SetPan :: proc(channelgroup: ^CHANNELGROUP, pan: f32) -> RESULT ---
- ChannelGroup_SetMixLevelsOutput :: proc(channelgroup: ^CHANNELGROUP, frontleft: f32, frontright: f32, center: f32, lfe: f32, surroundleft: f32, surroundright: f32, backleft: f32, backright: f32) -> RESULT ---
- ChannelGroup_SetMixLevelsInput :: proc(channelgroup: ^CHANNELGROUP, levels: ^f32, numlevels: i32) -> RESULT ---
- ChannelGroup_SetMixMatrix :: proc(channelgroup: ^CHANNELGROUP, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- ChannelGroup_GetMixMatrix :: proc(channelgroup: ^CHANNELGROUP, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Clock based functionality.
- //
-
- ChannelGroup_GetDSPClock :: proc(channelgroup: ^CHANNELGROUP, dspclock: ^uint, parentclock: ^uint) -> RESULT ---
- ChannelGroup_SetDelay :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: uint, dspclock_end: uint, stopchannels: b32) -> RESULT ---
- ChannelGroup_GetDelay :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: ^uint, dspclock_end: ^uint, stopchannels: ^b32) -> RESULT ---
- ChannelGroup_AddFadePoint :: proc(channelgroup: ^CHANNELGROUP, dspclock: uint, volume: f32) -> RESULT ---
- ChannelGroup_SetFadePointRamp :: proc(channelgroup: ^CHANNELGROUP, dspclock: uint, volume: f32) -> RESULT ---
- ChannelGroup_RemoveFadePoints :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: uint, dspclock_end: uint) -> RESULT ---
- ChannelGroup_GetFadePoints :: proc(channelgroup: ^CHANNELGROUP, numpoints: ^u32, point_dspclock: ^uint, point_volume: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP effects.
- //
-
- ChannelGroup_GetDSP :: proc(channelgroup: ^CHANNELGROUP, index: i32, dsp: ^^DSP) -> RESULT ---
- ChannelGroup_AddDSP :: proc(channelgroup: ^CHANNELGROUP, index: i32, dsp: ^DSP) -> RESULT ---
- ChannelGroup_RemoveDSP :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP) -> RESULT ---
- ChannelGroup_GetNumDSPs :: proc(channelgroup: ^CHANNELGROUP, numdsps: ^i32) -> RESULT ---
- ChannelGroup_SetDSPIndex :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP, index: i32) -> RESULT ---
- ChannelGroup_GetDSPIndex :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 3D functionality.
- //
-
- ChannelGroup_Set3DAttributes :: proc(channelgroup: ^CHANNELGROUP, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR) -> RESULT ---
- ChannelGroup_Get3DAttributes :: proc(channelgroup: ^CHANNELGROUP, pos: ^VECTOR, vel: ^VECTOR) -> RESULT ---
- ChannelGroup_Set3DMinMaxDistance :: proc(channelgroup: ^CHANNELGROUP, mindistance: f32, maxdistance: f32) -> RESULT ---
- ChannelGroup_Get3DMinMaxDistance :: proc(channelgroup: ^CHANNELGROUP, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- ChannelGroup_Set3DConeSettings :: proc(channelgroup: ^CHANNELGROUP, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- ChannelGroup_Get3DConeSettings :: proc(channelgroup: ^CHANNELGROUP, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- ChannelGroup_Set3DConeOrientation :: proc(channelgroup: ^CHANNELGROUP, orientation: ^VECTOR) -> RESULT ---
- ChannelGroup_Get3DConeOrientation :: proc(channelgroup: ^CHANNELGROUP, orientation: ^VECTOR) -> RESULT ---
- ChannelGroup_Set3DCustomRolloff :: proc(channelgroup: ^CHANNELGROUP, points: ^VECTOR, numpoints: i32) -> RESULT ---
- ChannelGroup_Get3DCustomRolloff :: proc(channelgroup: ^CHANNELGROUP, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- ChannelGroup_Set3DOcclusion :: proc(channelgroup: ^CHANNELGROUP, directocclusion: f32, reverbocclusion: f32) -> RESULT ---
- ChannelGroup_Get3DOcclusion :: proc(channelgroup: ^CHANNELGROUP, directocclusion: ^f32, reverbocclusion: ^f32) -> RESULT ---
- ChannelGroup_Set3DSpread :: proc(channelgroup: ^CHANNELGROUP, angle: f32) -> RESULT ---
- ChannelGroup_Get3DSpread :: proc(channelgroup: ^CHANNELGROUP, angle: ^f32) -> RESULT ---
- ChannelGroup_Set3DLevel :: proc(channelgroup: ^CHANNELGROUP, level: f32) -> RESULT ---
- ChannelGroup_Get3DLevel :: proc(channelgroup: ^CHANNELGROUP, level: ^f32) -> RESULT ---
- ChannelGroup_Set3DDopplerLevel :: proc(channelgroup: ^CHANNELGROUP, level: f32) -> RESULT ---
- ChannelGroup_Get3DDopplerLevel :: proc(channelgroup: ^CHANNELGROUP, level: ^f32) -> RESULT ---
- ChannelGroup_Set3DDistanceFilter :: proc(channelgroup: ^CHANNELGROUP, custom: b32, customLevel: f32, centerFreq: f32) -> RESULT ---
- ChannelGroup_Get3DDistanceFilter :: proc(channelgroup: ^CHANNELGROUP, custom: ^b32, customLevel: ^f32, centerFreq: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- ChannelGroup_SetUserData :: proc(channelgroup: ^CHANNELGROUP, userdata: rawptr) -> RESULT ---
- ChannelGroup_GetUserData :: proc(channelgroup: ^CHANNELGROUP, userdata: ^rawptr) -> RESULT ---
-
- ChannelGroup_Release :: proc(channelgroup: ^CHANNELGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Nested channel groups.
- //
-
- ChannelGroup_AddGroup :: proc(channelgroup: ^CHANNELGROUP, group: ^CHANNELGROUP, propagatedspclock: b32, connection: ^^DSPCONNECTION) -> RESULT ---
- ChannelGroup_GetNumGroups :: proc(channelgroup: ^CHANNELGROUP, numgroups: ^i32) -> RESULT ---
- ChannelGroup_GetGroup :: proc(channelgroup: ^CHANNELGROUP, index: i32, group: ^^CHANNELGROUP) -> RESULT ---
- ChannelGroup_GetParentGroup :: proc(channelgroup: ^CHANNELGROUP, group: ^^CHANNELGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- ChannelGroup_GetName :: proc(channelgroup: ^CHANNELGROUP, name: ^u8, namelen: i32) -> RESULT ---
- ChannelGroup_GetNumChannels :: proc(channelgroup: ^CHANNELGROUP, numchannels: ^i32) -> RESULT ---
- ChannelGroup_GetChannel :: proc(channelgroup: ^CHANNELGROUP, index: i32, channel: ^^CHANNEL) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'SoundGroup' API
- //
-
- SoundGroup_Release :: proc(soundgroup: ^SOUNDGROUP) -> RESULT ---
- SoundGroup_GetSystemObject :: proc(soundgroup: ^SOUNDGROUP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // SoundGroup control functions.
- //
-
- SoundGroup_SetMaxAudible :: proc(soundgroup: ^SOUNDGROUP, maxaudible: i32) -> RESULT ---
- SoundGroup_GetMaxAudible :: proc(soundgroup: ^SOUNDGROUP, maxaudible: ^i32) -> RESULT ---
- SoundGroup_SetMaxAudibleBehavior :: proc(soundgroup: ^SOUNDGROUP, behavior: SOUNDGROUP_BEHAVIOR) -> RESULT ---
- SoundGroup_GetMaxAudibleBehavior :: proc(soundgroup: ^SOUNDGROUP, behavior: ^SOUNDGROUP_BEHAVIOR) -> RESULT ---
- SoundGroup_SetMuteFadeSpeed :: proc(soundgroup: ^SOUNDGROUP, speed: f32) -> RESULT ---
- SoundGroup_GetMuteFadeSpeed :: proc(soundgroup: ^SOUNDGROUP, speed: ^f32) -> RESULT ---
- SoundGroup_SetVolume :: proc(soundgroup: ^SOUNDGROUP, volume: f32) -> RESULT ---
- SoundGroup_GetVolume :: proc(soundgroup: ^SOUNDGROUP, volume: ^f32) -> RESULT ---
- SoundGroup_Stop :: proc(soundgroup: ^SOUNDGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- SoundGroup_GetName :: proc(soundgroup: ^SOUNDGROUP, name: ^u8, namelen: i32) -> RESULT ---
- SoundGroup_GetNumSounds :: proc(soundgroup: ^SOUNDGROUP, numsounds: ^i32) -> RESULT ---
- SoundGroup_GetSound :: proc(soundgroup: ^SOUNDGROUP, index: i32, sound: ^^SOUND) -> RESULT ---
- SoundGroup_GetNumPlaying :: proc(soundgroup: ^SOUNDGROUP, numplaying: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- SoundGroup_SetUserData :: proc(soundgroup: ^SOUNDGROUP, userdata: rawptr) -> RESULT ---
- SoundGroup_GetUserData :: proc(soundgroup: ^SOUNDGROUP, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'DSP' API
- //
-
- DSP_Release :: proc(dsp: ^DSP) -> RESULT ---
- DSP_GetSystemObject :: proc(dsp: ^DSP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Connection / disconnection / input and output enumeration.
- //
-
- DSP_AddInput :: proc(dsp: ^DSP, input: ^DSP, connection: ^^DSPCONNECTION, _type: DSPCONNECTION_TYPE) -> RESULT ---
- DSP_DisconnectFrom :: proc(dsp: ^DSP, target: ^DSP, connection: ^DSPCONNECTION) -> RESULT ---
- DSP_DisconnectAll :: proc(dsp: ^DSP, inputs: b32, outputs: b32) -> RESULT ---
- DSP_GetNumInputs :: proc(dsp: ^DSP, numinputs: ^i32) -> RESULT ---
- DSP_GetNumOutputs :: proc(dsp: ^DSP, numoutputs: ^i32) -> RESULT ---
- DSP_GetInput :: proc(dsp: ^DSP, index: i32, input: ^^DSP, inputconnection: ^^DSPCONNECTION) -> RESULT ---
- DSP_GetOutput :: proc(dsp: ^DSP, index: i32, output: ^^DSP, outputconnection: ^^DSPCONNECTION) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP unit control.
- //
-
- DSP_SetActive :: proc(dsp: ^DSP, active: b32) -> RESULT ---
- DSP_GetActive :: proc(dsp: ^DSP, active: ^b32) -> RESULT ---
- DSP_SetBypass :: proc(dsp: ^DSP, bypass: b32) -> RESULT ---
- DSP_GetBypass :: proc(dsp: ^DSP, bypass: ^b32) -> RESULT ---
- DSP_SetWetDryMix :: proc(dsp: ^DSP, prewet: f32, postwet: f32, dry: f32) -> RESULT ---
- DSP_GetWetDryMix :: proc(dsp: ^DSP, prewet: ^f32, postwet: ^f32, dry: ^f32) -> RESULT ---
- DSP_SetChannelFormat :: proc(dsp: ^DSP, channelmask: CHANNELMASK, numchannels: i32, source_speakermode: SPEAKERMODE) -> RESULT ---
- DSP_GetChannelFormat :: proc(dsp: ^DSP, channelmask: ^CHANNELMASK, numchannels: ^i32, source_speakermode: ^SPEAKERMODE) -> RESULT ---
- DSP_GetOutputChannelFormat :: proc(dsp: ^DSP, inmask: CHANNELMASK, inchannels: i32, inspeakermode: SPEAKERMODE, outmask: ^CHANNELMASK, outchannels: ^i32, outspeakermode: ^SPEAKERMODE) -> RESULT ---
- DSP_Reset :: proc(dsp: ^DSP) -> RESULT ---
- DSP_SetCallback :: proc(dsp: ^DSP, callback: DSP_CALLBACK) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP parameter control.
- //
-
- DSP_SetParameterf32 :: proc(dsp: ^DSP, index: i32, value: f32) -> RESULT ---
- DSP_SetParameterInt :: proc(dsp: ^DSP, index: i32, value: i32) -> RESULT ---
- DSP_SetParameterb32 :: proc(dsp: ^DSP, index: i32, value: b32) -> RESULT ---
- DSP_SetParameterData :: proc(dsp: ^DSP, index: i32, data: rawptr, length: u32) -> RESULT ---
- DSP_GetParameterf32 :: proc(dsp: ^DSP, index: i32, value: ^f32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterInt :: proc(dsp: ^DSP, index: i32, value: ^i32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterb32 :: proc(dsp: ^DSP, index: i32, value: ^b32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterData :: proc(dsp: ^DSP, index: i32, data: ^rawptr, length: ^u32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetNumParameters :: proc(dsp: ^DSP, numparams: ^i32) -> RESULT ---
- // DSP_GetParameterInfo :: proc(dsp: ^DSP, index: i32, desc: ^^DSP_PARAMETER_DESC) -> RESULT ---
- DSP_GetDataParameterIndex :: proc(dsp: ^DSP, datatype: i32, index: ^i32) -> RESULT ---
- DSP_ShowConfigDialog :: proc(dsp: ^DSP, hwnd: rawptr, show: b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP attributes.
- //
-
- DSP_GetInfo :: proc(dsp: ^DSP, name: ^u8, version: ^u32, channels: ^i32, configwidth: ^i32, configheight: ^i32) -> RESULT ---
- DSP_GetType :: proc(dsp: ^DSP, _type: ^DSP_TYPE) -> RESULT ---
- DSP_GetIdle :: proc(dsp: ^DSP, idle: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- DSP_SetUserData :: proc(dsp: ^DSP, userdata: rawptr) -> RESULT ---
- DSP_GetUserData :: proc(dsp: ^DSP, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Metering.
- //
-
- DSP_SetMeteringEnabled :: proc(dsp: ^DSP, inputEnabled: b32, outputEnabled: b32) -> RESULT ---
- DSP_GetMeteringEnabled :: proc(dsp: ^DSP, inputEnabled: ^b32, outputEnabled: ^b32) -> RESULT ---
- // DSP_GetMeteringInfo :: proc(dsp: ^DSP, inputInfo: ^DSP_METERING_INFO, outputInfo: ^DSP_METERING_INFO) -> RESULT ---
- DSP_GetCPUUsage :: proc(dsp: ^DSP, exclusive: ^u32, inclusive: ^u32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'DSPConnection' API
- //
-
- DSPConnection_GetInput :: proc(dspconnection: ^DSPCONNECTION, input: ^^DSP) -> RESULT ---
- DSPConnection_GetOutput :: proc(dspconnection: ^DSPCONNECTION, output: ^^DSP) -> RESULT ---
- DSPConnection_SetMix :: proc(dspconnection: ^DSPCONNECTION, volume: f32) -> RESULT ---
- DSPConnection_GetMix :: proc(dspconnection: ^DSPCONNECTION, volume: ^f32) -> RESULT ---
- DSPConnection_SetMixMatrix :: proc(dspconnection: ^DSPCONNECTION, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- DSPConnection_GetMixMatrix :: proc(dspconnection: ^DSPCONNECTION, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
- DSPConnection_GetType :: proc(dspconnection: ^DSPCONNECTION, _type: ^DSPCONNECTION_TYPE) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- DSPConnection_SetUserData :: proc(dspconnection: ^DSPCONNECTION, userdata: rawptr) -> RESULT ---
- DSPConnection_GetUserData :: proc(dspconnection: ^DSPCONNECTION, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Geometry' API
- //
-
- Geometry_Release :: proc(geometry: ^GEOMETRY) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Polygon manipulation.
- //
-
- Geometry_AddPolygon :: proc(geometry: ^GEOMETRY, directocclusion: f32, reverbocclusion: f32, doublesided: b32, numvertices: i32, #by_ptr vertices: VECTOR, polygonindex: ^i32) -> RESULT ---
- Geometry_GetNumPolygons :: proc(geometry: ^GEOMETRY, numpolygons: ^i32) -> RESULT ---
- Geometry_GetMaxPolygons :: proc(geometry: ^GEOMETRY, maxpolygons: ^i32, maxvertices: ^i32) -> RESULT ---
- Geometry_GetPolygonNumVertices :: proc(geometry: ^GEOMETRY, index: i32, numvertices: ^i32) -> RESULT ---
- Geometry_SetPolygonVertex :: proc(geometry: ^GEOMETRY, index: i32, vertexindex: i32, #by_ptr vertex: VECTOR) -> RESULT ---
- Geometry_GetPolygonVertex :: proc(geometry: ^GEOMETRY, index: i32, vertexindex: i32, vertex: ^VECTOR) -> RESULT ---
- Geometry_SetPolygonAttributes :: proc(geometry: ^GEOMETRY, index: i32, directocclusion: f32, reverbocclusion: f32, doublesided: b32) -> RESULT ---
- Geometry_GetPolygonAttributes :: proc(geometry: ^GEOMETRY, index: i32, directocclusion: ^f32, reverbocclusion: ^f32, doublesided: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Object manipulation.
- //
-
- Geometry_SetActive :: proc(geometry: ^GEOMETRY, active: b32) -> RESULT ---
- Geometry_GetActive :: proc(geometry: ^GEOMETRY, active: ^b32) -> RESULT ---
- Geometry_SetRotation :: proc(geometry: ^GEOMETRY, #by_ptr forward: VECTOR, #by_ptr up: VECTOR) -> RESULT ---
- Geometry_GetRotation :: proc(geometry: ^GEOMETRY, forward: ^VECTOR, up: ^VECTOR) -> RESULT ---
- Geometry_SetPosition :: proc(geometry: ^GEOMETRY, #by_ptr position: VECTOR) -> RESULT ---
- Geometry_GetPosition :: proc(geometry: ^GEOMETRY, position: ^VECTOR) -> RESULT ---
- Geometry_SetScale :: proc(geometry: ^GEOMETRY, #by_ptr scale: VECTOR) -> RESULT ---
- Geometry_GetScale :: proc(geometry: ^GEOMETRY, scale: ^VECTOR) -> RESULT ---
- Geometry_Save :: proc(geometry: ^GEOMETRY, data: rawptr, datasize: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Geometry_SetUserData :: proc(geometry: ^GEOMETRY, userdata: rawptr) -> RESULT ---
- Geometry_GetUserData :: proc(geometry: ^GEOMETRY, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Reverb3D' API
- //
-
- Reverb3D_Release :: proc(reverb3d: ^REVERB3D) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Reverb manipulation.
- //
-
- Reverb3D_Set3DAttributes :: proc(reverb3d: ^REVERB3D, #by_ptr position: VECTOR, mindistance: f32, maxdistance: f32) -> RESULT ---
- Reverb3D_Get3DAttributes :: proc(reverb3d: ^REVERB3D, position: ^VECTOR, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- Reverb3D_SetProperties :: proc(reverb3d: ^REVERB3D, #by_ptr properties: REVERB_PROPERTIES) -> RESULT ---
- Reverb3D_GetProperties :: proc(reverb3d: ^REVERB3D, properties: ^REVERB_PROPERTIES) -> RESULT ---
- Reverb3D_SetActive :: proc(reverb3d: ^REVERB3D, active: b32) -> RESULT ---
- Reverb3D_GetActive :: proc(reverb3d: ^REVERB3D, active: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Reverb3D_SetUserData :: proc(reverb3d: ^REVERB3D, userdata: rawptr) -> RESULT ---
- Reverb3D_GetUserData :: proc(reverb3d: ^REVERB3D, userdata: ^rawptr) -> RESULT ---
-
-}
diff --git a/sauce/fmod/core/fmod_dsp.odin b/sauce/fmod/core/fmod_dsp.odin
index ef03bd2..fee6c10 100644
--- a/sauce/fmod/core/fmod_dsp.odin
+++ b/sauce/fmod/core/fmod_dsp.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ======================================================================================== */
@@ -61,13 +60,13 @@ DSP_PARAMETER_DATA_TYPE :: enum i32 {
// DSP Callbacks
//
-DSP_CREATE_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE) -> RESULT
+DSP_CREATE_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE) -> RESULT
-DSP_RELEASE_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE) -> RESULT
+DSP_RELEASE_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE) -> RESULT
-DSP_RESET_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE) -> RESULT
+DSP_RESET_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE) -> RESULT
-DSP_READ_CALLBACK :: #type proc "stdcall" (
+DSP_READ_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
inbuffer: ^f32,
outbuffer: ^f32,
@@ -76,7 +75,7 @@ DSP_READ_CALLBACK :: #type proc "stdcall" (
outchannels: ^i32,
) -> RESULT
-DSP_PROCESS_CALLBACK :: #type proc "stdcall" (
+DSP_PROCESS_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
length: u32,
#by_ptr inbufferarray: DSP_BUFFER_ARRAY,
@@ -85,9 +84,9 @@ DSP_PROCESS_CALLBACK :: #type proc "stdcall" (
op: DSP_PROCESS_OPERATION,
) -> RESULT
-DSP_SETPOSITION_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, pos: u32) -> RESULT
+DSP_SETPOSITION_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE, pos: u32) -> RESULT
-DSP_SHOULDIPROCESS_CALLBACK :: #type proc "stdcall" (
+DSP_SHOULDIPROCESS_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
inputsidle: b32,
length: u32,
@@ -96,41 +95,41 @@ DSP_SHOULDIPROCESS_CALLBACK :: #type proc "stdcall" (
speakermode: SPEAKERMODE,
) -> RESULT
-DSP_SETPARAM_FLOAT_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, index: i32, value: f32) -> RESULT
+DSP_SETPARAM_FLOAT_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE, index: i32, value: f32) -> RESULT
-DSP_SETPARAM_INT_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, index: i32, value: i32) -> RESULT
+DSP_SETPARAM_INT_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE, index: i32, value: i32) -> RESULT
-DSP_SETPARAM_BOOL_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, index: i32, value: b32) -> RESULT
+DSP_SETPARAM_BOOL_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE, index: i32, value: b32) -> RESULT
-DSP_SETPARAM_DATA_CALLBACK :: #type proc "stdcall" (
+DSP_SETPARAM_DATA_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
index: i32,
data: rawptr,
length: u32,
) -> RESULT
-DSP_GETPARAM_FLOAT_CALLBACK :: #type proc "stdcall" (
+DSP_GETPARAM_FLOAT_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
index: i32,
value: ^f32,
valuestr: [^]u8,
) -> RESULT
-DSP_GETPARAM_INT_CALLBACK :: #type proc "stdcall" (
+DSP_GETPARAM_INT_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
index: i32,
value: ^i32,
valuestr: [^]u8,
) -> RESULT
-DSP_GETPARAM_BOOL_CALLBACK :: #type proc "stdcall" (
+DSP_GETPARAM_BOOL_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
index: i32,
value: b32,
valuestr: [^]u8,
) -> RESULT
-DSP_GETPARAM_DATA_CALLBACK :: #type proc "stdcall" (
+DSP_GETPARAM_DATA_CALLBACK :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
index: i32,
data: ^rawptr,
@@ -138,11 +137,11 @@ DSP_GETPARAM_DATA_CALLBACK :: #type proc "stdcall" (
valuestr: [^]u8,
) -> RESULT
-DSP_SYSTEM_REGISTER_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE) -> RESULT
+DSP_SYSTEM_REGISTER_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE) -> RESULT
-DSP_SYSTEM_DEREGISTER_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE) -> RESULT
+DSP_SYSTEM_DEREGISTER_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE) -> RESULT
-DSP_SYSTEM_MIX_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, stage: i32) -> RESULT
+DSP_SYSTEM_MIX_CALLBACK :: #type proc "cdecl" (dsp_state: ^DSP_STATE, stage: i32) -> RESULT
@@ -151,18 +150,18 @@ DSP_SYSTEM_MIX_CALLBACK :: #type proc "stdcall" (dsp_state: ^DSP_STATE, stage: i
//
-DSP_ALLOC_FUNC :: #type proc "stdcall" (size: u32, type: MEMORY_TYPE, sourcestr: cstring) -> rawptr
+DSP_ALLOC_FUNC :: #type proc "cdecl" (size: u32, type: MEMORY_TYPE, sourcestr: cstring) -> rawptr
-DSP_REALLOC_FUNC :: #type proc "stdcall" (
+DSP_REALLOC_FUNC :: #type proc "cdecl" (
ptr: rawptr,
size: u32,
type: MEMORY_TYPE,
sourcestr: cstring,
) -> rawptr
-DSP_FREE_FUNC :: #type proc "stdcall" (ptr: rawptr, type: MEMORY_TYPE, sourcestr: cstring)
+DSP_FREE_FUNC :: #type proc "cdecl" (ptr: rawptr, type: MEMORY_TYPE, sourcestr: cstring)
-DSP_LOG_FUNC :: #type proc "stdcall" (
+DSP_LOG_FUNC :: #type proc "cdecl" (
level: DEBUG_FLAGS,
file: cstring,
line: i32,
@@ -171,31 +170,31 @@ DSP_LOG_FUNC :: #type proc "stdcall" (
#c_vararg args: ..any,
)
-DSP_GETSAMPLERATE_FUNC :: #type proc "stdcall" (dsp_state: ^DSP_STATE, rate: ^i32) -> RESULT
-DSP_GETBLOCKSIZE_FUNC :: #type proc "stdcall" (dsp_state: ^DSP_STATE, blocksize: ^u32) -> RESULT
+DSP_GETSAMPLERATE_FUNC :: #type proc "cdecl" (dsp_state: ^DSP_STATE, rate: ^i32) -> RESULT
+DSP_GETBLOCKSIZE_FUNC :: #type proc "cdecl" (dsp_state: ^DSP_STATE, blocksize: ^u32) -> RESULT
-DSP_GETSPEAKERMODE_FUNC :: #type proc "stdcall" (
+DSP_GETSPEAKERMODE_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
speakermode_mixer: ^SPEAKERMODE,
speakermode_output: ^SPEAKERMODE,
) -> RESULT
-DSP_GETCLOCK_FUNC :: #type proc "stdcall" (
+DSP_GETCLOCK_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
clock: ^uint,
offset: ^u32,
length: ^u32,
) -> RESULT
-DSP_GETLISTENERATTRIBUTES_FUNC :: #type proc "stdcall" (
+DSP_GETLISTENERATTRIBUTES_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
numlisteners: ^i32,
attributes: ^_3D_ATTRIBUTES,
) -> RESULT
-DSP_GETUSERDATA_FUNC :: #type proc "stdcall" (dsp_state: ^DSP_STATE, userdata: ^rawptr) -> RESULT
+DSP_GETUSERDATA_FUNC :: #type proc "cdecl" (dsp_state: ^DSP_STATE, userdata: ^rawptr) -> RESULT
-DSP_DFT_FFTREAL_FUNC :: #type proc "stdcall" (
+DSP_DFT_FFTREAL_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
size: i32,
#by_ptr signal: f32,
@@ -204,7 +203,7 @@ DSP_DFT_FFTREAL_FUNC :: #type proc "stdcall" (
signalhop: i32,
) -> RESULT
-DSP_DFT_IFFTREAL_FUNC :: #type proc "stdcall" (
+DSP_DFT_IFFTREAL_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
size: i32,
#by_ptr dft: COMPLEX,
@@ -213,7 +212,7 @@ DSP_DFT_IFFTREAL_FUNC :: #type proc "stdcall" (
signalhop: i32,
) -> RESULT
-DSP_PAN_SUMMONOMATRIX_FUNC :: #type proc "stdcall" (
+DSP_PAN_SUMMONOMATRIX_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
sourceSpeakerMode: SPEAKERMODE,
lowFrequencyGain: f32,
@@ -221,7 +220,7 @@ DSP_PAN_SUMMONOMATRIX_FUNC :: #type proc "stdcall" (
_matrix: ^f32,
) -> RESULT
-DSP_PAN_SUMSTEREOMATRIX_FUNC :: #type proc "stdcall" (
+DSP_PAN_SUMSTEREOMATRIX_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
sourceSpeakerMode: SPEAKERMODE,
pan: f32,
@@ -231,7 +230,7 @@ DSP_PAN_SUMSTEREOMATRIX_FUNC :: #type proc "stdcall" (
_matrix: ^f32,
) -> RESULT
-DSP_PAN_SUMSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
+DSP_PAN_SUMSURROUNDMATRIX_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
sourceSpeakerMode: SPEAKERMODE,
targetSpeakerMode: SPEAKERMODE,
@@ -245,7 +244,7 @@ DSP_PAN_SUMSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
flags: DSP_PAN_SURROUND_FLAGS,
) -> RESULT
-DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
+DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
targetSpeakerMode: SPEAKERMODE,
direction: f32,
@@ -256,7 +255,7 @@ DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
_matrix: ^f32,
) -> RESULT
-DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
+DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
targetSpeakerMode: SPEAKERMODE,
direction: f32,
@@ -268,7 +267,7 @@ DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC :: #type proc "stdcall" (
_matrix: ^f32,
) -> RESULT
-DSP_PAN_GETROLLOFFGAIN_FUNC :: #type proc "stdcall" (
+DSP_PAN_GETROLLOFFGAIN_FUNC :: #type proc "cdecl" (
dsp_state: ^DSP_STATE,
rolloff: DSP_PAN_3D_ROLLOFF_TYPE,
distance: f32,
diff --git a/sauce/fmod/core/fmod_dsp_darwin.odin b/sauce/fmod/core/fmod_dsp_darwin.odin
deleted file mode 100644
index 474d118..0000000
--- a/sauce/fmod/core/fmod_dsp_darwin.odin
+++ /dev/null
@@ -1,568 +0,0 @@
-package fmod_core
-
-/* ======================================================================================== */
-/* FMOD Core API - DSP header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* Use this header if you are wanting to develop your own DSP plugin to use with FMODs */
-/* 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. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/plugin-api-dsp.html */
-/* =========================================================================================*/
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// DSP Constants
-//
-
-/*
-
-PLUGIN_SDK_VERSION :: 110
-DSP_GETPARAM_VALUESTR_LENGTH :: 32
-
-DSP_PROCESS_OPERATION :: enum i32 {
- DSP_PROCESS_PERFORM,
- DSP_PROCESS_QUERY,
-}
-
-DSP_PAN_SURROUND_FLAGS :: enum i32 {
- DSP_PAN_SURROUND_DEFAULT = 0,
- DSP_PAN_SURROUND_ROTATION_NOT_BIASED = 1,
-}
-
-DSP_PARAMETER_TYPE :: enum i32 {
- DSP_PARAMETER_TYPE_FLOAT,
- DSP_PARAMETER_TYPE_INT,
- DSP_PARAMETER_TYPE_BOOL,
- DSP_PARAMETER_TYPE_DATA,
-}
-
-DSP_PARAMETER_FLOAT_MAPPING_TYPE :: enum i32 {
- DSP_PARAMETER_FLOAT_MAPPING_TYPE_LINEAR,
- DSP_PARAMETER_FLOAT_MAPPING_TYPE_AUTO,
- DSP_PARAMETER_FLOAT_MAPPING_TYPE_PIECEWISE_LINEAR,
-}
-
-DSP_PARAMETER_DATA_TYPE :: enum i32 {
- DSP_PARAMETER_DATA_TYPE_USER = 0,
- DSP_PARAMETER_DATA_TYPE_OVERALLGAIN = -1,
- DSP_PARAMETER_DATA_TYPE_3DATTRIBUTES = -2,
- DSP_PARAMETER_DATA_TYPE_SIDECHAIN = -3,
- DSP_PARAMETER_DATA_TYPE_FFT = -4,
- DSP_PARAMETER_DATA_TYPE_3DATTRIBUTES_MULTI = -5,
- DSP_PARAMETER_DATA_TYPE_ATTENUATION_RANGE = -6,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// DSP Callbacks
-//
-
-DSP_CREATE_CALLBACK :: #type proc (dsp_state: ^DSP_STATE) -> RESULT
-
-DSP_RELEASE_CALLBACK :: #type proc (dsp_state: ^DSP_STATE) -> RESULT
-
-DSP_RESET_CALLBACK :: #type proc (dsp_state: ^DSP_STATE) -> RESULT
-
-DSP_READ_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- inbuffer: ^f32,
- outbuffer: ^f32,
- length: u32,
- inchannels: i32,
- outchannels: ^i32,
-) -> RESULT
-
-DSP_PROCESS_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- length: u32,
- #by_ptr inbufferarray: DSP_BUFFER_ARRAY,
- outbufferarray: [^]DSP_BUFFER_ARRAY,
- inputsidle: b32,
- op: DSP_PROCESS_OPERATION,
-) -> RESULT
-
-DSP_SETPOSITION_CALLBACK :: #type proc (dsp_state: ^DSP_STATE, pos: u32) -> RESULT
-
-DSP_SHOULDIPROCESS_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- inputsidle: b32,
- length: u32,
- inmask: CHANNELMASK,
- inchannels: i32,
- speakermode: SPEAKERMODE,
-) -> RESULT
-
-DSP_SETPARAM_FLOAT_CALLBACK :: #type proc (dsp_state: ^DSP_STATE, index: i32, value: f32) -> RESULT
-
-DSP_SETPARAM_INT_CALLBACK :: #type proc (dsp_state: ^DSP_STATE, index: i32, value: i32) -> RESULT
-
-DSP_SETPARAM_BOOL_CALLBACK :: #type proc (dsp_state: ^DSP_STATE, index: i32, value: b32) -> RESULT
-
-DSP_SETPARAM_DATA_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- index: i32,
- data: rawptr,
- length: u32,
-) -> RESULT
-
-DSP_GETPARAM_FLOAT_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- index: i32,
- value: ^f32,
- valuestr: [^]u8,
-) -> RESULT
-
-DSP_GETPARAM_INT_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- index: i32,
- value: ^i32,
- valuestr: [^]u8,
-) -> RESULT
-
-DSP_GETPARAM_BOOL_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- index: i32,
- value: b32,
- valuestr: [^]u8,
-) -> RESULT
-
-DSP_GETPARAM_DATA_CALLBACK :: #type proc (
- dsp_state: ^DSP_STATE,
- index: i32,
- data: ^rawptr,
- length: ^u32,
- valuestr: [^]u8,
-) -> RESULT
-
-DSP_SYSTEM_REGISTER_CALLBACK :: #type proc (dsp_state: ^DSP_STATE) -> RESULT
-
-DSP_SYSTEM_DEREGISTER_CALLBACK :: #type proc (dsp_state: ^DSP_STATE) -> RESULT
-
-DSP_SYSTEM_MIX_CALLBACK :: #type proc (dsp_state: ^DSP_STATE, stage: i32) -> RESULT
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// DSP Functions
-//
-
-
-DSP_ALLOC_FUNC :: #type proc (size: u32, type: MEMORY_TYPE, sourcestr: cstring) -> rawptr
-
-DSP_REALLOC_FUNC :: #type proc (
- ptr: rawptr,
- size: u32,
- type: MEMORY_TYPE,
- sourcestr: cstring,
-) -> rawptr
-
-DSP_FREE_FUNC :: #type proc (ptr: rawptr, type: MEMORY_TYPE, sourcestr: cstring)
-
-DSP_LOG_FUNC :: #type proc (
- level: DEBUG_FLAGS,
- file: cstring,
- line: i32,
- function: cstring,
- str: cstring,
- #c_vararg args: ..any,
-)
-
-DSP_GETSAMPLERATE_FUNC :: #type proc (dsp_state: ^DSP_STATE, rate: ^i32) -> RESULT
-DSP_GETBLOCKSIZE_FUNC :: #type proc (dsp_state: ^DSP_STATE, blocksize: ^u32) -> RESULT
-
-DSP_GETSPEAKERMODE_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- speakermode_mixer: ^SPEAKERMODE,
- speakermode_output: ^SPEAKERMODE,
-) -> RESULT
-
-DSP_GETCLOCK_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- clock: ^uint,
- offset: ^u32,
- length: ^u32,
-) -> RESULT
-
-DSP_GETLISTENERATTRIBUTES_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- numlisteners: ^i32,
- attributes: ^_3D_ATTRIBUTES,
-) -> RESULT
-
-DSP_GETUSERDATA_FUNC :: #type proc (dsp_state: ^DSP_STATE, userdata: ^rawptr) -> RESULT
-
-DSP_DFT_FFTREAL_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- size: i32,
- #by_ptr signal: f32,
- dft: ^COMPLEX,
- #by_ptr window: f32,
- signalhop: i32,
-) -> RESULT
-
-DSP_DFT_IFFTREAL_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- size: i32,
- #by_ptr dft: COMPLEX,
- signal: ^f32,
- #by_ptr window: f32,
- signalhop: i32,
-) -> RESULT
-
-DSP_PAN_SUMMONOMATRIX_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- sourceSpeakerMode: SPEAKERMODE,
- lowFrequencyGain: f32,
- overallGain: f32,
- _matrix: ^f32,
-) -> RESULT
-
-DSP_PAN_SUMSTEREOMATRIX_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- sourceSpeakerMode: SPEAKERMODE,
- pan: f32,
- lowFrequencyGain: f32,
- overallGain: f32,
- matrixHop: i32,
- _matrix: ^f32,
-) -> RESULT
-
-DSP_PAN_SUMSURROUNDMATRIX_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- sourceSpeakerMode: SPEAKERMODE,
- targetSpeakerMode: SPEAKERMODE,
- direction: f32,
- extent: f32,
- rotation: f32,
- lowFrequencyGain: f32,
- overallGain: f32,
- matrixHop: i32,
- _matrix: ^f32,
- flags: DSP_PAN_SURROUND_FLAGS,
-) -> RESULT
-
-DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- targetSpeakerMode: SPEAKERMODE,
- direction: f32,
- extent: f32,
- lowFrequencyGain: f32,
- overallGain: f32,
- matrixHop: i32,
- _matrix: ^f32,
-) -> RESULT
-
-DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- targetSpeakerMode: SPEAKERMODE,
- direction: f32,
- extent: f32,
- rotation: f32,
- lowFrequencyGain: f32,
- overallGain: f32,
- matrixHop: i32,
- _matrix: ^f32,
-) -> RESULT
-
-DSP_PAN_GETROLLOFFGAIN_FUNC :: #type proc (
- dsp_state: ^DSP_STATE,
- rolloff: DSP_PAN_3D_ROLLOFF_TYPE,
- distance: f32,
- mindistance: f32,
- maxdistance: f32,
- gain: ^f32,
-) -> RESULT
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// DSP Structures
-//
-
-DSP_BUFFER_ARRAY :: struct {
- numbuffers: i32,
- buffernumchannels: ^i32,
- bufferchannelmask: ^CHANNELMASK,
- buffers: ^^f32,
- speakermode: SPEAKERMODE,
-}
-
-COMPLEX :: struct {
- real: f32,
- imag: f32,
-}
-
-DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR :: struct {
- numpoints: i32,
- pointparamvalues: ^f32,
- pointpositions: ^f32,
-}
-
-DSP_PARAMETER_FLOAT_MAPPING :: struct {
- _type: DSP_PARAMETER_FLOAT_MAPPING_TYPE,
- piecewiselinearmapping: DSP_PARAMETER_FLOAT_MAPPING_PIECEWISE_LINEAR,
-}
-
-DSP_PARAMETER_DESC_FLOAT :: struct {
- min: f32,
- max: f32,
- defaultval: f32,
- mapping: DSP_PARAMETER_FLOAT_MAPPING,
-}
-
-DSP_PARAMETER_DESC_INT :: struct {
- min: i32,
- max: i32,
- defaultval: i32,
- goestoinf: b32,
- valuenames: [^]cstring,
-}
-
-DSP_PARAMETER_DESC_BOOL :: struct {
- defaultval: b32,
- valuenames: [^]cstring,
-}
-
-DSP_PARAMETER_DESC_DATA :: struct {
- datatype: i32,
-}
-
-DSP_PARAMETER_DESC :: struct {
- type: DSP_PARAMETER_TYPE,
- name: [16]u8,
- label: [16]u8,
- description: cstring,
- using data: struct #raw_union {
- floatdesc: DSP_PARAMETER_DESC_FLOAT,
- intdesc: DSP_PARAMETER_DESC_INT,
- booldesc: DSP_PARAMETER_DESC_BOOL,
- datadesc: DSP_PARAMETER_DESC_DATA,
- },
-}
-
-DSP_PARAMETER_OVERALLGAIN :: struct {
- linear_gain: f32,
- linear_gain_additive: f32,
-}
-
-DSP_PARAMETER_3DATTRIBUTES :: struct {
- relative: _3D_ATTRIBUTES,
- absolute: _3D_ATTRIBUTES,
-}
-
-DSP_PARAMETER_3DATTRIBUTES_MULTI :: struct {
- numlisteners: i32,
- relative: [MAX_LISTENERS]_3D_ATTRIBUTES,
- weight: [MAX_LISTENERS]f32,
- absolute: _3D_ATTRIBUTES,
-}
-
-DSP_PARAMETER_ATTENUATION_RANGE :: struct {
- min: f32,
- max: f32,
-}
-
-DSP_PARAMETER_SIDECHAIN :: struct {
- sidechainenable: b32,
-}
-
-DSP_PARAMETER_FFT :: struct {
- length: i32,
- numchannels: i32,
- spectrum: [32]^f32,
-}
-
-DSP_DESCRIPTION :: struct {
- pluginsdkversion: u32,
- name: [32]u8,
- version: u32,
- numinputbuffers: i32,
- numoutputbuffers: i32,
- create: DSP_CREATE_CALLBACK,
- release: DSP_RELEASE_CALLBACK,
- reset: DSP_RESET_CALLBACK,
- read: DSP_READ_CALLBACK,
- process: DSP_PROCESS_CALLBACK,
- setposition: DSP_SETPOSITION_CALLBACK,
- numparameters: i32,
- paramdesc: ^^DSP_PARAMETER_DESC,
- setparameterfloat: DSP_SETPARAM_FLOAT_CALLBACK,
- setparameterint: DSP_SETPARAM_INT_CALLBACK,
- setparameterbool: DSP_SETPARAM_BOOL_CALLBACK,
- setparameterdata: DSP_SETPARAM_DATA_CALLBACK,
- getparameterfloat: DSP_GETPARAM_FLOAT_CALLBACK,
- getparameterint: DSP_GETPARAM_INT_CALLBACK,
- getparameterbool: DSP_GETPARAM_BOOL_CALLBACK,
- getparameterdata: DSP_GETPARAM_DATA_CALLBACK,
- shouldiprocess: DSP_SHOULDIPROCESS_CALLBACK,
- userdata: rawptr,
- sys_register: DSP_SYSTEM_REGISTER_CALLBACK,
- sys_deregister: DSP_SYSTEM_DEREGISTER_CALLBACK,
- sys_mix: DSP_SYSTEM_MIX_CALLBACK,
-}
-
-DSP_STATE_DFT_FUNCTIONS :: struct {
- fftreal: DSP_DFT_FFTREAL_FUNC,
- inversefftreal: DSP_DFT_IFFTREAL_FUNC,
-}
-
-DSP_STATE_PAN_FUNCTIONS :: struct {
- summonomatrix: DSP_PAN_SUMMONOMATRIX_FUNC,
- sumstereomatrix: DSP_PAN_SUMSTEREOMATRIX_FUNC,
- sumsurroundmatrix: DSP_PAN_SUMSURROUNDMATRIX_FUNC,
- summonotosurroundmatrix: DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC,
- sumstereotosurroundmatrix: DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC,
- getrolloffgain: DSP_PAN_GETROLLOFFGAIN_FUNC,
-}
-
-DSP_STATE_FUNCTIONS :: struct {
- alloc: DSP_ALLOC_FUNC,
- realloc: DSP_REALLOC_FUNC,
- free: DSP_FREE_FUNC,
- getsamplerate: DSP_GETSAMPLERATE_FUNC,
- getblocksize: DSP_GETBLOCKSIZE_FUNC,
- dft: ^DSP_STATE_DFT_FUNCTIONS,
- pan: ^DSP_STATE_PAN_FUNCTIONS,
- getspeakermode: DSP_GETSPEAKERMODE_FUNC,
- getclock: DSP_GETCLOCK_FUNC,
- getlistenerattributes: DSP_GETLISTENERATTRIBUTES_FUNC,
- log: DSP_LOG_FUNC,
- getuserdata: DSP_GETUSERDATA_FUNC,
-}
-
-DSP_STATE :: struct {
- instance: rawptr,
- plugindata: rawptr,
- channelmask: CHANNELMASK,
- source_speakermode: SPEAKERMODE,
- sidechaindata: ^f32,
- sidechainchannels: i32,
- functions: [^]DSP_STATE_FUNCTIONS,
- systemobject: i32,
-}
-
-DSP_METERING_INFO :: struct {
- numsamples: i32,
- peaklevel: [32]f32,
- rmslevel: [32]f32,
- numchannels: i16,
-}
-*/
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// DSP Macros
-//
-
-/*
-#define DSP_INIT_PARAMDESC_FLOAT(_paramstruct, _name, _label, _description, _min, _max, _defaultval) \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_FLOAT, \
- strncpy((_paramstruct).name, _name, 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).floatdesc.min = _min, \
- (_paramstruct).floatdesc.max = _max, \
- (_paramstruct).floatdesc.defaultval = _defaultval, \
- (_paramstruct).floatdesc.mapping.type = DSP_PARAMETER_FLOAT_MAPPING_TYPE_AUTO,
-
-#define DSP_INIT_PARAMDESC_FLOAT_WITH_MAPPING(_paramstruct, _name, _label, _description, _defaultval, _values, _positions), \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_FLOAT, \
- strncpy((_paramstruct).name, _name , 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).floatdesc.min = _values[0], \
- (_paramstruct).floatdesc.max = _values[sizeof(_values) / sizeof(f32) - 1], \
- (_paramstruct).floatdesc.defaultval = _defaultval, \
- (_paramstruct).floatdesc.mapping.type = DSP_PARAMETER_FLOAT_MAPPING_TYPE_PIECEWISE_LINEAR, \
- (_paramstruct).floatdesc.mapping.piecewiselinearmapping.numpoints = sizeof(_values) / sizeof(f32), \
- (_paramstruct).floatdesc.mapping.piecewiselinearmapping.pointparamvalues = _values, \
- (_paramstruct).floatdesc.mapping.piecewiselinearmapping.pointpositions = _positions,
-
-#define DSP_INIT_PARAMDESC_INT(_paramstruct, _name, _label, _description, _min, _max, _defaultval, _goestoinf, _valuenames) \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_INT, \
- strncpy((_paramstruct).name, _name , 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).intdesc.min = _min, \
- (_paramstruct).intdesc.max = _max, \
- (_paramstruct).intdesc.defaultval = _defaultval, \
- (_paramstruct).intdesc.goestoinf = _goestoinf, \
- (_paramstruct).intdesc.valuenames = _valuenames,
-
-#define DSP_INIT_PARAMDESC_INT_ENUMERATED(_paramstruct, _name, _label, _description, _defaultval, _valuenames) \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_INT, \
- strncpy((_paramstruct).name, _name , 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).intdesc.min = 0, \
- (_paramstruct).intdesc.max = sizeof(_valuenames) / sizeof(u8*) - 1, \
- (_paramstruct).intdesc.defaultval = _defaultval, \
- (_paramstruct).intdesc.goestoinf = false, \
- (_paramstruct).intdesc.valuenames = _valuenames,
-
-#define DSP_INIT_PARAMDESC_BOOL(_paramstruct, _name, _label, _description, _defaultval, _valuenames) \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_BOOL, \
- strncpy((_paramstruct).name, _name , 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).booldesc.defaultval = _defaultval, \
- (_paramstruct).booldesc.valuenames = _valuenames,
-
-#define DSP_INIT_PARAMDESC_DATA(_paramstruct, _name, _label, _description, _datatype) \
- memset(&(_paramstruct), 0, sizeof(_paramstruct)), \
- (_paramstruct).type = DSP_PARAMETER_TYPE_DATA, \
- strncpy((_paramstruct).name, _name , 15), \
- strncpy((_paramstruct).label, _label, 15), \
- (_paramstruct).description = _description, \
- (_paramstruct).datadesc.datatype = _datatype,
-
-#define DSP_ALLOC(_state, _size) \
- (_state)->functions->alloc(_size, MEMORY_NORMAL, __FILE__)
-#define DSP_REALLOC(_state, _ptr, _size) \
- (_state)->functions->realloc(_ptr, _size, MEMORY_NORMAL, __FILE__)
-#define DSP_FREE(_state, _ptr) \
- (_state)->functions->free(_ptr, MEMORY_NORMAL, __FILE__)
-#define DSP_LOG(_state, _level, _location, _format, #c_vararg args: ..any) \
- (_state)->functions->log(_level, __FILE__, __LINE__, _location, _format, __VA_ARGS__)
-#define DSP_GETSAMPLERATE(_state, _rate) \
- (_state)->functions->getsamplerate(_state, _rate)
-#define DSP_GETBLOCKSIZE(_state, _blocksize) \
- (_state)->functions->getblocksize(_state, _blocksize)
-#define DSP_GETSPEAKERMODE(_state, _speakermodemix, _speakermodeout) \
- (_state)->functions->getspeakermode(_state, _speakermodemix, _speakermodeout)
-#define DSP_GETCLOCK(_state, _clock, _offset, _length) \
- (_state)->functions->getclock(_state, _clock, _offset, _length)
-#define DSP_GETLISTENERATTRIBUTES(_state, _numlisteners, _attributes) \
- (_state)->functions->getlistenerattributes(_state, _numlisteners, _attributes)
-#define DSP_GETUSERDATA(_state, _userdata) \
- (_state)->functions->getuserdata(_state, _userdata)
-#define DSP_DFT_FFTREAL(_state, _size, _signal, _dft, _window, _signalhop) \
- (_state)->functions->dft->fftreal(_state, _size, _signal, _dft, _window, _signalhop)
-#define DSP_DFT_IFFTREAL(_state, _size, _dft, _signal, _window, _signalhop) \
- (_state)->functions->dft->inversefftreal(_state, _size, _dft, _signal, _window, _signalhop)
-#define DSP_PAN_SUMMONOMATRIX(_state, _sourcespeakermode, _lowfrequencygain, _overallgain, _matrix) \
- (_state)->functions->pan->summonomatrix(_state, _sourcespeakermode, _lowfrequencygain, _overallgain, _matrix)
-#define DSP_PAN_SUMSTEREOMATRIX(_state, _sourcespeakermode, _pan, _lowfrequencygain, _overallgain, _matrixhop, _matrix) \
- (_state)->functions->pan->sumstereomatrix(_state, _sourcespeakermode, _pan, _lowfrequencygain, _overallgain, _matrixhop, _matrix)
-#define DSP_PAN_SUMSURROUNDMATRIX(_state, _sourcespeakermode, _targetspeakermode, _direction, _extent, _rotation, _lowfrequencygain, _overallgain, _matrixhop, _matrix, _flags) \
- (_state)->functions->pan->sumsurroundmatrix(_state, _sourcespeakermode, _targetspeakermode, _direction, _extent, _rotation, _lowfrequencygain, _overallgain, _matrixhop, _matrix, _flags)
-#define DSP_PAN_SUMMONOTOSURROUNDMATRIX(_state, _targetspeakermode, _direction, _extent, _lowfrequencygain, _overallgain, _matrixhop, _matrix) \
- (_state)->functions->pan->summonotosurroundmatrix(_state, _targetspeakermode, _direction, _extent, _lowfrequencygain, _overallgain, _matrixhop, _matrix)
-#define DSP_PAN_SUMSTEREOTOSURROUNDMATRIX(_state, _targetspeakermode, _direction, _extent, _rotation, _lowfrequencygain, _overallgain, matrixhop, _matrix) \
- (_state)->functions->pan->sumstereotosurroundmatrix(_state, _targetspeakermode, _direction, _extent, _rotation, _lowfrequencygain, _overallgain, matrixhop, _matrix)
-#define DSP_PAN_GETROLLOFFGAIN(_state, _rolloff, _distance, _mindistance, _maxdistance, _gain) \
- (_state)->functions->pan->getrolloffgain(_state, _rolloff, _distance, _mindistance, _maxdistance, _gain)
-
-#endif
-
-*/
\ No newline at end of file
diff --git a/sauce/fmod/core/fmod_dsp_effects.odin b/sauce/fmod/core/fmod_dsp_effects.odin
index 1869eb0..3015241 100644
--- a/sauce/fmod/core/fmod_dsp_effects.odin
+++ b/sauce/fmod/core/fmod_dsp_effects.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ============================================================================================================= */
diff --git a/sauce/fmod/core/fmod_dsp_effects_darwin.odin b/sauce/fmod/core/fmod_dsp_effects_darwin.odin
deleted file mode 100644
index 3015241..0000000
--- a/sauce/fmod/core/fmod_dsp_effects_darwin.odin
+++ /dev/null
@@ -1,524 +0,0 @@
-package fmod_core
-
-/* ============================================================================================================= */
-/* FMOD Core API - Built-in effects header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* In this header you can find parameter structures for FMOD system registered DSP effects */
-/* and generators. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/core-api-common-dsp-effects.html#fmod_dsp_type */
-/* ============================================================================================================= */
-
-DSP_TYPE :: enum i32 {
- DSP_TYPE_UNKNOWN,
- DSP_TYPE_MIXER,
- DSP_TYPE_OSCILLATOR,
- DSP_TYPE_LOWPASS,
- DSP_TYPE_ITLOWPASS,
- DSP_TYPE_HIGHPASS,
- DSP_TYPE_ECHO,
- DSP_TYPE_FADER,
- DSP_TYPE_FLANGE,
- DSP_TYPE_DISTORTION,
- DSP_TYPE_NORMALIZE,
- DSP_TYPE_LIMITER,
- DSP_TYPE_PARAMEQ,
- DSP_TYPE_PITCHSHIFT,
- DSP_TYPE_CHORUS,
- DSP_TYPE_VSTPLUGIN,
- DSP_TYPE_WINAMPPLUGIN,
- DSP_TYPE_ITECHO,
- DSP_TYPE_COMPRESSOR,
- DSP_TYPE_SFXREVERB,
- DSP_TYPE_LOWPASS_SIMPLE,
- DSP_TYPE_DELAY,
- DSP_TYPE_TREMOLO,
- DSP_TYPE_LADSPAPLUGIN,
- DSP_TYPE_SEND,
- DSP_TYPE_RETURN,
- DSP_TYPE_HIGHPASS_SIMPLE,
- DSP_TYPE_PAN,
- DSP_TYPE_THREE_EQ,
- DSP_TYPE_FFT,
- DSP_TYPE_LOUDNESS_METER,
- DSP_TYPE_ENVELOPEFOLLOWER,
- DSP_TYPE_CONVOLUTIONREVERB,
- DSP_TYPE_CHANNELMIX,
- DSP_TYPE_TRANSCEIVER,
- DSP_TYPE_OBJECTPAN,
- DSP_TYPE_MULTIBAND_EQ,
-
- DSP_TYPE_MAX,
-}
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD built in effect parameters.
-//
-// Use DSP::setParameter with these enums for the 'index' parameter.
-//
-
-DSP_OSCILLATOR :: enum i32 {
- DSP_OSCILLATOR_TYPE,
- DSP_OSCILLATOR_RATE,
-}
-
-
-DSP_LOWPASS :: enum i32 {
- DSP_LOWPASS_CUTOFF,
- DSP_LOWPASS_RESONANCE,
-}
-
-
-DSP_ITLOWPASS :: enum i32 {
- DSP_ITLOWPASS_CUTOFF,
- DSP_ITLOWPASS_RESONANCE,
-}
-
-
-DSP_HIGHPASS :: enum i32 {
- DSP_HIGHPASS_CUTOFF,
- DSP_HIGHPASS_RESONANCE,
-}
-
-
-DSP_ECHO :: enum i32 {
- DSP_ECHO_DELAY,
- DSP_ECHO_FEEDBACK,
- DSP_ECHO_DRYLEVEL,
- DSP_ECHO_WETLEVEL,
-}
-
-
-DSP_FADER :: enum i32 {
- DSP_FADER_GAIN,
- DSP_FADER_OVERALL_GAIN,
-}
-
-
-DSP_FLANGE :: enum i32 {
- DSP_FLANGE_MIX,
- DSP_FLANGE_DEPTH,
- DSP_FLANGE_RATE,
-}
-
-
-DSP_DISTORTION :: enum i32 {
- DSP_DISTORTION_LEVEL,
-}
-
-
-DSP_NORMALIZE :: enum i32 {
- DSP_NORMALIZE_FADETIME,
- DSP_NORMALIZE_THRESHOLD,
- DSP_NORMALIZE_MAXAMP,
-}
-
-
-DSP_LIMITER :: enum i32 {
- DSP_LIMITER_RELEASETIME,
- DSP_LIMITER_CEILING,
- DSP_LIMITER_MAXIMIZERGAIN,
- DSP_LIMITER_MODE,
-}
-
-
-DSP_PARAMEQ :: enum i32 {
- DSP_PARAMEQ_CENTER,
- DSP_PARAMEQ_BANDWIDTH,
- DSP_PARAMEQ_GAIN,
-}
-
-
-DSP_MULTIBAND_EQ :: enum i32 {
- DSP_MULTIBAND_EQ_A_FILTER,
- DSP_MULTIBAND_EQ_A_FREQUENCY,
- DSP_MULTIBAND_EQ_A_Q,
- DSP_MULTIBAND_EQ_A_GAIN,
- DSP_MULTIBAND_EQ_B_FILTER,
- DSP_MULTIBAND_EQ_B_FREQUENCY,
- DSP_MULTIBAND_EQ_B_Q,
- DSP_MULTIBAND_EQ_B_GAIN,
- DSP_MULTIBAND_EQ_C_FILTER,
- DSP_MULTIBAND_EQ_C_FREQUENCY,
- DSP_MULTIBAND_EQ_C_Q,
- DSP_MULTIBAND_EQ_C_GAIN,
- DSP_MULTIBAND_EQ_D_FILTER,
- DSP_MULTIBAND_EQ_D_FREQUENCY,
- DSP_MULTIBAND_EQ_D_Q,
- DSP_MULTIBAND_EQ_D_GAIN,
- DSP_MULTIBAND_EQ_E_FILTER,
- DSP_MULTIBAND_EQ_E_FREQUENCY,
- DSP_MULTIBAND_EQ_E_Q,
- DSP_MULTIBAND_EQ_E_GAIN,
-}
-
-
-DSP_MULTIBAND_EQ_FILTER_TYPE :: enum i32 {
- DSP_MULTIBAND_EQ_FILTER_DISABLED,
- DSP_MULTIBAND_EQ_FILTER_LOWPASS_12DB,
- DSP_MULTIBAND_EQ_FILTER_LOWPASS_24DB,
- DSP_MULTIBAND_EQ_FILTER_LOWPASS_48DB,
- DSP_MULTIBAND_EQ_FILTER_HIGHPASS_12DB,
- DSP_MULTIBAND_EQ_FILTER_HIGHPASS_24DB,
- DSP_MULTIBAND_EQ_FILTER_HIGHPASS_48DB,
- DSP_MULTIBAND_EQ_FILTER_LOWSHELF,
- DSP_MULTIBAND_EQ_FILTER_HIGHSHELF,
- DSP_MULTIBAND_EQ_FILTER_PEAKING,
- DSP_MULTIBAND_EQ_FILTER_BANDPASS,
- DSP_MULTIBAND_EQ_FILTER_NOTCH,
- DSP_MULTIBAND_EQ_FILTER_ALLPASS,
-}
-
-
-DSP_PITCHSHIFT :: enum i32 {
- DSP_PITCHSHIFT_PITCH,
- DSP_PITCHSHIFT_FFTSIZE,
- DSP_PITCHSHIFT_OVERLAP,
- DSP_PITCHSHIFT_MAXCHANNELS,
-}
-
-
-DSP_CHORUS :: enum i32 {
- DSP_CHORUS_MIX,
- DSP_CHORUS_RATE,
- DSP_CHORUS_DEPTH,
-}
-
-
-DSP_ITECHO :: enum i32 {
- DSP_ITECHO_WETDRYMIX,
- DSP_ITECHO_FEEDBACK,
- DSP_ITECHO_LEFTDELAY,
- DSP_ITECHO_RIGHTDELAY,
- DSP_ITECHO_PANDELAY,
-}
-
-DSP_COMPRESSOR :: enum i32 {
- DSP_COMPRESSOR_THRESHOLD,
- DSP_COMPRESSOR_RATIO,
- DSP_COMPRESSOR_ATTACK,
- DSP_COMPRESSOR_RELEASE,
- DSP_COMPRESSOR_GAINMAKEUP,
- DSP_COMPRESSOR_USESIDECHAIN,
- DSP_COMPRESSOR_LINKED,
-}
-
-DSP_SFXREVERB :: enum i32 {
- DSP_SFXREVERB_DECAYTIME,
- DSP_SFXREVERB_EARLYDELAY,
- DSP_SFXREVERB_LATEDELAY,
- DSP_SFXREVERB_HFREFERENCE,
- DSP_SFXREVERB_HFDECAYRATIO,
- DSP_SFXREVERB_DIFFUSION,
- DSP_SFXREVERB_DENSITY,
- DSP_SFXREVERB_LOWSHELFFREQUENCY,
- DSP_SFXREVERB_LOWSHELFGAIN,
- DSP_SFXREVERB_HIGHCUT,
- DSP_SFXREVERB_EARLYLATEMIX,
- DSP_SFXREVERB_WETLEVEL,
- DSP_SFXREVERB_DRYLEVEL,
-}
-
-DSP_LOWPASS_SIMPLE :: enum i32 {
- DSP_LOWPASS_SIMPLE_CUTOFF,
-}
-
-
-DSP_DELAY :: enum i32 {
- DSP_DELAY_CH0,
- DSP_DELAY_CH1,
- DSP_DELAY_CH2,
- DSP_DELAY_CH3,
- DSP_DELAY_CH4,
- DSP_DELAY_CH5,
- DSP_DELAY_CH6,
- DSP_DELAY_CH7,
- DSP_DELAY_CH8,
- DSP_DELAY_CH9,
- DSP_DELAY_CH10,
- DSP_DELAY_CH11,
- DSP_DELAY_CH12,
- DSP_DELAY_CH13,
- DSP_DELAY_CH14,
- DSP_DELAY_CH15,
- DSP_DELAY_MAXDELAY,
-}
-
-
-DSP_TREMOLO :: enum i32 {
- DSP_TREMOLO_FREQUENCY,
- DSP_TREMOLO_DEPTH,
- DSP_TREMOLO_SHAPE,
- DSP_TREMOLO_SKEW,
- DSP_TREMOLO_DUTY,
- DSP_TREMOLO_SQUARE,
- DSP_TREMOLO_PHASE,
- DSP_TREMOLO_SPREAD,
-}
-
-
-DSP_SEND :: enum i32 {
- DSP_SEND_RETURNID,
- DSP_SEND_LEVEL,
-}
-
-
-DSP_RETURN :: enum i32 {
- DSP_RETURN_ID,
- DSP_RETURN_INPUT_SPEAKER_MODE,
-}
-
-
-DSP_HIGHPASS_SIMPLE :: enum i32 {
- DSP_HIGHPASS_SIMPLE_CUTOFF,
-}
-
-
-DSP_PAN_2D_STEREO_MODE_TYPE :: enum i32 {
- DSP_PAN_2D_STEREO_MODE_DISTRIBUTED,
- DSP_PAN_2D_STEREO_MODE_DISCRETE,
-}
-
-
-DSP_PAN_MODE_TYPE :: enum i32 {
- DSP_PAN_MODE_MONO,
- DSP_PAN_MODE_STEREO,
- DSP_PAN_MODE_SURROUND,
-}
-
-
-DSP_PAN_3D_ROLLOFF_TYPE :: enum i32 {
- DSP_PAN_3D_ROLLOFF_LINEARSQUARED,
- DSP_PAN_3D_ROLLOFF_LINEAR,
- DSP_PAN_3D_ROLLOFF_INVERSE,
- DSP_PAN_3D_ROLLOFF_INVERSETAPERED,
- DSP_PAN_3D_ROLLOFF_CUSTOM,
-}
-
-
-DSP_PAN_3D_EXTENT_MODE_TYPE :: enum i32 {
- DSP_PAN_3D_EXTENT_MODE_AUTO,
- DSP_PAN_3D_EXTENT_MODE_USER,
- DSP_PAN_3D_EXTENT_MODE_OFF,
-}
-
-
-DSP_PAN :: enum i32 {
- DSP_PAN_MODE,
- DSP_PAN_2D_STEREO_POSITION,
- DSP_PAN_2D_DIRECTION,
- DSP_PAN_2D_EXTENT,
- DSP_PAN_2D_ROTATION,
- DSP_PAN_2D_LFE_LEVEL,
- DSP_PAN_2D_STEREO_MODE,
- DSP_PAN_2D_STEREO_SEPARATION,
- DSP_PAN_2D_STEREO_AXIS,
- DSP_PAN_ENABLED_SPEAKERS,
- DSP_PAN_3D_POSITION,
- DSP_PAN_3D_ROLLOFF,
- DSP_PAN_3D_MIN_DISTANCE,
- DSP_PAN_3D_MAX_DISTANCE,
- DSP_PAN_3D_EXTENT_MODE,
- DSP_PAN_3D_SOUND_SIZE,
- DSP_PAN_3D_MIN_EXTENT,
- DSP_PAN_3D_PAN_BLEND,
- DSP_PAN_LFE_UPMIX_ENABLED,
- DSP_PAN_OVERALL_GAIN,
- DSP_PAN_SURROUND_SPEAKER_MODE,
- DSP_PAN_2D_HEIGHT_BLEND,
- DSP_PAN_ATTENUATION_RANGE,
- DSP_PAN_OVERRIDE_RANGE,
-}
-
-
-DSP_THREE_EQ_CROSSOVERSLOPE_TYPE :: enum i32 {
- DSP_THREE_EQ_CROSSOVERSLOPE_12DB,
- DSP_THREE_EQ_CROSSOVERSLOPE_24DB,
- DSP_THREE_EQ_CROSSOVERSLOPE_48DB,
-}
-
-
-DSP_THREE_EQ :: enum i32 {
- DSP_THREE_EQ_LOWGAIN,
- DSP_THREE_EQ_MIDGAIN,
- DSP_THREE_EQ_HIGHGAIN,
- DSP_THREE_EQ_LOWCROSSOVER,
- DSP_THREE_EQ_HIGHCROSSOVER,
- DSP_THREE_EQ_CROSSOVERSLOPE,
-}
-
-
-DSP_FFT_WINDOW :: enum i32 {
- DSP_FFT_WINDOW_RECT,
- DSP_FFT_WINDOW_TRIANGLE,
- DSP_FFT_WINDOW_HAMMING,
- DSP_FFT_WINDOW_HANNING,
- DSP_FFT_WINDOW_BLACKMAN,
- DSP_FFT_WINDOW_BLACKMANHARRIS,
-}
-
-
-DSP_FFT :: enum i32 {
- DSP_FFT_WINDOWSIZE,
- DSP_FFT_WINDOWTYPE,
- DSP_FFT_SPECTRUMDATA,
- DSP_FFT_DOMINANT_FREQ,
-}
-
-DSP_LOUDNESS_METER_HISTOGRAM_SAMPLES :: 66
-
-DSP_LOUDNESS_METER :: enum i32 {
- DSP_LOUDNESS_METER_STATE,
- DSP_LOUDNESS_METER_WEIGHTING,
- DSP_LOUDNESS_METER_INFO,
-}
-
-
-DSP_LOUDNESS_METER_STATE_TYPE :: enum i32 {
- DSP_LOUDNESS_METER_STATE_RESET_INTEGRATED = -3,
- DSP_LOUDNESS_METER_STATE_RESET_MAXPEAK = -2,
- DSP_LOUDNESS_METER_STATE_RESET_ALL = -1,
- DSP_LOUDNESS_METER_STATE_PAUSED = 0,
- DSP_LOUDNESS_METER_STATE_ANALYZING = 1,
-}
-
-DSP_LOUDNESS_METER_INFO_TYPE :: struct {
- momentaryloudness: f32,
- shorttermloudness: f32,
- integratedloudness: f32,
- loudness10thpercentile: f32,
- loudness95thpercentile: f32,
- loudnesshistogram: [DSP_LOUDNESS_METER_HISTOGRAM_SAMPLES]f32,
- maxtruepeak: f32,
- maxmomentaryloudness: f32,
-}
-
-DSP_LOUDNESS_METER_WEIGHTING_TYPE :: struct {
- channelweight: [32]f32,
-}
-
-
-DSP_ENVELOPEFOLLOWER :: enum i32 {
- DSP_ENVELOPEFOLLOWER_ATTACK,
- DSP_ENVELOPEFOLLOWER_RELEASE,
- DSP_ENVELOPEFOLLOWER_ENVELOPE,
- DSP_ENVELOPEFOLLOWER_USESIDECHAIN
-}
-
-DSP_CONVOLUTION_REVERB :: enum i32 {
- DSP_CONVOLUTION_REVERB_PARAM_IR,
- DSP_CONVOLUTION_REVERB_PARAM_WET,
- DSP_CONVOLUTION_REVERB_PARAM_DRY,
- DSP_CONVOLUTION_REVERB_PARAM_LINKED
-}
-
-DSP_CHANNELMIX_OUTPUT :: enum i32 {
- DSP_CHANNELMIX_OUTPUT_DEFAULT,
- DSP_CHANNELMIX_OUTPUT_ALLMONO,
- DSP_CHANNELMIX_OUTPUT_ALLSTEREO,
- DSP_CHANNELMIX_OUTPUT_ALLQUAD,
- DSP_CHANNELMIX_OUTPUT_ALL5POINT1,
- DSP_CHANNELMIX_OUTPUT_ALL7POINT1,
- DSP_CHANNELMIX_OUTPUT_ALLLFE,
- DSP_CHANNELMIX_OUTPUT_ALL7POINT1POINT4
-}
-
-DSP_CHANNELMIX :: enum i32 {
- DSP_CHANNELMIX_OUTPUTGROUPING,
- DSP_CHANNELMIX_GAIN_CH0,
- DSP_CHANNELMIX_GAIN_CH1,
- DSP_CHANNELMIX_GAIN_CH2,
- DSP_CHANNELMIX_GAIN_CH3,
- DSP_CHANNELMIX_GAIN_CH4,
- DSP_CHANNELMIX_GAIN_CH5,
- DSP_CHANNELMIX_GAIN_CH6,
- DSP_CHANNELMIX_GAIN_CH7,
- DSP_CHANNELMIX_GAIN_CH8,
- DSP_CHANNELMIX_GAIN_CH9,
- DSP_CHANNELMIX_GAIN_CH10,
- DSP_CHANNELMIX_GAIN_CH11,
- DSP_CHANNELMIX_GAIN_CH12,
- DSP_CHANNELMIX_GAIN_CH13,
- DSP_CHANNELMIX_GAIN_CH14,
- DSP_CHANNELMIX_GAIN_CH15,
- DSP_CHANNELMIX_GAIN_CH16,
- DSP_CHANNELMIX_GAIN_CH17,
- DSP_CHANNELMIX_GAIN_CH18,
- DSP_CHANNELMIX_GAIN_CH19,
- DSP_CHANNELMIX_GAIN_CH20,
- DSP_CHANNELMIX_GAIN_CH21,
- DSP_CHANNELMIX_GAIN_CH22,
- DSP_CHANNELMIX_GAIN_CH23,
- DSP_CHANNELMIX_GAIN_CH24,
- DSP_CHANNELMIX_GAIN_CH25,
- DSP_CHANNELMIX_GAIN_CH26,
- DSP_CHANNELMIX_GAIN_CH27,
- DSP_CHANNELMIX_GAIN_CH28,
- DSP_CHANNELMIX_GAIN_CH29,
- DSP_CHANNELMIX_GAIN_CH30,
- DSP_CHANNELMIX_GAIN_CH31,
- DSP_CHANNELMIX_OUTPUT_CH0,
- DSP_CHANNELMIX_OUTPUT_CH1,
- DSP_CHANNELMIX_OUTPUT_CH2,
- DSP_CHANNELMIX_OUTPUT_CH3,
- DSP_CHANNELMIX_OUTPUT_CH4,
- DSP_CHANNELMIX_OUTPUT_CH5,
- DSP_CHANNELMIX_OUTPUT_CH6,
- DSP_CHANNELMIX_OUTPUT_CH7,
- DSP_CHANNELMIX_OUTPUT_CH8,
- DSP_CHANNELMIX_OUTPUT_CH9,
- DSP_CHANNELMIX_OUTPUT_CH10,
- DSP_CHANNELMIX_OUTPUT_CH11,
- DSP_CHANNELMIX_OUTPUT_CH12,
- DSP_CHANNELMIX_OUTPUT_CH13,
- DSP_CHANNELMIX_OUTPUT_CH14,
- DSP_CHANNELMIX_OUTPUT_CH15,
- DSP_CHANNELMIX_OUTPUT_CH16,
- DSP_CHANNELMIX_OUTPUT_CH17,
- DSP_CHANNELMIX_OUTPUT_CH18,
- DSP_CHANNELMIX_OUTPUT_CH19,
- DSP_CHANNELMIX_OUTPUT_CH20,
- DSP_CHANNELMIX_OUTPUT_CH21,
- DSP_CHANNELMIX_OUTPUT_CH22,
- DSP_CHANNELMIX_OUTPUT_CH23,
- DSP_CHANNELMIX_OUTPUT_CH24,
- DSP_CHANNELMIX_OUTPUT_CH25,
- DSP_CHANNELMIX_OUTPUT_CH26,
- DSP_CHANNELMIX_OUTPUT_CH27,
- DSP_CHANNELMIX_OUTPUT_CH28,
- DSP_CHANNELMIX_OUTPUT_CH29,
- DSP_CHANNELMIX_OUTPUT_CH30,
- DSP_CHANNELMIX_OUTPUT_CH31
-}
-
-DSP_TRANSCEIVER_SPEAKERMODE :: enum i32 {
- DSP_TRANSCEIVER_SPEAKERMODE_AUTO = -1,
- DSP_TRANSCEIVER_SPEAKERMODE_MONO = 0,
- DSP_TRANSCEIVER_SPEAKERMODE_STEREO,
- DSP_TRANSCEIVER_SPEAKERMODE_SURROUND,
-}
-
-
-DSP_TRANSCEIVER :: enum i32 {
- DSP_TRANSCEIVER_TRANSMIT,
- DSP_TRANSCEIVER_GAIN,
- DSP_TRANSCEIVER_CHANNEL,
- DSP_TRANSCEIVER_TRANSMITSPEAKERMODE
-}
-
-
-DSP_OBJECTPAN :: enum i32 {
- DSP_OBJECTPAN_3D_POSITION,
- DSP_OBJECTPAN_3D_ROLLOFF,
- DSP_OBJECTPAN_3D_MIN_DISTANCE,
- DSP_OBJECTPAN_3D_MAX_DISTANCE,
- DSP_OBJECTPAN_3D_EXTENT_MODE,
- DSP_OBJECTPAN_3D_SOUND_SIZE,
- DSP_OBJECTPAN_3D_MIN_EXTENT,
- DSP_OBJECTPAN_OVERALL_GAIN,
- DSP_OBJECTPAN_OUTPUTGAIN,
- DSP_OBJECTPAN_ATTENUATION_RANGE,
- DSP_OBJECTPAN_OVERRIDE_RANGE
-}
\ No newline at end of file
diff --git a/sauce/fmod/core/fmod_errors.odin b/sauce/fmod/core/fmod_errors.odin
index 8dadd2e..1eb5af5 100644
--- a/sauce/fmod/core/fmod_errors.odin
+++ b/sauce/fmod/core/fmod_errors.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ============================================================================================== */
diff --git a/sauce/fmod/core/fmod_errors_darwin.odin b/sauce/fmod/core/fmod_errors_darwin.odin
deleted file mode 100644
index 1eb5af5..0000000
--- a/sauce/fmod/core/fmod_errors_darwin.odin
+++ /dev/null
@@ -1,102 +0,0 @@
-package fmod_core
-
-/* ============================================================================================== */
-/* FMOD Core / Studio API - Error string header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* Use this header if you want to store or display a string version / english explanation */
-/* of the FMOD error codes. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/core-api-common.html#fmod_result */
-/* =============================================================================================== */
-
-error_string :: proc(errcode: RESULT) -> string {
- // odinfmt: disable
- switch errcode {
- case .OK: return "No errors."
- case .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 .ERR_CHANNEL_ALLOC: return "Error trying to allocate a channel."
- case .ERR_CHANNEL_STOLEN: return "The specified channel has been reused to play another sound."
- case .ERR_DMA: return "DMA Failure. See debug output for more information."
- case .ERR_DSP_CONNECTION: return "DSP connection error. Connection possibly caused a cyclic dependency or connected dsps with incompatible buffer counts."
- case .ERR_DSP_DONTPROCESS: return "DSP return code from a DSP process query callback. Tells mixer not to call the process callback and therefore not consume CPU. Use this to optimize the DSP graph."
- case .ERR_DSP_FORMAT: return "DSP Format error. A DSP unit may have attempted to connect to this network with the wrong format, or a matrix may have been set with the wrong size if the target unit has a specified channel map."
- case .ERR_DSP_INUSE: return "DSP is already in the mixer's DSP network. It must be removed before being reinserted or released."
- case .ERR_DSP_NOTFOUND: return "DSP connection error. Couldn't find the DSP unit specified."
- case .ERR_DSP_RESERVED: return "DSP operation error. Cannot perform operation on this DSP as it is reserved by the system."
- case .ERR_DSP_SILENCE: return "DSP return code from a DSP process query callback. Tells mixer silence would be produced from read, so go idle and not consume CPU. Use this to optimize the DSP graph."
- case .ERR_DSP_TYPE: return "DSP operation cannot be performed on a DSP of this type."
- case .ERR_FILE_BAD: return "Error loading file."
- case .ERR_FILE_COULDNOTSEEK: return "Couldn't perform seek operation. This is a limitation of the medium (ie netstreams) or the file format."
- case .ERR_FILE_DISKEJECTED: return "Media was ejected while reading."
- case .ERR_FILE_EOF: return "End of file unexpectedly reached while trying to read essential data (truncated?)."
- case .ERR_FILE_ENDOFDATA: return "End of current chunk reached while trying to read data."
- case .ERR_FILE_NOTFOUND: return "File not found."
- case .ERR_FORMAT: return "Unsupported file or audio format."
- case .ERR_HEADER_MISMATCH: return "There is a version mismatch between the FMOD header and either the FMOD Studio library or the FMOD Low Level library."
- case .ERR_HTTP: return "A HTTP error occurred. This is a catch-all for HTTP errors not listed elsewhere."
- case .ERR_HTTP_ACCESS: return "The specified resource requires authentication or is forbidden."
- case .ERR_HTTP_PROXY_AUTH: return "Proxy authentication is required to access the specified resource."
- case .ERR_HTTP_SERVER_ERROR: return "A HTTP server error occurred."
- case .ERR_HTTP_TIMEOUT: return "The HTTP request timed out."
- case .ERR_INITIALIZATION: return "FMOD was not initialized correctly to support this function."
- case .ERR_INITIALIZED: return "Cannot call this command after System::init."
- case .ERR_INTERNAL: return "An error occurred that wasn't supposed to. Contact support."
- case .ERR_INVALID_FLOAT: return "Value passed in was a NaN, Inf or denormalized float."
- case .ERR_INVALID_HANDLE: return "An invalid object handle was used."
- case .ERR_INVALID_PARAM: return "An invalid parameter was passed to this function."
- case .ERR_INVALID_POSITION: return "An invalid seek position was passed to this function."
- case .ERR_INVALID_SPEAKER: return "An invalid speaker was passed to this function based on the current speaker mode."
- case .ERR_INVALID_SYNCPOINT: return "The syncpoint did not come from this sound handle."
- case .ERR_INVALID_THREAD: return "Tried to call a function on a thread that is not supported."
- case .ERR_INVALID_VECTOR: return "The vectors passed in are not unit length, or perpendicular."
- case .ERR_MAXAUDIBLE: return "Reached maximum audible playback count for this sound's soundgroup."
- case .ERR_MEMORY: return "Not enough memory or resources."
- case .ERR_MEMORY_CANTPOINT: return "Can't use .OPENMEMORY_POINT on non PCM source data, or non mp3/xma/adpcm data if .CREATECOMPRESSEDSAMPLE was used."
- case .ERR_NEEDS3D: return "Tried to call a command on a 2d sound when the command was meant for 3d sound."
- case .ERR_NEEDSHARDWARE: return "Tried to use a feature that requires hardware support."
- case .ERR_NET_CONNECT: return "Couldn't connect to the specified host."
- case .ERR_NET_SOCKET_ERROR: return "A socket error occurred. This is a catch-all for socket-related errors not listed elsewhere."
- case .ERR_NET_URL: return "The specified URL couldn't be resolved."
- case .ERR_NET_WOULD_BLOCK: return "Operation on a non-blocking socket could not complete immediately."
- case .ERR_NOTREADY: return "Operation could not be performed because specified sound/DSP connection is not ready."
- case .ERR_OUTPUT_ALLOCATED: return "Error initializing output device, but more specifically, the output device is already in use and cannot be reused."
- case .ERR_OUTPUT_CREATEBUFFER: return "Error creating hardware sound buffer."
- case .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 .ERR_OUTPUT_FORMAT: return "Soundcard does not support the specified format."
- case .ERR_OUTPUT_INIT: return "Error initializing output device."
- case .ERR_OUTPUT_NODRIVERS: return "The output device has no drivers installed. If pre-init, .OUTPUT_NOSOUND is selected as the output mode. If post-init, the function just fails."
- case .ERR_PLUGIN: return "An unspecified error has been returned from a plugin."
- case .ERR_PLUGIN_MISSING: return "A requested output, dsp unit type or codec was not available."
- case .ERR_PLUGIN_RESOURCE: return "A resource that the plugin requires cannot be allocated or found. (ie the DLS file for MIDI playback)"
- case .ERR_PLUGIN_VERSION: return "A plugin was built with an unsupported SDK version."
- case .ERR_RECORD: return "An error occurred trying to initialize the recording device."
- case .ERR_REVERB_CHANNELGROUP: return "Reverb properties cannot be set on this channel because a parent channelgroup owns the reverb connection."
- case .ERR_REVERB_INSTANCE: return "Specified instance in .REVERB_PROPERTIES couldn't be set. Most likely because it is an invalid instance number or the reverb doesn't exist."
- case .ERR_SUBSOUNDS: return "The error occurred 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."
- case .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 .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 .ERR_TAGNOTFOUND: return "The specified tag could not be found or there are no tags."
- case .ERR_TOOMANYCHANNELS: return "The sound created exceeds the allowable input channel count. This can be increased using the 'maxinputchannels' parameter in System::setSoftwareFormat."
- case .ERR_TRUNCATED: return "The retrieved string is too long to fit in the supplied buffer and has been truncated."
- case .ERR_UNIMPLEMENTED: return "Something in FMOD hasn't been implemented when it should be! contact support!"
- case .ERR_UNINITIALIZED: return "This command failed because System::init or System::setDriver was not called."
- case .ERR_UNSUPPORTED: return "A command issued was not supported by this object. Possibly a plugin without certain callbacks specified."
- case .ERR_VERSION: return "The version number of this file format is not supported."
- case .ERR_EVENT_ALREADY_LOADED: return "The specified bank has already been loaded."
- case .ERR_EVENT_LIVEUPDATE_BUSY: return "The live update connection failed due to the game already being connected."
- case .ERR_EVENT_LIVEUPDATE_MISMATCH: return "The live update connection failed due to the game data being out of sync with the tool."
- case .ERR_EVENT_LIVEUPDATE_TIMEOUT: return "The live update connection timed out."
- case .ERR_EVENT_NOTFOUND: return "The requested event, parameter, bus or vca could not be found."
- case .ERR_STUDIO_UNINITIALIZED: return "The Studio::System object is not yet initialized."
- case .ERR_STUDIO_NOT_LOADED: return "The specified resource is not loaded, so it can't be unloaded."
- case .ERR_INVALID_STRING: return "An invalid string was passed to this function."
- case .ERR_ALREADY_LOCKED: return "The specified resource is already locked."
- case .ERR_NOT_LOCKED: return "The specified resource is not locked, so it can't be unlocked."
- case .ERR_RECORD_DISCONNECTED: return "The specified recording driver has been disconnected."
- case .ERR_TOOMANYSAMPLES: return "The length provided exceeds the allowable limit."
- }
- // odinfmt: enable
- return "Unknown error."
-}
diff --git a/sauce/fmod/core/fmod_output.odin b/sauce/fmod/core/fmod_output.odin
index fb71a12..a9027e7 100644
--- a/sauce/fmod/core/fmod_output.odin
+++ b/sauce/fmod/core/fmod_output.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_core
/* ======================================================================================== */
@@ -33,12 +32,12 @@ OUTPUT_METHOD :: enum u32 {
// Output callbacks
//
-OUTPUT_GETNUMDRIVERS_CALLBACK :: #type proc "stdcall" (
+OUTPUT_GETNUMDRIVERS_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
numdrivers: ^i32,
) -> RESULT
-OUTPUT_GETDRIVERINFO_CALLBACK :: #type proc "stdcall" (
+OUTPUT_GETDRIVERINFO_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
id: i32,
name: [^]u8,
@@ -49,7 +48,7 @@ OUTPUT_GETDRIVERINFO_CALLBACK :: #type proc "stdcall" (
speakermodechannels: ^i32,
) -> RESULT
-OUTPUT_INIT_CALLBACK :: #type proc "stdcall" (
+OUTPUT_INIT_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
selecteddriver: i32,
flags: INITFLAGS,
@@ -63,35 +62,35 @@ OUTPUT_INIT_CALLBACK :: #type proc "stdcall" (
extradriverdata: rawptr,
) -> RESULT
-OUTPUT_START_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_STOP_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_CLOSE_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_UPDATE_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_GETHANDLE_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE, handle: ^rawptr) -> RESULT
-OUTPUT_MIXER_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_START_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_STOP_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_CLOSE_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_UPDATE_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_GETHANDLE_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE, handle: ^rawptr) -> RESULT
+OUTPUT_MIXER_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_OBJECT3DGETINFO_CALLBACK :: #type proc "stdcall" (
+OUTPUT_OBJECT3DGETINFO_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
maxhardwareobjects: ^i32,
) -> RESULT
-OUTPUT_OBJECT3DALLOC_CALLBACK :: #type proc "stdcall" (
+OUTPUT_OBJECT3DALLOC_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
object3d: ^rawptr,
) -> RESULT
-OUTPUT_OBJECT3DFREE_CALLBACK :: #type proc "stdcall" (
+OUTPUT_OBJECT3DFREE_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
object3d: rawptr,
) -> RESULT
-OUTPUT_OBJECT3DUPDATE_CALLBACK :: #type proc "stdcall" (
+OUTPUT_OBJECT3DUPDATE_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
object3d: rawptr,
#by_ptr info: OUTPUT_OBJECT3DINFO,
) -> RESULT
-OUTPUT_OPENPORT_CALLBACK :: #type proc "stdcall" (
+OUTPUT_OPENPORT_CALLBACK :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
portType: PORT_TYPE,
portIndex: PORT_INDEX,
@@ -101,27 +100,27 @@ OUTPUT_OPENPORT_CALLBACK :: #type proc "stdcall" (
portFormat: ^SOUND_FORMAT,
) -> RESULT
-OUTPUT_CLOSEPORT_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE, portId: i32) -> RESULT
-OUTPUT_DEVICELISTCHANGED_CALLBACK :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_CLOSEPORT_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE, portId: i32) -> RESULT
+OUTPUT_DEVICELISTCHANGED_CALLBACK :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_READFROMMIXER_FUNC :: #type proc "stdcall" (
+OUTPUT_READFROMMIXER_FUNC :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
buffer: rawptr,
length: u32,
) -> RESULT
-OUTPUT_COPYPORT_FUNC :: #type proc "stdcall" (
+OUTPUT_COPYPORT_FUNC :: #type proc "cdecl" (
output_state: ^OUTPUT_STATE,
portId: i32,
buffer: rawptr,
length: u32,
) -> RESULT
-OUTPUT_REQUESTRESET_FUNC :: #type proc "stdcall" (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_ALLOC_FUNC :: #type proc "stdcall" (size: u32, align: u32, file: cstring, line: i32) -> rawptr
-OUTPUT_FREE_FUNC :: #type proc "stdcall" (ptr: rawptr, file: cstring, line: i32)
+OUTPUT_REQUESTRESET_FUNC :: #type proc "cdecl" (output_state: ^OUTPUT_STATE) -> RESULT
+OUTPUT_ALLOC_FUNC :: #type proc "cdecl" (size: u32, align: u32, file: cstring, line: i32) -> rawptr
+OUTPUT_FREE_FUNC :: #type proc "cdecl" (ptr: rawptr, file: cstring, line: i32)
-OUTPUT_LOG_FUNC :: #type proc "stdcall" (
+OUTPUT_LOG_FUNC :: #type proc "cdecl" (
level: DEBUG_FLAGS,
file: cstring,
line: i32,
diff --git a/sauce/fmod/core/fmod_output_darwin.odin b/sauce/fmod/core/fmod_output_darwin.odin
deleted file mode 100644
index 83aa545..0000000
--- a/sauce/fmod/core/fmod_output_darwin.odin
+++ /dev/null
@@ -1,203 +0,0 @@
-package fmod_core
-
-/* ======================================================================================== */
-/* FMOD Core API - output development header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* 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. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/plugin-api-output.html */
-/* ======================================================================================== */
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Output constants
-//
-
-/*
-OUTPUT_PLUGIN_VERSION :: 5
-
-OUTPUT_METHOD :: enum u32 {
- MIX_DIRECT = 0,
- MIX_BUFFERED = 1,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Output callbacks
-//
-
-OUTPUT_GETNUMDRIVERS_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- numdrivers: ^i32,
-) -> RESULT
-
-OUTPUT_GETDRIVERINFO_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- id: i32,
- name: [^]u8,
- namelen: i32,
- guid: ^GUID,
- systemrate: ^i32,
- speakermode: ^SPEAKERMODE,
- speakermodechannels: ^i32,
-) -> RESULT
-
-OUTPUT_INIT_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- selecteddriver: i32,
- flags: INITFLAGS,
- outputrate: ^i32,
- speakermode: ^SPEAKERMODE,
- speakermodechannels: ^i32,
- outputformat: ^SOUND_FORMAT,
- dspbufferlength: i32,
- dspnumbuffers: ^i32,
- dspnumadditionalbuffers: ^i32,
- extradriverdata: rawptr,
-) -> RESULT
-
-OUTPUT_START_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_STOP_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_CLOSE_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_UPDATE_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_GETHANDLE_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE, handle: ^rawptr) -> RESULT
-OUTPUT_MIXER_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-
-OUTPUT_OBJECT3DGETINFO_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- maxhardwareobjects: ^i32,
-) -> RESULT
-
-OUTPUT_OBJECT3DALLOC_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- object3d: ^rawptr,
-) -> RESULT
-
-OUTPUT_OBJECT3DFREE_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- object3d: rawptr,
-) -> RESULT
-
-OUTPUT_OBJECT3DUPDATE_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- object3d: rawptr,
- #by_ptr info: OUTPUT_OBJECT3DINFO,
-) -> RESULT
-
-OUTPUT_OPENPORT_CALLBACK :: #type proc (
- output_state: ^OUTPUT_STATE,
- portType: PORT_TYPE,
- portIndex: PORT_INDEX,
- portId: ^i32,
- portRate: ^i32,
- portChannels: ^i32,
- portFormat: ^SOUND_FORMAT,
-) -> RESULT
-
-OUTPUT_CLOSEPORT_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE, portId: i32) -> RESULT
-OUTPUT_DEVICELISTCHANGED_CALLBACK :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-
-OUTPUT_READFROMMIXER_FUNC :: #type proc (
- output_state: ^OUTPUT_STATE,
- buffer: rawptr,
- length: u32,
-) -> RESULT
-
-OUTPUT_COPYPORT_FUNC :: #type proc (
- output_state: ^OUTPUT_STATE,
- portId: i32,
- buffer: rawptr,
- length: u32,
-) -> RESULT
-
-OUTPUT_REQUESTRESET_FUNC :: #type proc (output_state: ^OUTPUT_STATE) -> RESULT
-OUTPUT_ALLOC_FUNC :: #type proc (size: u32, align: u32, file: cstring, line: i32) -> rawptr
-OUTPUT_FREE_FUNC :: #type proc (ptr: rawptr, file: cstring, line: i32)
-
-/*
-OUTPUT_LOG_FUNC :: #type proc (
- level: DEBUG_FLAGS,
- file: cstring,
- line: i32,
- function: cstring,
- str: cstring,
- #c_vararg args: ..any,
-)
-*/
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Output structures
-//
-
-OUTPUT_DESCRIPTION :: struct {
- apiversion: u32,
- name: cstring,
- version: u32,
- method: OUTPUT_METHOD,
- getnumdrivers: OUTPUT_GETNUMDRIVERS_CALLBACK,
- getdriverinfo: OUTPUT_GETDRIVERINFO_CALLBACK,
- init: OUTPUT_INIT_CALLBACK,
- start: OUTPUT_START_CALLBACK,
- stop: OUTPUT_STOP_CALLBACK,
- close: OUTPUT_CLOSE_CALLBACK,
- update: OUTPUT_UPDATE_CALLBACK,
- gethandle: OUTPUT_GETHANDLE_CALLBACK,
- mixer: OUTPUT_MIXER_CALLBACK,
- object3dgetinfo: OUTPUT_OBJECT3DGETINFO_CALLBACK,
- object3dalloc: OUTPUT_OBJECT3DALLOC_CALLBACK,
- object3dfree: OUTPUT_OBJECT3DFREE_CALLBACK,
- object3dupdate: OUTPUT_OBJECT3DUPDATE_CALLBACK,
- openport: OUTPUT_OPENPORT_CALLBACK,
- closeport: OUTPUT_CLOSEPORT_CALLBACK,
- devicelistchanged: OUTPUT_DEVICELISTCHANGED_CALLBACK,
-}
-
-OUTPUT_STATE :: struct {
- plugindata: rawptr,
- readfrommixer: OUTPUT_READFROMMIXER_FUNC,
- alloc: OUTPUT_ALLOC_FUNC,
- free: OUTPUT_FREE_FUNC,
- log: OUTPUT_LOG_FUNC,
- copyport: OUTPUT_COPYPORT_FUNC,
- requestreset: OUTPUT_REQUESTRESET_FUNC,
-}
-
-OUTPUT_OBJECT3DINFO :: struct {
- buffer: [^]f32,
- bufferlength: u32,
- position: VECTOR,
- gain: f32,
- spread: f32,
- priority: f32,
-}
-*/
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// Output macros
-//
-
-/*
-#define OUTPUT_READFROMMIXER(_state, _buffer, _length) \
- (_state)->readfrommixer(_state, _buffer, _length)
-#define OUTPUT_ALLOC(_state, _size, _align) \
- (_state)->alloc(_size, _align, __FILE__, __LINE__)
-#define OUTPUT_FREE(_state, _ptr) \
- (_state)->free(_ptr, __FILE__, __LINE__)
-#define OUTPUT_LOG(_state, _level, _location, _format, ...) \
- (_state)->log(_level, __FILE__, __LINE__, _location, _format, ##__VA_ARGS__)
-#define OUTPUT_COPYPORT(_state, _id, _buffer, _length) \
- (_state)->copyport(_state, _id, _buffer, _length)
-#define OUTPUT_REQUESTRESET(_state) \
- (_state)->requestreset(_state)
-*/
diff --git a/sauce/fmod/core/fmod_web.odin b/sauce/fmod/core/fmod_web.odin
deleted file mode 100644
index 069e966..0000000
--- a/sauce/fmod/core/fmod_web.odin
+++ /dev/null
@@ -1,754 +0,0 @@
-#+build freestanding
-#+build wasm32, wasm64p32
-package fmod_core
-
-// ========================================================================================
-// FMOD Core API - C header file.
-// Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023.
-//
-// Use this header in conjunction with fmod_common.h (which contains all the constants /
-// callbacks) to develop using the C interface
-//
-// For more detail visit:
-// https://fmod.com/docs/2.02/api/core-api.html
-// ========================================================================================
-
-LOGGING_ENABLED :: #config(FMOD_LOGGING_ENABLED, ODIN_DEBUG)
-
-
-//foreign import lib "lib/wasm/fmod.wasm"
-
-@(default_calling_convention = "c", link_prefix = "FMOD_")
-foreign {
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // FMOD global system functions (optional).
- //
-
- Memory_Initialize :: proc(poolmem: rawptr, poollen: i32, useralloc: MEMORY_ALLOC_CALLBACK, userrealloc: MEMORY_REALLOC_CALLBACK, userfree: MEMORY_FREE_CALLBACK, memtypeflags: MEMORY_TYPE) -> RESULT ---
- Memory_GetStats :: proc(currentalloced: ^i32, maxalloced: ^i32, blocking: b32) -> RESULT ---
- Debug_Initialize :: proc(flags: DEBUG_FLAGS, mode: DEBUG_MODE, callback: DEBUG_CALLBACK, filename: cstring) -> RESULT ---
- File_SetDiskBusy :: proc(busy: i32) -> RESULT ---
- File_GetDiskBusy :: proc(busy: ^i32) -> RESULT ---
- Thread_SetAttributes :: proc(_type: THREAD_TYPE, affinity: THREAD_AFFINITY, priority: THREAD_PRIORITY, stacksize: THREAD_STACK_SIZE) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // FMOD System factory functions. Use this to create an FMOD System Instance. below you will see System_Init/Close to get started.
- //
- System_Create :: proc(system: ^^SYSTEM, headerversion: u32) -> RESULT ---
- System_Release :: proc(system: ^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'System' API
- //
-
- // Setup functions.
- System_SetOutput :: proc(system: ^SYSTEM, output: OUTPUTTYPE) -> RESULT ---
- System_GetOutput :: proc(system: ^SYSTEM, output: ^OUTPUTTYPE) -> RESULT ---
- System_GetNumDrivers :: proc(system: ^SYSTEM, numdrivers: ^i32) -> RESULT ---
- System_GetDriverInfo :: proc(system: ^SYSTEM, id: i32, name: ^u8, namelen: i32, guid: ^GUID, systemrate: ^i32, speakermode: ^SPEAKERMODE, speakermodechannels: ^i32) -> RESULT ---
- System_SetDriver :: proc(system: ^SYSTEM, driver: i32) -> RESULT ---
- System_GetDriver :: proc(system: ^SYSTEM, driver: ^i32) -> RESULT ---
- System_SetSoftwareChannels :: proc(system: ^SYSTEM, numsoftwarechannels: i32) -> RESULT ---
- System_GetSoftwareChannels :: proc(system: ^SYSTEM, numsoftwarechannels: ^i32) -> RESULT ---
- System_SetSoftwareFormat :: proc(system: ^SYSTEM, samplerate: i32, speakermode: SPEAKERMODE, numrawspeakers: i32) -> RESULT ---
- System_GetSoftwareFormat :: proc(system: ^SYSTEM, samplerate: ^i32, speakermode: ^SPEAKERMODE, numrawspeakers: ^i32) -> RESULT ---
- System_SetDSPBufferSize :: proc(system: ^SYSTEM, bufferlength: u32, numbuffers: i32) -> RESULT ---
- System_GetDSPBufferSize :: proc(system: ^SYSTEM, bufferlength: ^u32, numbuffers: ^i32) -> RESULT ---
- System_SetFileSystem :: proc(system: ^SYSTEM, useropen: FILE_OPEN_CALLBACK, userclose: FILE_CLOSE_CALLBACK, userread: FILE_READ_CALLBACK, userseek: FILE_SEEK_CALLBACK, userasyncread: FILE_ASYNCREAD_CALLBACK, userasynccancel: FILE_ASYNCCANCEL_CALLBACK, blockalign: i32) -> RESULT ---
- System_AttachFileSystem :: proc(system: ^SYSTEM, useropen: FILE_OPEN_CALLBACK, userclose: FILE_CLOSE_CALLBACK, userread: FILE_READ_CALLBACK, userseek: FILE_SEEK_CALLBACK) -> RESULT ---
- System_SetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> RESULT ---
- System_GetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> RESULT ---
- System_SetCallback :: proc(system: ^SYSTEM, callback: SYSTEM_CALLBACK, callbackmask: SYSTEM_CALLBACK_TYPE) -> RESULT ---
-
- // Plug-in support.
- System_SetPluginPath :: proc(system: ^SYSTEM, path: cstring) -> RESULT ---
- System_LoadPlugin :: proc(system: ^SYSTEM, filename: cstring, handle: ^u32, priority: u32) -> RESULT ---
- System_UnloadPlugin :: proc(system: ^SYSTEM, handle: u32) -> RESULT ---
- System_GetNumNestedPlugins :: proc(system: ^SYSTEM, handle: u32, count: ^i32) -> RESULT ---
- System_GetNestedPlugin :: proc(system: ^SYSTEM, handle: u32, index: i32, nestedhandle: ^u32) -> RESULT ---
- System_GetNumPlugins :: proc(system: ^SYSTEM, plugintype: PLUGINTYPE, numplugins: ^i32) -> RESULT ---
- System_GetPluginHandle :: proc(system: ^SYSTEM, plugintype: PLUGINTYPE, index: i32, handle: ^u32) -> RESULT ---
- System_GetPluginInfo :: proc(system: ^SYSTEM, handle: u32, plugintype: ^PLUGINTYPE, name: ^u8, namelen: i32, version: ^u32) -> RESULT ---
- System_SetOutputByPlugin :: proc(system: ^SYSTEM, handle: u32) -> RESULT ---
- System_GetOutputByPlugin :: proc(system: ^SYSTEM, handle: ^u32) -> RESULT ---
- System_CreateDSPByPlugin :: proc(system: ^SYSTEM, handle: u32, dsp: ^^DSP) -> RESULT ---
- // System_GetDSPInfoByPlugin :: proc(system: ^SYSTEM, handle: u32, description: ^^DSP_DESCRIPTION) -> RESULT ---
- // System_RegisterCodec :: proc(system: ^SYSTEM, description: ^CODEC_DESCRIPTION, handle: ^u32, priority: u32) -> RESULT ---
- // System_RegisterDSP :: proc(system: ^SYSTEM, #by_ptr description: DSP_DESCRIPTION, handle: ^u32) -> RESULT ---
- // System_RegisterOutput :: proc(system: ^SYSTEM, #by_ptr description: OUTPUT_DESCRIPTION, handle: ^u32) -> RESULT ---
-
- // Init/Close.
- System_Init :: proc(system: ^SYSTEM, maxchannels: i32, flags: INITFLAGS, extradriverdata: rawptr) -> RESULT ---
- System_Close :: proc(system: ^SYSTEM) -> RESULT ---
-
- // General post-init system functions.
- System_Update :: proc(system: ^SYSTEM) -> RESULT ---
- System_SetSpeakerPosition :: proc(system: ^SYSTEM, speaker: SPEAKER, x: f32, y: f32, active: b32) -> RESULT ---
- System_GetSpeakerPosition :: proc(system: ^SYSTEM, speaker: SPEAKER, x: ^f32, y: ^f32, active: ^b32) -> RESULT ---
- System_SetStreamBufferSize :: proc(system: ^SYSTEM, filebuffersize: u32, filebuffersizetype: TIMEUNIT) -> RESULT ---
- System_GetStreamBufferSize :: proc(system: ^SYSTEM, filebuffersize: ^u32, filebuffersizetype: ^TIMEUNIT) -> RESULT ---
- System_Set3DSettings :: proc(system: ^SYSTEM, dopplerscale: f32, distancefactor: f32, rolloffscale: f32) -> RESULT ---
- System_Get3DSettings :: proc(system: ^SYSTEM, dopplerscale: ^f32, distancefactor: ^f32, rolloffscale: ^f32) -> RESULT ---
- System_Set3DNumListeners :: proc(system: ^SYSTEM, numlisteners: i32) -> RESULT ---
- System_Get3DNumListeners :: proc(system: ^SYSTEM, numlisteners: ^i32) -> RESULT ---
- System_Set3DListenerAttributes :: proc(system: ^SYSTEM, listener: i32, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR, #by_ptr forward: VECTOR, #by_ptr up: VECTOR) -> RESULT ---
- System_Get3DListenerAttributes :: proc(system: ^SYSTEM, listener: i32, pos: ^VECTOR, vel: ^VECTOR, forward: ^VECTOR, up: ^VECTOR) -> RESULT ---
- System_Set3DRolloffCallback :: proc(system: ^SYSTEM, callback: _3D_ROLLOFF_CALLBACK) -> RESULT ---
- System_MixerSuspend :: proc(system: ^SYSTEM) -> RESULT ---
- System_MixerResume :: proc(system: ^SYSTEM) -> RESULT ---
- System_GetDefaultMixMatrix :: proc(system: ^SYSTEM, sourcespeakermode: SPEAKERMODE, targetspeakermode: SPEAKERMODE, _matrix: ^f32, matrixhop: i32) -> RESULT ---
- System_GetSpeakerModeChannels :: proc(system: ^SYSTEM, mode: SPEAKERMODE, channels: ^i32) -> RESULT ---
-
- // System information functions.
- System_GetVersion :: proc(system: ^SYSTEM, version: ^u32) -> RESULT ---
- System_GetOutputHandle :: proc(system: ^SYSTEM, handle: ^rawptr) -> RESULT ---
- System_GetChannelsPlaying :: proc(system: ^SYSTEM, channels: ^i32, realchannels: ^i32) -> RESULT ---
- System_GetCPUUsage :: proc(system: ^SYSTEM, usage: ^CPU_USAGE) -> RESULT ---
- System_GetFileUsage :: proc(system: ^SYSTEM, sampleBytesRead: ^int, streamBytesRead: ^int, otherBytesRead: ^int) -> RESULT ---
-
- // Sound/DSP/Channel/FX creation and retrieval.
- System_CreateSound :: proc(system: ^SYSTEM, name_or_data: cstring, mode: MODE, exinfo: ^CREATESOUNDEXINFO, sound: ^^SOUND) -> RESULT ---
- System_CreateStream :: proc(system: ^SYSTEM, name_or_data: cstring, mode: MODE, exinfo: ^CREATESOUNDEXINFO, sound: ^^SOUND) -> RESULT ---
- // System_CreateDSP :: proc(system: ^SYSTEM, #by_ptr description: DSP_DESCRIPTION, dsp: ^^DSP) -> RESULT ---
- System_CreateDSPByType :: proc(system: ^SYSTEM, _type: DSP_TYPE, dsp: ^^DSP) -> RESULT ---
- System_CreateChannelGroup :: proc(system: ^SYSTEM, name: cstring, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- System_CreateSoundGroup :: proc(system: ^SYSTEM, name: cstring, soundgroup: ^^SOUNDGROUP) -> RESULT ---
- System_CreateReverb3D :: proc(system: ^SYSTEM, reverb: ^^REVERB3D) -> RESULT ---
- System_PlaySound :: proc(system: ^SYSTEM, sound: ^SOUND, channelgroup: ^CHANNELGROUP, paused: b32, channel: ^^CHANNEL) -> RESULT ---
- System_PlayDSP :: proc(system: ^SYSTEM, dsp: ^DSP, channelgroup: ^CHANNELGROUP, paused: b32, channel: ^^CHANNEL) -> RESULT ---
- System_GetChannel :: proc(system: ^SYSTEM, channelid: i32, channel: ^^CHANNEL) -> RESULT ---
- // System_GetDSPInfoByType :: proc(system: ^SYSTEM, _type: DSP_TYPE, description: ^^DSP_DESCRIPTION) -> RESULT ---
- System_GetMasterChannelGroup :: proc(system: ^SYSTEM, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- System_GetMasterSoundGroup :: proc(system: ^SYSTEM, soundgroup: ^^SOUNDGROUP) -> RESULT ---
-
- // Routing to ports.
- System_AttachChannelGroupToPort :: proc(system: ^SYSTEM, portType: PORT_TYPE, portIndex: PORT_INDEX, channelgroup: ^CHANNELGROUP, passThru: b32) -> RESULT ---
- System_DetachChannelGroupFromPort :: proc(system: ^SYSTEM, channelgroup: ^CHANNELGROUP) -> RESULT ---
-
- // Reverb API.
- System_SetReverbProperties :: proc(system: ^SYSTEM, instance: i32, #by_ptr prop: REVERB_PROPERTIES) -> RESULT ---
- System_GetReverbProperties :: proc(system: ^SYSTEM, instance: i32, prop: ^REVERB_PROPERTIES) -> RESULT ---
-
- // System level DSP functionality.
- System_LockDSP :: proc(system: ^SYSTEM) -> RESULT ---
- System_UnlockDSP :: proc(system: ^SYSTEM) -> RESULT ---
-
- // Recording API.
- System_GetRecordNumDrivers :: proc(system: ^SYSTEM, numdrivers: ^i32, numconnected: ^i32) -> RESULT ---
- System_GetRecordDriverInfo :: proc(system: ^SYSTEM, id: i32, name: ^u8, namelen: i32, guid: ^GUID, systemrate: ^i32, speakermode: ^SPEAKERMODE, speakermodechannels: ^i32, state: ^DRIVER_STATE) -> RESULT ---
- System_GetRecordPosition :: proc(system: ^SYSTEM, id: i32, position: ^u32) -> RESULT ---
- System_RecordStart :: proc(system: ^SYSTEM, id: i32, sound: ^SOUND, loop: b32) -> RESULT ---
- System_RecordStop :: proc(system: ^SYSTEM, id: i32) -> RESULT ---
- System_IsRecording :: proc(system: ^SYSTEM, id: i32, recording: ^b32) -> RESULT ---
-
- // Geometry API.
- System_CreateGeometry :: proc(system: ^SYSTEM, maxpolygons: i32, maxvertices: i32, geometry: ^^GEOMETRY) -> RESULT ---
- System_SetGeometrySettings :: proc(system: ^SYSTEM, maxworldsize: f32) -> RESULT ---
- System_GetGeometrySettings :: proc(system: ^SYSTEM, maxworldsize: ^f32) -> RESULT ---
- System_LoadGeometry :: proc(system: ^SYSTEM, data: rawptr, datasize: i32, geometry: ^^GEOMETRY) -> RESULT ---
- System_GetGeometryOcclusion :: proc(system: ^SYSTEM, #by_ptr listener: VECTOR, #by_ptr source: VECTOR, direct: ^f32, reverb: ^f32) -> RESULT ---
-
- // Network functions.
- System_SetNetworkProxy :: proc(system: ^SYSTEM, proxy: cstring) -> RESULT ---
- System_GetNetworkProxy :: proc(system: ^SYSTEM, proxy: ^u8, proxylen: i32) -> RESULT ---
- System_SetNetworkTimeout :: proc(system: ^SYSTEM, timeout: i32) -> RESULT ---
- System_GetNetworkTimeout :: proc(system: ^SYSTEM, timeout: ^i32) -> RESULT ---
-
- // Userdata set/get.
- System_SetUserData :: proc(system: ^SYSTEM, userdata: rawptr) -> RESULT ---
- System_GetUserData :: proc(system: ^SYSTEM, userdata: ^rawptr) -> RESULT ---
-
- // Sound API
- Sound_Release :: proc(sound: ^SOUND) -> RESULT ---
- Sound_GetSystemObject :: proc(sound: ^SOUND, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Standard sound manipulation functions.
- //
-
- Sound_Lock :: proc(sound: ^SOUND, offset: u32, length: u32, ptr1: ^rawptr, ptr2: ^rawptr, len1: ^u32, len2: ^u32) -> RESULT ---
- Sound_Unlock :: proc(sound: ^SOUND, ptr1: rawptr, ptr2: rawptr, len1: u32, len2: u32) -> RESULT ---
- Sound_SetDefaults :: proc(sound: ^SOUND, frequency: f32, priority: i32) -> RESULT ---
- Sound_GetDefaults :: proc(sound: ^SOUND, frequency: ^f32, priority: ^i32) -> RESULT ---
- Sound_Set3DMinMaxDistance :: proc(sound: ^SOUND, min: f32, max: f32) -> RESULT ---
- Sound_Get3DMinMaxDistance :: proc(sound: ^SOUND, min: ^f32, max: ^f32) -> RESULT ---
- Sound_Set3DConeSettings :: proc(sound: ^SOUND, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- Sound_Get3DConeSettings :: proc(sound: ^SOUND, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- Sound_Set3DCustomRolloff :: proc(sound: ^SOUND, points: ^VECTOR, numpoints: i32) -> RESULT ---
- Sound_Get3DCustomRolloff :: proc(sound: ^SOUND, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- Sound_GetSubSound :: proc(sound: ^SOUND, index: i32, subsound: ^^SOUND) -> RESULT ---
- Sound_GetSubSoundParent :: proc(sound: ^SOUND, parentsound: ^^SOUND) -> RESULT ---
- Sound_GetName :: proc(sound: ^SOUND, name: ^u8, namelen: i32) -> RESULT ---
- Sound_GetLength :: proc(sound: ^SOUND, length: ^u32, lengthtype: TIMEUNIT) -> RESULT ---
- Sound_GetFormat :: proc(sound: ^SOUND, _type: ^SOUND_TYPE, format: ^SOUND_FORMAT, channels: ^i32, bits: ^i32) -> RESULT ---
- Sound_GetNumSubSounds :: proc(sound: ^SOUND, numsubsounds: ^i32) -> RESULT ---
- Sound_GetNumTags :: proc(sound: ^SOUND, numtags: ^i32, numtagsupdated: ^i32) -> RESULT ---
- Sound_GetTag :: proc(sound: ^SOUND, name: cstring, index: i32, tag: ^TAG) -> RESULT ---
- Sound_GetOpenState :: proc(sound: ^SOUND, openstate: ^OPENSTATE, percentbuffered: ^u32, starving: ^b32, diskbusy: ^b32) -> RESULT ---
- Sound_ReadData :: proc(sound: ^SOUND, buffer: rawptr, length: u32, read: ^u32) -> RESULT ---
- Sound_SeekData :: proc(sound: ^SOUND, pcm: u32) -> RESULT ---
-
- Sound_SetSoundGroup :: proc(sound: ^SOUND, soundgroup: ^SOUNDGROUP) -> RESULT ---
- Sound_GetSoundGroup :: proc(sound: ^SOUND, soundgroup: ^^SOUNDGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Synchronization poAPI: i32. These points can come from markers embedded in wav files, and can also generate channel callbacks.
- //
-
- Sound_GetNumSyncPoints :: proc(sound: ^SOUND, numsyncpoints: ^i32) -> RESULT ---
- Sound_GetSyncPoint :: proc(sound: ^SOUND, index: i32, point: ^^SYNCPOINT) -> RESULT ---
- Sound_GetSyncPointInfo :: proc(sound: ^SOUND, point: ^SYNCPOINT, name: ^u8, namelen: i32, offset: ^u32, offsettype: TIMEUNIT) -> RESULT ---
- Sound_AddSyncPoint :: proc(sound: ^SOUND, offset: u32, offsettype: TIMEUNIT, name: cstring, point: ^^SYNCPOINT) -> RESULT ---
- Sound_DeleteSyncPoint :: proc(sound: ^SOUND, point: ^SYNCPOINT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Functions also in Channel class but here they are the 'default' to save having to change it in Channel all the time.
- //
-
- Sound_SetMode :: proc(sound: ^SOUND, mode: MODE) -> RESULT ---
- Sound_GetMode :: proc(sound: ^SOUND, mode: ^MODE) -> RESULT ---
- Sound_SetLoopCount :: proc(sound: ^SOUND, loopcount: i32) -> RESULT ---
- Sound_GetLoopCount :: proc(sound: ^SOUND, loopcount: ^i32) -> RESULT ---
- Sound_SetLoopPoints :: proc(sound: ^SOUND, loopstart: u32, loopstarttype: TIMEUNIT, loopend: u32, loopendtype: TIMEUNIT) -> RESULT ---
- Sound_GetLoopPoints :: proc(sound: ^SOUND, loopstart: ^u32, loopstarttype: TIMEUNIT, loopend: ^u32, loopendtype: TIMEUNIT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // For MOD/S3M/XM/IT/MID sequenced formats only.
- //
-
- Sound_GetMusicNumChannels :: proc(sound: ^SOUND, numchannels: ^i32) -> RESULT ---
- Sound_SetMusicChannelVolume :: proc(sound: ^SOUND, channel: i32, volume: f32) -> RESULT ---
- Sound_GetMusicChannelVolume :: proc(sound: ^SOUND, channel: i32, volume: ^f32) -> RESULT ---
- Sound_SetMusicSpeed :: proc(sound: ^SOUND, speed: f32) -> RESULT ---
- Sound_GetMusicSpeed :: proc(sound: ^SOUND, speed: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Sound_SetUserData :: proc(sound: ^SOUND, userdata: rawptr) -> RESULT ---
- Sound_GetUserData :: proc(sound: ^SOUND, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Channel' API
- //
-
- Channel_GetSystemObject :: proc(channel: ^CHANNEL, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // General control functionality for Channels and ChannelGroups.
- //
-
- Channel_Stop :: proc(channel: ^CHANNEL) -> RESULT ---
- Channel_SetPaused :: proc(channel: ^CHANNEL, paused: b32) -> RESULT ---
- Channel_GetPaused :: proc(channel: ^CHANNEL, paused: ^b32) -> RESULT ---
- Channel_SetVolume :: proc(channel: ^CHANNEL, volume: f32) -> RESULT ---
- Channel_GetVolume :: proc(channel: ^CHANNEL, volume: ^f32) -> RESULT ---
- Channel_SetVolumeRamp :: proc(channel: ^CHANNEL, ramp: b32) -> RESULT ---
- Channel_GetVolumeRamp :: proc(channel: ^CHANNEL, ramp: ^b32) -> RESULT ---
- Channel_GetAudibility :: proc(channel: ^CHANNEL, audibility: ^f32) -> RESULT ---
- Channel_SetPitch :: proc(channel: ^CHANNEL, pitch: f32) -> RESULT ---
- Channel_GetPitch :: proc(channel: ^CHANNEL, pitch: ^f32) -> RESULT ---
- Channel_SetMute :: proc(channel: ^CHANNEL, mute: b32) -> RESULT ---
- Channel_GetMute :: proc(channel: ^CHANNEL, mute: ^b32) -> RESULT ---
- Channel_SetReverbProperties :: proc(channel: ^CHANNEL, instance: i32, wet: f32) -> RESULT ---
- Channel_GetReverbProperties :: proc(channel: ^CHANNEL, instance: i32, wet: ^f32) -> RESULT ---
- Channel_SetLowPassGain :: proc(channel: ^CHANNEL, gain: f32) -> RESULT ---
- Channel_GetLowPassGain :: proc(channel: ^CHANNEL, gain: ^f32) -> RESULT ---
- Channel_SetMode :: proc(channel: ^CHANNEL, mode: MODE) -> RESULT ---
- Channel_GetMode :: proc(channel: ^CHANNEL, mode: ^MODE) -> RESULT ---
- Channel_SetCallback :: proc(channel: ^CHANNEL, callback: CHANNELCONTROL_CALLBACK) -> RESULT ---
- Channel_IsPlaying :: proc(channel: ^CHANNEL, isplaying: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Note all 'set' functions alter a final _matrix, this is why the only get function is getMixMatrix, to avoid other get functions returning incorrect/obsolete values.
- //
-
- Channel_SetPan :: proc(channel: ^CHANNEL, pan: f32) -> RESULT ---
- Channel_SetMixLevelsOutput :: proc(channel: ^CHANNEL, frontleft: f32, frontright: f32, center: f32, lfe: f32, surroundleft: f32, surroundright: f32, backleft: f32, backright: f32) -> RESULT ---
- Channel_SetMixLevelsInput :: proc(channel: ^CHANNEL, levels: ^f32, numlevels: i32) -> RESULT ---
- Channel_SetMixMatrix :: proc(channel: ^CHANNEL, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- Channel_GetMixMatrix :: proc(channel: ^CHANNEL, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Clock based functionality.
- //
-
- Channel_GetDSPClock :: proc(channel: ^CHANNEL, dspclock: ^uint, parentclock: ^uint) -> RESULT ---
- Channel_SetDelay :: proc(channel: ^CHANNEL, dspclock_start: uint, dspclock_end: uint, stopchannels: b32) -> RESULT ---
- Channel_GetDelay :: proc(channel: ^CHANNEL, dspclock_start: ^uint, dspclock_end: ^uint, stopchannels: ^b32) -> RESULT ---
- Channel_AddFadePoint :: proc(channel: ^CHANNEL, dspclock: uint, volume: f32) -> RESULT ---
- Channel_SetFadePointRamp :: proc(channel: ^CHANNEL, dspclock: uint, volume: f32) -> RESULT ---
- Channel_RemoveFadePoints :: proc(channel: ^CHANNEL, dspclock_start: uint, dspclock_end: uint) -> RESULT ---
- Channel_GetFadePoints :: proc(channel: ^CHANNEL, numpoints: ^u32, point_dspclock: ^uint, point_volume: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP effects.
- //
-
- Channel_GetDSP :: proc(channel: ^CHANNEL, index: i32, dsp: ^^DSP) -> RESULT ---
- Channel_AddDSP :: proc(channel: ^CHANNEL, index: i32, dsp: ^DSP) -> RESULT ---
- Channel_RemoveDSP :: proc(channel: ^CHANNEL, dsp: ^DSP) -> RESULT ---
- Channel_GetNumDSPs :: proc(channel: ^CHANNEL, numdsps: ^i32) -> RESULT ---
- Channel_SetDSPIndex :: proc(channel: ^CHANNEL, dsp: ^DSP, index: i32) -> RESULT ---
- Channel_GetDSPIndex :: proc(channel: ^CHANNEL, dsp: ^DSP, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 3D functionality.
- //
-
- Channel_Set3DAttributes :: proc(channel: ^CHANNEL, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR) -> RESULT ---
- Channel_Get3DAttributes :: proc(channel: ^CHANNEL, pos: ^VECTOR, vel: ^VECTOR) -> RESULT ---
- Channel_Set3DMinMaxDistance :: proc(channel: ^CHANNEL, mindistance: f32, maxdistance: f32) -> RESULT ---
- Channel_Get3DMinMaxDistance :: proc(channel: ^CHANNEL, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- Channel_Set3DConeSettings :: proc(channel: ^CHANNEL, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- Channel_Get3DConeSettings :: proc(channel: ^CHANNEL, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- Channel_Set3DConeOrientation :: proc(channel: ^CHANNEL, orientation: ^VECTOR) -> RESULT ---
- Channel_Get3DConeOrientation :: proc(channel: ^CHANNEL, orientation: ^VECTOR) -> RESULT ---
- Channel_Set3DCustomRolloff :: proc(channel: ^CHANNEL, points: ^VECTOR, numpoints: i32) -> RESULT ---
- Channel_Get3DCustomRolloff :: proc(channel: ^CHANNEL, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- Channel_Set3DOcclusion :: proc(channel: ^CHANNEL, directocclusion: f32, reverbocclusion: f32) -> RESULT ---
- Channel_Get3DOcclusion :: proc(channel: ^CHANNEL, directocclusion: ^f32, reverbocclusion: ^f32) -> RESULT ---
- Channel_Set3DSpread :: proc(channel: ^CHANNEL, angle: f32) -> RESULT ---
- Channel_Get3DSpread :: proc(channel: ^CHANNEL, angle: ^f32) -> RESULT ---
- Channel_Set3DLevel :: proc(channel: ^CHANNEL, level: f32) -> RESULT ---
- Channel_Get3DLevel :: proc(channel: ^CHANNEL, level: ^f32) -> RESULT ---
- Channel_Set3DDopplerLevel :: proc(channel: ^CHANNEL, level: f32) -> RESULT ---
- Channel_Get3DDopplerLevel :: proc(channel: ^CHANNEL, level: ^f32) -> RESULT ---
- Channel_Set3DDistanceFilter :: proc(channel: ^CHANNEL, custom: b32, customLevel: f32, centerFreq: f32) -> RESULT ---
- Channel_Get3DDistanceFilter :: proc(channel: ^CHANNEL, custom: ^b32, customLevel: ^f32, centerFreq: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Channel_SetUserData :: proc(channel: ^CHANNEL, userdata: rawptr) -> RESULT ---
- Channel_GetUserData :: proc(channel: ^CHANNEL, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Channel specific control functionality.
- //
-
- Channel_SetFrequency :: proc(channel: ^CHANNEL, frequency: f32) -> RESULT ---
- Channel_GetFrequency :: proc(channel: ^CHANNEL, frequency: ^f32) -> RESULT ---
- Channel_SetPriority :: proc(channel: ^CHANNEL, priority: i32) -> RESULT ---
- Channel_GetPriority :: proc(channel: ^CHANNEL, priority: ^i32) -> RESULT ---
- Channel_SetPosition :: proc(channel: ^CHANNEL, position: u32, postype: TIMEUNIT) -> RESULT ---
- Channel_GetPosition :: proc(channel: ^CHANNEL, position: ^u32, postype: TIMEUNIT) -> RESULT ---
- Channel_SetChannelGroup :: proc(channel: ^CHANNEL, channelgroup: ^CHANNELGROUP) -> RESULT ---
- Channel_GetChannelGroup :: proc(channel: ^CHANNEL, channelgroup: ^^CHANNELGROUP) -> RESULT ---
- Channel_SetLoopCount :: proc(channel: ^CHANNEL, loopcount: i32) -> RESULT ---
- Channel_GetLoopCount :: proc(channel: ^CHANNEL, loopcount: ^i32) -> RESULT ---
- Channel_SetLoopPoints :: proc(channel: ^CHANNEL, loopstart: u32, loopstarttype: TIMEUNIT, loopend: u32, loopendtype: TIMEUNIT) -> RESULT ---
- Channel_GetLoopPoints :: proc(channel: ^CHANNEL, loopstart: ^u32, loopstarttype: TIMEUNIT, loopend: ^u32, loopendtype: TIMEUNIT) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- Channel_IsVirtual :: proc(channel: ^CHANNEL, isvirtual: ^b32) -> RESULT ---
- Channel_GetCurrentSound :: proc(channel: ^CHANNEL, sound: ^^SOUND) -> RESULT ---
- Channel_GetIndex :: proc(channel: ^CHANNEL, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'ChannelGroup' API
- //
-
- ChannelGroup_GetSystemObject :: proc(channelgroup: ^CHANNELGROUP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // General control functionality for Channels and ChannelGroups.
- //
-
- ChannelGroup_Stop :: proc(channelgroup: ^CHANNELGROUP) -> RESULT ---
- ChannelGroup_SetPaused :: proc(channelgroup: ^CHANNELGROUP, paused: b32) -> RESULT ---
- ChannelGroup_GetPaused :: proc(channelgroup: ^CHANNELGROUP, paused: ^b32) -> RESULT ---
- ChannelGroup_SetVolume :: proc(channelgroup: ^CHANNELGROUP, volume: f32) -> RESULT ---
- ChannelGroup_GetVolume :: proc(channelgroup: ^CHANNELGROUP, volume: ^f32) -> RESULT ---
- ChannelGroup_SetVolumeRamp :: proc(channelgroup: ^CHANNELGROUP, ramp: b32) -> RESULT ---
- ChannelGroup_GetVolumeRamp :: proc(channelgroup: ^CHANNELGROUP, ramp: ^b32) -> RESULT ---
- ChannelGroup_GetAudibility :: proc(channelgroup: ^CHANNELGROUP, audibility: ^f32) -> RESULT ---
- ChannelGroup_SetPitch :: proc(channelgroup: ^CHANNELGROUP, pitch: f32) -> RESULT ---
- ChannelGroup_GetPitch :: proc(channelgroup: ^CHANNELGROUP, pitch: ^f32) -> RESULT ---
- ChannelGroup_SetMute :: proc(channelgroup: ^CHANNELGROUP, mute: b32) -> RESULT ---
- ChannelGroup_GetMute :: proc(channelgroup: ^CHANNELGROUP, mute: ^b32) -> RESULT ---
- ChannelGroup_SetReverbProperties :: proc(channelgroup: ^CHANNELGROUP, instance: i32, wet: f32) -> RESULT ---
- ChannelGroup_GetReverbProperties :: proc(channelgroup: ^CHANNELGROUP, instance: i32, wet: ^f32) -> RESULT ---
- ChannelGroup_SetLowPassGain :: proc(channelgroup: ^CHANNELGROUP, gain: f32) -> RESULT ---
- ChannelGroup_GetLowPassGain :: proc(channelgroup: ^CHANNELGROUP, gain: ^f32) -> RESULT ---
- ChannelGroup_SetMode :: proc(channelgroup: ^CHANNELGROUP, mode: MODE) -> RESULT ---
- ChannelGroup_GetMode :: proc(channelgroup: ^CHANNELGROUP, mode: ^MODE) -> RESULT ---
- ChannelGroup_SetCallback :: proc(channelgroup: ^CHANNELGROUP, callback: CHANNELCONTROL_CALLBACK) -> RESULT ---
- ChannelGroup_IsPlaying :: proc(channelgroup: ^CHANNELGROUP, isplaying: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Note all 'set' functions alter a final _matrix, this is why the only get function is getMixMatrix, to avoid other get functions returning incorrect/obsolete values.
- //
-
- ChannelGroup_SetPan :: proc(channelgroup: ^CHANNELGROUP, pan: f32) -> RESULT ---
- ChannelGroup_SetMixLevelsOutput :: proc(channelgroup: ^CHANNELGROUP, frontleft: f32, frontright: f32, center: f32, lfe: f32, surroundleft: f32, surroundright: f32, backleft: f32, backright: f32) -> RESULT ---
- ChannelGroup_SetMixLevelsInput :: proc(channelgroup: ^CHANNELGROUP, levels: ^f32, numlevels: i32) -> RESULT ---
- ChannelGroup_SetMixMatrix :: proc(channelgroup: ^CHANNELGROUP, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- ChannelGroup_GetMixMatrix :: proc(channelgroup: ^CHANNELGROUP, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Clock based functionality.
- //
-
- ChannelGroup_GetDSPClock :: proc(channelgroup: ^CHANNELGROUP, dspclock: ^uint, parentclock: ^uint) -> RESULT ---
- ChannelGroup_SetDelay :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: uint, dspclock_end: uint, stopchannels: b32) -> RESULT ---
- ChannelGroup_GetDelay :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: ^uint, dspclock_end: ^uint, stopchannels: ^b32) -> RESULT ---
- ChannelGroup_AddFadePoint :: proc(channelgroup: ^CHANNELGROUP, dspclock: uint, volume: f32) -> RESULT ---
- ChannelGroup_SetFadePointRamp :: proc(channelgroup: ^CHANNELGROUP, dspclock: uint, volume: f32) -> RESULT ---
- ChannelGroup_RemoveFadePoints :: proc(channelgroup: ^CHANNELGROUP, dspclock_start: uint, dspclock_end: uint) -> RESULT ---
- ChannelGroup_GetFadePoints :: proc(channelgroup: ^CHANNELGROUP, numpoints: ^u32, point_dspclock: ^uint, point_volume: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP effects.
- //
-
- ChannelGroup_GetDSP :: proc(channelgroup: ^CHANNELGROUP, index: i32, dsp: ^^DSP) -> RESULT ---
- ChannelGroup_AddDSP :: proc(channelgroup: ^CHANNELGROUP, index: i32, dsp: ^DSP) -> RESULT ---
- ChannelGroup_RemoveDSP :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP) -> RESULT ---
- ChannelGroup_GetNumDSPs :: proc(channelgroup: ^CHANNELGROUP, numdsps: ^i32) -> RESULT ---
- ChannelGroup_SetDSPIndex :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP, index: i32) -> RESULT ---
- ChannelGroup_GetDSPIndex :: proc(channelgroup: ^CHANNELGROUP, dsp: ^DSP, index: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 3D functionality.
- //
-
- ChannelGroup_Set3DAttributes :: proc(channelgroup: ^CHANNELGROUP, #by_ptr pos: VECTOR, #by_ptr vel: VECTOR) -> RESULT ---
- ChannelGroup_Get3DAttributes :: proc(channelgroup: ^CHANNELGROUP, pos: ^VECTOR, vel: ^VECTOR) -> RESULT ---
- ChannelGroup_Set3DMinMaxDistance :: proc(channelgroup: ^CHANNELGROUP, mindistance: f32, maxdistance: f32) -> RESULT ---
- ChannelGroup_Get3DMinMaxDistance :: proc(channelgroup: ^CHANNELGROUP, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- ChannelGroup_Set3DConeSettings :: proc(channelgroup: ^CHANNELGROUP, insideconeangle: f32, outsideconeangle: f32, outsidevolume: f32) -> RESULT ---
- ChannelGroup_Get3DConeSettings :: proc(channelgroup: ^CHANNELGROUP, insideconeangle: ^f32, outsideconeangle: ^f32, outsidevolume: ^f32) -> RESULT ---
- ChannelGroup_Set3DConeOrientation :: proc(channelgroup: ^CHANNELGROUP, orientation: ^VECTOR) -> RESULT ---
- ChannelGroup_Get3DConeOrientation :: proc(channelgroup: ^CHANNELGROUP, orientation: ^VECTOR) -> RESULT ---
- ChannelGroup_Set3DCustomRolloff :: proc(channelgroup: ^CHANNELGROUP, points: ^VECTOR, numpoints: i32) -> RESULT ---
- ChannelGroup_Get3DCustomRolloff :: proc(channelgroup: ^CHANNELGROUP, points: ^^VECTOR, numpoints: ^i32) -> RESULT ---
- ChannelGroup_Set3DOcclusion :: proc(channelgroup: ^CHANNELGROUP, directocclusion: f32, reverbocclusion: f32) -> RESULT ---
- ChannelGroup_Get3DOcclusion :: proc(channelgroup: ^CHANNELGROUP, directocclusion: ^f32, reverbocclusion: ^f32) -> RESULT ---
- ChannelGroup_Set3DSpread :: proc(channelgroup: ^CHANNELGROUP, angle: f32) -> RESULT ---
- ChannelGroup_Get3DSpread :: proc(channelgroup: ^CHANNELGROUP, angle: ^f32) -> RESULT ---
- ChannelGroup_Set3DLevel :: proc(channelgroup: ^CHANNELGROUP, level: f32) -> RESULT ---
- ChannelGroup_Get3DLevel :: proc(channelgroup: ^CHANNELGROUP, level: ^f32) -> RESULT ---
- ChannelGroup_Set3DDopplerLevel :: proc(channelgroup: ^CHANNELGROUP, level: f32) -> RESULT ---
- ChannelGroup_Get3DDopplerLevel :: proc(channelgroup: ^CHANNELGROUP, level: ^f32) -> RESULT ---
- ChannelGroup_Set3DDistanceFilter :: proc(channelgroup: ^CHANNELGROUP, custom: b32, customLevel: f32, centerFreq: f32) -> RESULT ---
- ChannelGroup_Get3DDistanceFilter :: proc(channelgroup: ^CHANNELGROUP, custom: ^b32, customLevel: ^f32, centerFreq: ^f32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- ChannelGroup_SetUserData :: proc(channelgroup: ^CHANNELGROUP, userdata: rawptr) -> RESULT ---
- ChannelGroup_GetUserData :: proc(channelgroup: ^CHANNELGROUP, userdata: ^rawptr) -> RESULT ---
-
- ChannelGroup_Release :: proc(channelgroup: ^CHANNELGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Nested channel groups.
- //
-
- ChannelGroup_AddGroup :: proc(channelgroup: ^CHANNELGROUP, group: ^CHANNELGROUP, propagatedspclock: b32, connection: ^^DSPCONNECTION) -> RESULT ---
- ChannelGroup_GetNumGroups :: proc(channelgroup: ^CHANNELGROUP, numgroups: ^i32) -> RESULT ---
- ChannelGroup_GetGroup :: proc(channelgroup: ^CHANNELGROUP, index: i32, group: ^^CHANNELGROUP) -> RESULT ---
- ChannelGroup_GetParentGroup :: proc(channelgroup: ^CHANNELGROUP, group: ^^CHANNELGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- ChannelGroup_GetName :: proc(channelgroup: ^CHANNELGROUP, name: ^u8, namelen: i32) -> RESULT ---
- ChannelGroup_GetNumChannels :: proc(channelgroup: ^CHANNELGROUP, numchannels: ^i32) -> RESULT ---
- ChannelGroup_GetChannel :: proc(channelgroup: ^CHANNELGROUP, index: i32, channel: ^^CHANNEL) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'SoundGroup' API
- //
-
- SoundGroup_Release :: proc(soundgroup: ^SOUNDGROUP) -> RESULT ---
- SoundGroup_GetSystemObject :: proc(soundgroup: ^SOUNDGROUP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // SoundGroup control functions.
- //
-
- SoundGroup_SetMaxAudible :: proc(soundgroup: ^SOUNDGROUP, maxaudible: i32) -> RESULT ---
- SoundGroup_GetMaxAudible :: proc(soundgroup: ^SOUNDGROUP, maxaudible: ^i32) -> RESULT ---
- SoundGroup_SetMaxAudibleBehavior :: proc(soundgroup: ^SOUNDGROUP, behavior: SOUNDGROUP_BEHAVIOR) -> RESULT ---
- SoundGroup_GetMaxAudibleBehavior :: proc(soundgroup: ^SOUNDGROUP, behavior: ^SOUNDGROUP_BEHAVIOR) -> RESULT ---
- SoundGroup_SetMuteFadeSpeed :: proc(soundgroup: ^SOUNDGROUP, speed: f32) -> RESULT ---
- SoundGroup_GetMuteFadeSpeed :: proc(soundgroup: ^SOUNDGROUP, speed: ^f32) -> RESULT ---
- SoundGroup_SetVolume :: proc(soundgroup: ^SOUNDGROUP, volume: f32) -> RESULT ---
- SoundGroup_GetVolume :: proc(soundgroup: ^SOUNDGROUP, volume: ^f32) -> RESULT ---
- SoundGroup_Stop :: proc(soundgroup: ^SOUNDGROUP) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Information only functions.
- //
-
- SoundGroup_GetName :: proc(soundgroup: ^SOUNDGROUP, name: ^u8, namelen: i32) -> RESULT ---
- SoundGroup_GetNumSounds :: proc(soundgroup: ^SOUNDGROUP, numsounds: ^i32) -> RESULT ---
- SoundGroup_GetSound :: proc(soundgroup: ^SOUNDGROUP, index: i32, sound: ^^SOUND) -> RESULT ---
- SoundGroup_GetNumPlaying :: proc(soundgroup: ^SOUNDGROUP, numplaying: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- SoundGroup_SetUserData :: proc(soundgroup: ^SOUNDGROUP, userdata: rawptr) -> RESULT ---
- SoundGroup_GetUserData :: proc(soundgroup: ^SOUNDGROUP, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'DSP' API
- //
-
- DSP_Release :: proc(dsp: ^DSP) -> RESULT ---
- DSP_GetSystemObject :: proc(dsp: ^DSP, system: ^^SYSTEM) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Connection / disconnection / input and output enumeration.
- //
-
- DSP_AddInput :: proc(dsp: ^DSP, input: ^DSP, connection: ^^DSPCONNECTION, _type: DSPCONNECTION_TYPE) -> RESULT ---
- DSP_DisconnectFrom :: proc(dsp: ^DSP, target: ^DSP, connection: ^DSPCONNECTION) -> RESULT ---
- DSP_DisconnectAll :: proc(dsp: ^DSP, inputs: b32, outputs: b32) -> RESULT ---
- DSP_GetNumInputs :: proc(dsp: ^DSP, numinputs: ^i32) -> RESULT ---
- DSP_GetNumOutputs :: proc(dsp: ^DSP, numoutputs: ^i32) -> RESULT ---
- DSP_GetInput :: proc(dsp: ^DSP, index: i32, input: ^^DSP, inputconnection: ^^DSPCONNECTION) -> RESULT ---
- DSP_GetOutput :: proc(dsp: ^DSP, index: i32, output: ^^DSP, outputconnection: ^^DSPCONNECTION) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP unit control.
- //
-
- DSP_SetActive :: proc(dsp: ^DSP, active: b32) -> RESULT ---
- DSP_GetActive :: proc(dsp: ^DSP, active: ^b32) -> RESULT ---
- DSP_SetBypass :: proc(dsp: ^DSP, bypass: b32) -> RESULT ---
- DSP_GetBypass :: proc(dsp: ^DSP, bypass: ^b32) -> RESULT ---
- DSP_SetWetDryMix :: proc(dsp: ^DSP, prewet: f32, postwet: f32, dry: f32) -> RESULT ---
- DSP_GetWetDryMix :: proc(dsp: ^DSP, prewet: ^f32, postwet: ^f32, dry: ^f32) -> RESULT ---
- DSP_SetChannelFormat :: proc(dsp: ^DSP, channelmask: CHANNELMASK, numchannels: i32, source_speakermode: SPEAKERMODE) -> RESULT ---
- DSP_GetChannelFormat :: proc(dsp: ^DSP, channelmask: ^CHANNELMASK, numchannels: ^i32, source_speakermode: ^SPEAKERMODE) -> RESULT ---
- DSP_GetOutputChannelFormat :: proc(dsp: ^DSP, inmask: CHANNELMASK, inchannels: i32, inspeakermode: SPEAKERMODE, outmask: ^CHANNELMASK, outchannels: ^i32, outspeakermode: ^SPEAKERMODE) -> RESULT ---
- DSP_Reset :: proc(dsp: ^DSP) -> RESULT ---
- DSP_SetCallback :: proc(dsp: ^DSP, callback: DSP_CALLBACK) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP parameter control.
- //
-
- DSP_SetParameterf32 :: proc(dsp: ^DSP, index: i32, value: f32) -> RESULT ---
- DSP_SetParameterInt :: proc(dsp: ^DSP, index: i32, value: i32) -> RESULT ---
- DSP_SetParameterb32 :: proc(dsp: ^DSP, index: i32, value: b32) -> RESULT ---
- DSP_SetParameterData :: proc(dsp: ^DSP, index: i32, data: rawptr, length: u32) -> RESULT ---
- DSP_GetParameterf32 :: proc(dsp: ^DSP, index: i32, value: ^f32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterInt :: proc(dsp: ^DSP, index: i32, value: ^i32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterb32 :: proc(dsp: ^DSP, index: i32, value: ^b32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetParameterData :: proc(dsp: ^DSP, index: i32, data: ^rawptr, length: ^u32, valuestr: ^u8, valuestrlen: i32) -> RESULT ---
- DSP_GetNumParameters :: proc(dsp: ^DSP, numparams: ^i32) -> RESULT ---
- // DSP_GetParameterInfo :: proc(dsp: ^DSP, index: i32, desc: ^^DSP_PARAMETER_DESC) -> RESULT ---
- DSP_GetDataParameterIndex :: proc(dsp: ^DSP, datatype: i32, index: ^i32) -> RESULT ---
- DSP_ShowConfigDialog :: proc(dsp: ^DSP, hwnd: rawptr, show: b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // DSP attributes.
- //
-
- DSP_GetInfo :: proc(dsp: ^DSP, name: ^u8, version: ^u32, channels: ^i32, configwidth: ^i32, configheight: ^i32) -> RESULT ---
- DSP_GetType :: proc(dsp: ^DSP, _type: ^DSP_TYPE) -> RESULT ---
- DSP_GetIdle :: proc(dsp: ^DSP, idle: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- DSP_SetUserData :: proc(dsp: ^DSP, userdata: rawptr) -> RESULT ---
- DSP_GetUserData :: proc(dsp: ^DSP, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Metering.
- //
-
- DSP_SetMeteringEnabled :: proc(dsp: ^DSP, inputEnabled: b32, outputEnabled: b32) -> RESULT ---
- DSP_GetMeteringEnabled :: proc(dsp: ^DSP, inputEnabled: ^b32, outputEnabled: ^b32) -> RESULT ---
- // DSP_GetMeteringInfo :: proc(dsp: ^DSP, inputInfo: ^DSP_METERING_INFO, outputInfo: ^DSP_METERING_INFO) -> RESULT ---
- DSP_GetCPUUsage :: proc(dsp: ^DSP, exclusive: ^u32, inclusive: ^u32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'DSPConnection' API
- //
-
- DSPConnection_GetInput :: proc(dspconnection: ^DSPCONNECTION, input: ^^DSP) -> RESULT ---
- DSPConnection_GetOutput :: proc(dspconnection: ^DSPCONNECTION, output: ^^DSP) -> RESULT ---
- DSPConnection_SetMix :: proc(dspconnection: ^DSPCONNECTION, volume: f32) -> RESULT ---
- DSPConnection_GetMix :: proc(dspconnection: ^DSPCONNECTION, volume: ^f32) -> RESULT ---
- DSPConnection_SetMixMatrix :: proc(dspconnection: ^DSPCONNECTION, _matrix: ^f32, outchannels: i32, inchannels: i32, inchannel_hop: i32) -> RESULT ---
- DSPConnection_GetMixMatrix :: proc(dspconnection: ^DSPCONNECTION, _matrix: ^f32, outchannels: ^i32, inchannels: ^i32, inchannel_hop: i32) -> RESULT ---
- DSPConnection_GetType :: proc(dspconnection: ^DSPCONNECTION, _type: ^DSPCONNECTION_TYPE) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- DSPConnection_SetUserData :: proc(dspconnection: ^DSPCONNECTION, userdata: rawptr) -> RESULT ---
- DSPConnection_GetUserData :: proc(dspconnection: ^DSPCONNECTION, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Geometry' API
- //
-
- Geometry_Release :: proc(geometry: ^GEOMETRY) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Polygon manipulation.
- //
-
- Geometry_AddPolygon :: proc(geometry: ^GEOMETRY, directocclusion: f32, reverbocclusion: f32, doublesided: b32, numvertices: i32, #by_ptr vertices: VECTOR, polygonindex: ^i32) -> RESULT ---
- Geometry_GetNumPolygons :: proc(geometry: ^GEOMETRY, numpolygons: ^i32) -> RESULT ---
- Geometry_GetMaxPolygons :: proc(geometry: ^GEOMETRY, maxpolygons: ^i32, maxvertices: ^i32) -> RESULT ---
- Geometry_GetPolygonNumVertices :: proc(geometry: ^GEOMETRY, index: i32, numvertices: ^i32) -> RESULT ---
- Geometry_SetPolygonVertex :: proc(geometry: ^GEOMETRY, index: i32, vertexindex: i32, #by_ptr vertex: VECTOR) -> RESULT ---
- Geometry_GetPolygonVertex :: proc(geometry: ^GEOMETRY, index: i32, vertexindex: i32, vertex: ^VECTOR) -> RESULT ---
- Geometry_SetPolygonAttributes :: proc(geometry: ^GEOMETRY, index: i32, directocclusion: f32, reverbocclusion: f32, doublesided: b32) -> RESULT ---
- Geometry_GetPolygonAttributes :: proc(geometry: ^GEOMETRY, index: i32, directocclusion: ^f32, reverbocclusion: ^f32, doublesided: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Object manipulation.
- //
-
- Geometry_SetActive :: proc(geometry: ^GEOMETRY, active: b32) -> RESULT ---
- Geometry_GetActive :: proc(geometry: ^GEOMETRY, active: ^b32) -> RESULT ---
- Geometry_SetRotation :: proc(geometry: ^GEOMETRY, #by_ptr forward: VECTOR, #by_ptr up: VECTOR) -> RESULT ---
- Geometry_GetRotation :: proc(geometry: ^GEOMETRY, forward: ^VECTOR, up: ^VECTOR) -> RESULT ---
- Geometry_SetPosition :: proc(geometry: ^GEOMETRY, #by_ptr position: VECTOR) -> RESULT ---
- Geometry_GetPosition :: proc(geometry: ^GEOMETRY, position: ^VECTOR) -> RESULT ---
- Geometry_SetScale :: proc(geometry: ^GEOMETRY, #by_ptr scale: VECTOR) -> RESULT ---
- Geometry_GetScale :: proc(geometry: ^GEOMETRY, scale: ^VECTOR) -> RESULT ---
- Geometry_Save :: proc(geometry: ^GEOMETRY, data: rawptr, datasize: ^i32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Geometry_SetUserData :: proc(geometry: ^GEOMETRY, userdata: rawptr) -> RESULT ---
- Geometry_GetUserData :: proc(geometry: ^GEOMETRY, userdata: ^rawptr) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // 'Reverb3D' API
- //
-
- Reverb3D_Release :: proc(reverb3d: ^REVERB3D) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Reverb manipulation.
- //
-
- Reverb3D_Set3DAttributes :: proc(reverb3d: ^REVERB3D, #by_ptr position: VECTOR, mindistance: f32, maxdistance: f32) -> RESULT ---
- Reverb3D_Get3DAttributes :: proc(reverb3d: ^REVERB3D, position: ^VECTOR, mindistance: ^f32, maxdistance: ^f32) -> RESULT ---
- Reverb3D_SetProperties :: proc(reverb3d: ^REVERB3D, #by_ptr properties: REVERB_PROPERTIES) -> RESULT ---
- Reverb3D_GetProperties :: proc(reverb3d: ^REVERB3D, properties: ^REVERB_PROPERTIES) -> RESULT ---
- Reverb3D_SetActive :: proc(reverb3d: ^REVERB3D, active: b32) -> RESULT ---
- Reverb3D_GetActive :: proc(reverb3d: ^REVERB3D, active: ^b32) -> RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Userdata set/get.
- //
-
- Reverb3D_SetUserData :: proc(reverb3d: ^REVERB3D, userdata: rawptr) -> RESULT ---
- Reverb3D_GetUserData :: proc(reverb3d: ^REVERB3D, userdata: ^rawptr) -> RESULT ---
-
-}
diff --git a/sauce/fmod/core/lib/darwin/libfmod.dylib b/sauce/fmod/core/lib/darwin/libfmod.dylib
index 2bf3922..80b7068 100644
Binary files a/sauce/fmod/core/lib/darwin/libfmod.dylib and b/sauce/fmod/core/lib/darwin/libfmod.dylib differ
diff --git a/sauce/fmod/core/lib/darwin/libfmodL.dylib b/sauce/fmod/core/lib/darwin/libfmodL.dylib
index 3c5397a..5da25ba 100644
Binary files a/sauce/fmod/core/lib/darwin/libfmodL.dylib and b/sauce/fmod/core/lib/darwin/libfmodL.dylib differ
diff --git a/sauce/fmod/core/lib/linux/libfmod.so b/sauce/fmod/core/lib/linux/libfmod.so
new file mode 100755
index 0000000..872991e
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmod.so differ
diff --git a/sauce/fmod/core/lib/linux/libfmod.so.13 b/sauce/fmod/core/lib/linux/libfmod.so.13
new file mode 100755
index 0000000..872991e
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmod.so.13 differ
diff --git a/sauce/fmod/core/lib/linux/libfmod.so.13.25 b/sauce/fmod/core/lib/linux/libfmod.so.13.25
new file mode 100755
index 0000000..872991e
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmod.so.13.25 differ
diff --git a/sauce/fmod/core/lib/linux/libfmodL.so b/sauce/fmod/core/lib/linux/libfmodL.so
new file mode 100755
index 0000000..ed3c5e8
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmodL.so differ
diff --git a/sauce/fmod/core/lib/linux/libfmodL.so.13 b/sauce/fmod/core/lib/linux/libfmodL.so.13
new file mode 100755
index 0000000..ed3c5e8
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmodL.so.13 differ
diff --git a/sauce/fmod/core/lib/linux/libfmodL.so.13.25 b/sauce/fmod/core/lib/linux/libfmodL.so.13.25
new file mode 100755
index 0000000..ed3c5e8
Binary files /dev/null and b/sauce/fmod/core/lib/linux/libfmodL.so.13.25 differ
diff --git a/sauce/fmod/core/lib/wasm/fmodL_wasm.a b/sauce/fmod/core/lib/wasm/fmodL_wasm.a
deleted file mode 100644
index 3342f92..0000000
Binary files a/sauce/fmod/core/lib/wasm/fmodL_wasm.a and /dev/null differ
diff --git a/sauce/fmod/core/lib/wasm/fmod_wasm.a b/sauce/fmod/core/lib/wasm/fmod_wasm.a
deleted file mode 100644
index 7879cb5..0000000
Binary files a/sauce/fmod/core/lib/wasm/fmod_wasm.a and /dev/null differ
diff --git a/sauce/fmod/fsbank/fsbank.odin b/sauce/fmod/fsbank/fsbank.odin
index abece57..0d574c1 100644
--- a/sauce/fmod/fsbank/fsbank.odin
+++ b/sauce/fmod/fsbank/fsbank.odin
@@ -115,13 +115,23 @@ MEMORY_REALLOC_CALLBACK :: #type proc(ptr: rawptr, size: u32, type: u32, sourceS
MEMORY_FREE_CALLBACK :: #type proc(ptr: rawptr, type: u32, sourceStr: cstring)
when ODIN_OS == .Windows {
- foreign import lib "lib/x64/fsbank_vs.lib"
-} else when ODIN_OS == .Darwin {
- when fmod.LOGGING_ENABLED {
- foreign import lib "lib/darwin/libfmodL.dylib"
- } else {
- foreign import lib "lib/darwin/libfmod.dylib"
- }
+ foreign import lib "lib/windows/x64/fsbank_vs.lib"
+}
+
+when ODIN_OS == .Darwin {
+ when fmod.LOGGING_ENABLED {
+ foreign import lib "lib/darwin/libfsbankL.dylib"
+ } else {
+ foreign import lib "lib/darwin/libfsbank.dylib"
+ }
+}
+
+when ODIN_OS == .Linux {
+ when fmod.LOGGING_ENABLED {
+ foreign import lib "lib/linux/libfsbankL.so"
+ } else {
+ foreign import lib "lib/linux/libfsbank.so"
+ }
}
@(default_calling_convention = "c", link_prefix = "FSBank_")
diff --git a/sauce/fmod/fsbank/lib/darwin/libfsbank.dylib b/sauce/fmod/fsbank/lib/darwin/libfsbank.dylib
index 8ba0102..81e848a 100644
Binary files a/sauce/fmod/fsbank/lib/darwin/libfsbank.dylib and b/sauce/fmod/fsbank/lib/darwin/libfsbank.dylib differ
diff --git a/sauce/fmod/fsbank/lib/darwin/libfsbankL.dylib b/sauce/fmod/fsbank/lib/darwin/libfsbankL.dylib
index d79b19a..f495799 100644
Binary files a/sauce/fmod/fsbank/lib/darwin/libfsbankL.dylib and b/sauce/fmod/fsbank/lib/darwin/libfsbankL.dylib differ
diff --git a/sauce/fmod/fsbank/lib/darwin/libfsbvorbis.dylib b/sauce/fmod/fsbank/lib/darwin/libfsbvorbis.dylib
index 6e2c24a..6dc43c4 100644
Binary files a/sauce/fmod/fsbank/lib/darwin/libfsbvorbis.dylib and b/sauce/fmod/fsbank/lib/darwin/libfsbvorbis.dylib differ
diff --git a/sauce/fmod/fsbank/lib/darwin/libopus.dylib b/sauce/fmod/fsbank/lib/darwin/libopus.dylib
index b0a5b85..5f3696f 100644
Binary files a/sauce/fmod/fsbank/lib/darwin/libopus.dylib and b/sauce/fmod/fsbank/lib/darwin/libopus.dylib differ
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbank.so b/sauce/fmod/fsbank/lib/linux/libfsbank.so
new file mode 100755
index 0000000..ef9f1a3
Binary files /dev/null and b/sauce/fmod/fsbank/lib/linux/libfsbank.so differ
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbank.so.13 b/sauce/fmod/fsbank/lib/linux/libfsbank.so.13
new file mode 100755
index 0000000..ef9f1a3
Binary files /dev/null and b/sauce/fmod/fsbank/lib/linux/libfsbank.so.13 differ
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbank.so.13.25 b/sauce/fmod/fsbank/lib/linux/libfsbank.so.13.25
new file mode 100755
index 0000000..ef9f1a3
Binary files /dev/null and b/sauce/fmod/fsbank/lib/linux/libfsbank.so.13.25 differ
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbankL.so b/sauce/fmod/fsbank/lib/linux/libfsbankL.so
new file mode 120000
index 0000000..f127797
--- /dev/null
+++ b/sauce/fmod/fsbank/lib/linux/libfsbankL.so
@@ -0,0 +1 @@
+libfsbankL.so.13.25
\ No newline at end of file
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13 b/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13
new file mode 120000
index 0000000..f127797
--- /dev/null
+++ b/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13
@@ -0,0 +1 @@
+libfsbankL.so.13.25
\ No newline at end of file
diff --git a/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13.25 b/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13.25
new file mode 100755
index 0000000..95b6f03
Binary files /dev/null and b/sauce/fmod/fsbank/lib/linux/libfsbankL.so.13.25 differ
diff --git a/sauce/fmod/studio/fmod_studio.odin b/sauce/fmod/studio/fmod_studio.odin
index e33aa48..cf7e7f8 100644
--- a/sauce/fmod/studio/fmod_studio.odin
+++ b/sauce/fmod/studio/fmod_studio.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_studio
/* ======================================================================================== */
@@ -21,6 +20,23 @@ when ODIN_OS == .Windows {
foreign import lib "lib/windows/x64/fmodstudio_vc.lib"
}
}
+
+when ODIN_OS == .Darwin {
+ when fmod.LOGGING_ENABLED {
+ foreign import lib "lib/darwin/libfmodstudioL.dylib"
+ } else {
+ foreign import lib "lib/darwin/libfmodstudio.dylib"
+ }
+}
+
+when ODIN_OS == .Linux {
+ when fmod.LOGGING_ENABLED {
+ foreign import lib "lib/linux/libfmodstudioL.so"
+ } else {
+ foreign import lib "lib/linux/libfmodstudio.so"
+ }
+}
+
@(default_calling_convention = "c", link_prefix = "FMOD_Studio_")
foreign lib {
diff --git a/sauce/fmod/studio/fmod_studio_common.odin b/sauce/fmod/studio/fmod_studio_common.odin
index b978829..91eacd7 100644
--- a/sauce/fmod/studio/fmod_studio_common.odin
+++ b/sauce/fmod/studio/fmod_studio_common.odin
@@ -1,4 +1,3 @@
-#+build windows
package fmod_studio
/* ======================================================================================== */
diff --git a/sauce/fmod/studio/fmod_studio_common_darwin.odin b/sauce/fmod/studio/fmod_studio_common_darwin.odin
deleted file mode 100644
index 91eacd7..0000000
--- a/sauce/fmod/studio/fmod_studio_common_darwin.odin
+++ /dev/null
@@ -1,336 +0,0 @@
-package fmod_studio
-
-/* ======================================================================================== */
-/* FMOD Studio API - Common C/C++ header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* This header defines common enumerations, structs and callbacks that are shared between */
-/* the C and C++ i32erfaces. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/studio-api.html */
-/* ======================================================================================== */
-
-import fmod "../core"
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD Studio types
-//
-
-SYSTEM :: struct {}
-EVENTDESCRIPTION :: struct {}
-EVENTINSTANCE :: struct {}
-BUS :: struct {}
-VCA :: struct {}
-BANK :: struct {}
-COMMANDREPLAY :: struct {}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD Studio constants
-//
-
-LOAD_MEMORY_ALIGNMENT :: 32
-
-INITFLAGS :: distinct u32
-INIT_NORMAL :: 0x00000000
-INIT_LIVEUPDATE :: 0x00000001
-INIT_ALLOW_MISSING_PLUGINS :: 0x00000002
-INIT_SYNCHRONOUS_UPDATE :: 0x00000004
-INIT_DEFERRED_CALLBACKS :: 0x00000008
-INIT_LOAD_FROM_UPDATE :: 0x00000010
-INIT_MEMORY_TRACKING :: 0x00000020
-
-PARAMETER_FLAGS :: distinct u32
-PARAMETER_READONLY :: 0x00000001
-PARAMETER_AUTOMATIC :: 0x00000002
-PARAMETER_GLOBAL :: 0x00000004
-PARAMETER_DISCRETE :: 0x00000008
-PARAMETER_LABELED :: 0x00000010
-
-SYSTEM_CALLBACK_TYPE :: distinct u32
-SYSTEM_CALLBACK_PREUPDATE :: 0x00000001
-SYSTEM_CALLBACK_POSTUPDATE :: 0x00000002
-SYSTEM_CALLBACK_BANK_UNLOAD :: 0x00000004
-SYSTEM_CALLBACK_LIVEUPDATE_CONNECTED :: 0x00000008
-SYSTEM_CALLBACK_LIVEUPDATE_DISCONNECTED :: 0x00000010
-SYSTEM_CALLBACK_ALL :: 0xFFFFFFFF
-
-EVENT_CALLBACK_TYPE :: distinct u32
-EVENT_CALLBACK_CREATED :: 0x00000001
-EVENT_CALLBACK_DESTROYED :: 0x00000002
-EVENT_CALLBACK_STARTING :: 0x00000004
-EVENT_CALLBACK_STARTED :: 0x00000008
-EVENT_CALLBACK_RESTARTED :: 0x00000010
-EVENT_CALLBACK_STOPPED :: 0x00000020
-EVENT_CALLBACK_START_FAILED :: 0x00000040
-EVENT_CALLBACK_CREATE_PROGRAMMER_SOUND :: 0x00000080
-EVENT_CALLBACK_DESTROY_PROGRAMMER_SOUND :: 0x00000100
-EVENT_CALLBACK_PLUGIN_CREATED :: 0x00000200
-EVENT_CALLBACK_PLUGIN_DESTROYED :: 0x00000400
-EVENT_CALLBACK_TIMELINE_MARKER :: 0x00000800
-EVENT_CALLBACK_TIMELINE_BEAT :: 0x00001000
-EVENT_CALLBACK_SOUND_PLAYED :: 0x00002000
-EVENT_CALLBACK_SOUND_STOPPED :: 0x00004000
-EVENT_CALLBACK_REAL_TO_VIRTUAL :: 0x00008000
-EVENT_CALLBACK_VIRTUAL_TO_REAL :: 0x00010000
-EVENT_CALLBACK_START_EVENT_COMMAND :: 0x00020000
-EVENT_CALLBACK_NESTED_TIMELINE_BEAT :: 0x00040000
-EVENT_CALLBACK_ALL :: 0xFFFFFFFF
-
-LOAD_BANK_FLAGS :: distinct u32
-LOAD_BANK_NORMAL :: 0x00000000
-LOAD_BANK_NONBLOCKING :: 0x00000001
-LOAD_BANK_DECOMPRESS_SAMPLES :: 0x00000002
-LOAD_BANK_UNENCRYPTED :: 0x00000004
-
-COMMANDCAPTURE_FLAGS :: distinct u32
-COMMANDCAPTURE_NORMAL :: 0x00000000
-COMMANDCAPTURE_FILEFLUSH :: 0x00000001
-COMMANDCAPTURE_SKIP_INITIAL_STATE :: 0x00000002
-
-COMMANDREPLAY_FLAGS :: distinct u32
-COMMANDREPLAY_NORMAL :: 0x00000000
-COMMANDREPLAY_SKIP_CLEANUP :: 0x00000001
-COMMANDREPLAY_FAST_FORWARD :: 0x00000002
-COMMANDREPLAY_SKIP_BANK_LOAD :: 0x00000004
-
-LOADING_STATE :: enum i32 {
- LOADING_STATE_UNLOADING,
- LOADING_STATE_UNLOADED,
- LOADING_STATE_LOADING,
- LOADING_STATE_LOADED,
- LOADING_STATE_ERROR,
-}
-
-LOAD_MEMORY_MODE :: enum i32 {
- LOAD_MEMORY,
- LOAD_MEMORY_POINT,
-}
-
-PARAMETER_TYPE :: enum i32 {
- PARAMETER_GAME_CONTROLLED,
- PARAMETER_AUTOMATIC_DISTANCE,
- PARAMETER_AUTOMATIC_EVENT_CONE_ANGLE,
- PARAMETER_AUTOMATIC_EVENT_ORIENTATION,
- PARAMETER_AUTOMATIC_DIRECTION,
- PARAMETER_AUTOMATIC_ELEVATION,
- PARAMETER_AUTOMATIC_LISTENER_ORIENTATION,
- PARAMETER_AUTOMATIC_SPEED,
- PARAMETER_AUTOMATIC_SPEED_ABSOLUTE,
- PARAMETER_AUTOMATIC_DISTANCE_NORMALIZED,
-}
-
-USER_PROPERTY_TYPE :: enum i32 {
- USER_PROPERTY_TYPE_INTEGER,
- USER_PROPERTY_TYPE_BOOLEAN,
- USER_PROPERTY_TYPE_FLOAT,
- USER_PROPERTY_TYPE_STRING,
-}
-
-EVENT_PROPERTY :: enum i32 {
- EVENT_PROPERTY_CHANNELPRIORITY,
- EVENT_PROPERTY_SCHEDULE_DELAY,
- EVENT_PROPERTY_SCHEDULE_LOOKAHEAD,
- EVENT_PROPERTY_MINIMUM_DISTANCE,
- EVENT_PROPERTY_MAXIMUM_DISTANCE,
- EVENT_PROPERTY_COOLDOWN,
- EVENT_PROPERTY_MAX,
-}
-
-PLAYBACK_STATE :: enum i32 {
- PLAYBACK_PLAYING,
- PLAYBACK_SUSTAINING,
- PLAYBACK_STOPPED,
- PLAYBACK_STARTING,
- PLAYBACK_STOPPING,
-}
-
-STOP_MODE :: enum i32 {
- STOP_ALLOWFADEOUT,
- STOP_IMMEDIATE,
-}
-
-INSTANCETYPE :: enum i32 {
- INSTANCETYPE_NONE,
- INSTANCETYPE_SYSTEM,
- INSTANCETYPE_EVENTDESCRIPTION,
- INSTANCETYPE_EVENTINSTANCE,
- INSTANCETYPE_PARAMETERINSTANCE,
- INSTANCETYPE_BUS,
- INSTANCETYPE_VCA,
- INSTANCETYPE_BANK,
- INSTANCETYPE_COMMANDREPLAY,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD Studio structures
-//
-
-BANK_INFO :: struct {
- size: i32,
- userdata: rawptr,
- userdatalength: i32,
- opencallback: fmod.FILE_OPEN_CALLBACK,
- closecallback: fmod.FILE_CLOSE_CALLBACK,
- readcallback: fmod.FILE_READ_CALLBACK,
- seekcallback: fmod.FILE_SEEK_CALLBACK,
-}
-
-PARAMETER_ID :: struct {
- data1: u32,
- data2: u32,
-}
-
-PARAMETER_DESCRIPTION :: struct {
- name: cstring,
- id: PARAMETER_ID,
- minimum: f32,
- maximum: f32,
- defaultvalue: f32,
- type: PARAMETER_TYPE,
- flags: PARAMETER_FLAGS,
- guid: fmod.GUID,
-}
-
-USER_PROPERTY :: struct {
- name: cstring,
- type: USER_PROPERTY_TYPE,
- using data: struct #raw_union {
- i32value: i32,
- boolvalue: b32,
- f32value: f32,
- stringvalue: cstring,
- },
-}
-
-PROGRAMMER_SOUND_PROPERTIES :: struct {
- name: cstring,
- sound: ^fmod.SOUND,
- subsoundIndex: i32,
-}
-
-PLUGIN_INSTANCE_PROPERTIES :: struct {
- name: cstring,
- dsp: ^fmod.DSP,
-}
-
-TIMELINE_MARKER_PROPERTIES :: struct {
- name: cstring,
- position: i32,
-}
-
-TIMELINE_BEAT_PROPERTIES :: struct {
- bar: i32,
- beat: i32,
- position: i32,
- tempo: f32,
- timesignatureupper: i32,
- timesignaturelower: i32,
-}
-
-TIMELINE_NESTED_BEAT_PROPERTIES :: struct {
- eventid: fmod.GUID,
- properties: TIMELINE_BEAT_PROPERTIES,
-}
-
-ADVANCEDSETTINGS :: struct {
- cbsize: i32,
- commandqueuesize: u32,
- handleinitialsize: u32,
- studioupdateperiod: i32,
- idlesampledatapoolsize: i32,
- streamingscheduledelay: u32,
- encryptionkey: cstring,
-}
-
-CPU_USAGE :: struct {
- update: f32,
-}
-
-BUFFER_INFO :: struct {
- currentusage: i32,
- peakusage: i32,
- capacity: i32,
- stallcount: i32,
- stalltime: f32,
-}
-
-BUFFER_USAGE :: struct {
- studiocommandqueue: BUFFER_INFO,
- studiohandle: BUFFER_INFO,
-}
-
-SOUND_INFO :: struct {
- name_or_data: cstring,
- mode: fmod.MODE,
- exinfo: fmod.CREATESOUNDEXINFO,
- subsoundindex: i32,
-}
-
-COMMAND_INFO :: struct {
- commandname: cstring,
- parentcommandindex: i32,
- framenumber: i32,
- frametime: f32,
- instancetype: INSTANCETYPE,
- outputtype: INSTANCETYPE,
- instancehandle: u32,
- outputhandle: u32,
-}
-
-MEMORY_USAGE :: struct {
- exclusive: i32,
- inclusive: i32,
- sampledata: i32,
-}
-
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////////////
-// FMOD Studio callbacks.
-//
-
-
-SYSTEM_CALLBACK :: #type proc(
- system: ^SYSTEM,
- _type: SYSTEM_CALLBACK_TYPE,
- commanddata: rawptr,
- userdata: rawptr,
-) -> fmod.RESULT
-
-EVENT_CALLBACK :: #type proc(
- _type: EVENT_CALLBACK_TYPE,
- event: ^EVENTINSTANCE,
- parameters: rawptr,
-) -> fmod.RESULT
-
-COMMANDREPLAY_FRAME_CALLBACK :: #type proc(
- replay: ^COMMANDREPLAY,
- commandindex: i32,
- currenttime: f32,
- userdata: rawptr,
-) -> fmod.RESULT
-
-COMMANDREPLAY_LOAD_BANK_CALLBACK :: #type proc(
- replay: ^COMMANDREPLAY,
- commandindex: i32,
- #by_ptr bankguid: fmod.GUID,
- bankfilename: cstring,
- flags: LOAD_BANK_FLAGS,
- bank: ^^BANK,
- userdata: rawptr,
-) -> fmod.RESULT
-
-COMMANDREPLAY_CREATE_INSTANCE_CALLBACK :: #type proc(
- replay: ^COMMANDREPLAY,
- commandindex: i32,
- eventdescription: ^EVENTDESCRIPTION,
- instance: ^^EVENTINSTANCE,
- userdata: rawptr,
-) -> fmod.RESULT
diff --git a/sauce/fmod/studio/fmod_studio_darwin.odin b/sauce/fmod/studio/fmod_studio_darwin.odin
deleted file mode 100644
index 2511ac2..0000000
--- a/sauce/fmod/studio/fmod_studio_darwin.odin
+++ /dev/null
@@ -1,269 +0,0 @@
-package fmod_studio
-
-/* ======================================================================================== */
-/* FMOD Studio API - C header file. */
-/* Copyright (c), Firelight Technologies Pty, Ltd. 2004-2023. */
-/* */
-/* Use this header in conjunction with fmod_studio_common.h (which contains all the */
-/* constants / callbacks) to develop using the C language. */
-/* */
-/* For more detail visit: */
-/* https://fmod.com/docs/2.02/api/studio-api.html */
-/* ======================================================================================== */
-
-import fmod "../core"
-
-when fmod.LOGGING_ENABLED {
- foreign import lib "lib/darwin/libfmodstudioL.dylib"
-} else {
- foreign import lib "lib/darwin/libfmodstudio.dylib"
-}
-
-@(default_calling_convention = "c", link_prefix = "FMOD_Studio_")
-foreign lib {
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Global
- //
-
- ParseID :: proc(idstring: cstring, id: ^fmod.GUID) -> fmod.RESULT ---
- System_Create :: proc(system: ^^SYSTEM, headerversion: u32) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // System
- //
-
- System_IsValid :: proc(system: ^SYSTEM) -> b32 ---
- System_SetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> fmod.RESULT ---
- System_GetAdvancedSettings :: proc(system: ^SYSTEM, settings: ^ADVANCEDSETTINGS) -> fmod.RESULT ---
- System_Initialize :: proc(system: ^SYSTEM, maxchannels: i32, studioflags: INITFLAGS, flags: fmod.INITFLAGS, extradriverdata: rawptr) -> fmod.RESULT ---
- System_Release :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_Update :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_GetCoreSystem :: proc(system: ^SYSTEM, coresystem: ^^fmod.SYSTEM) -> fmod.RESULT ---
- System_GetEvent :: proc(system: ^SYSTEM, pathOrID: cstring, event: ^^EVENTDESCRIPTION) -> fmod.RESULT ---
- System_GetBus :: proc(system: ^SYSTEM, pathOrID: cstring, bus: ^^BUS) -> fmod.RESULT ---
- System_GetVCA :: proc(system: ^SYSTEM, pathOrID: cstring, vca: ^^VCA) -> fmod.RESULT ---
- System_GetBank :: proc(system: ^SYSTEM, pathOrID: cstring, bank: ^^BANK) -> fmod.RESULT ---
- System_GetEventByID :: proc(system: ^SYSTEM, #by_ptr id: fmod.GUID, event: ^^EVENTDESCRIPTION) -> fmod.RESULT ---
- System_GetBusByID :: proc(system: ^SYSTEM, #by_ptr id: fmod.GUID, bus: ^^BUS) -> fmod.RESULT ---
- System_GetVCAByID :: proc(system: ^SYSTEM, #by_ptr id: fmod.GUID, vca: ^^VCA) -> fmod.RESULT ---
- System_GetBankByID :: proc(system: ^SYSTEM, #by_ptr id: fmod.GUID, bank: ^^BANK) -> fmod.RESULT ---
- System_GetSoundInfo :: proc(system: ^SYSTEM, key: cstring, info: ^SOUND_INFO) -> fmod.RESULT ---
- System_GetParameterDescriptionByName :: proc(system: ^SYSTEM, name: cstring, parameter: ^PARAMETER_DESCRIPTION) -> fmod.RESULT ---
- System_GetParameterDescriptionByID :: proc(system: ^SYSTEM, id: PARAMETER_ID, parameter: ^PARAMETER_DESCRIPTION) -> fmod.RESULT ---
- System_GetParameterLabelByName :: proc(system: ^SYSTEM, name: cstring, labelindex: i32, label: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- System_GetParameterLabelByID :: proc(system: ^SYSTEM, id: PARAMETER_ID, labelindex: i32, label: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- System_GetParameterByID :: proc(system: ^SYSTEM, id: PARAMETER_ID, value: ^f32, finalvalue: ^f32) -> fmod.RESULT ---
- System_SetParameterByID :: proc(system: ^SYSTEM, id: PARAMETER_ID, value: f32, ignoreseekspeed: b32) -> fmod.RESULT ---
- System_SetParameterByIDWithLabel :: proc(system: ^SYSTEM, id: PARAMETER_ID, label: cstring, ignoreseekspeed: b32) -> fmod.RESULT ---
- System_SetParametersByIDs :: proc(system: ^SYSTEM, #by_ptr ids: PARAMETER_ID, values: ^f32, count: i32, ignoreseekspeed: b32) -> fmod.RESULT ---
- System_GetParameterByName :: proc(system: ^SYSTEM, name: cstring, value: ^f32, finalvalue: ^f32) -> fmod.RESULT ---
- System_SetParameterByName :: proc(system: ^SYSTEM, name: cstring, value: f32, ignoreseekspeed: b32) -> fmod.RESULT ---
- System_SetParameterByNameWithLabel :: proc(system: ^SYSTEM, name: cstring, label: cstring, ignoreseekspeed: b32) -> fmod.RESULT ---
- System_LookupID :: proc(system: ^SYSTEM, path: cstring, id: ^fmod.GUID) -> fmod.RESULT ---
- System_LookupPath :: proc(system: ^SYSTEM, #by_ptr id: fmod.GUID, path: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- System_GetNumListeners :: proc(system: ^SYSTEM, numlisteners: ^i32) -> fmod.RESULT ---
- System_SetNumListeners :: proc(system: ^SYSTEM, numlisteners: i32) -> fmod.RESULT ---
- System_GetListenerAttributes :: proc(system: ^SYSTEM, index: i32, attributes: ^fmod._3D_ATTRIBUTES, attenuationposition: ^fmod.VECTOR) -> fmod.RESULT ---
- System_SetListenerAttributes :: proc(system: ^SYSTEM, index: i32, #by_ptr attributes: fmod._3D_ATTRIBUTES, attenuationposition: ^fmod.VECTOR) -> fmod.RESULT ---
- System_GetListenerWeight :: proc(system: ^SYSTEM, index: i32, weight: ^f32) -> fmod.RESULT ---
- System_SetListenerWeight :: proc(system: ^SYSTEM, index: i32, weight: f32) -> fmod.RESULT ---
- System_LoadBankFile :: proc(system: ^SYSTEM, filename: cstring, flags: LOAD_BANK_FLAGS, bank: ^^BANK) -> fmod.RESULT ---
- System_LoadBankMemory :: proc(system: ^SYSTEM, buffer: cstring, length: i32, mode: LOAD_MEMORY_MODE, flags: LOAD_BANK_FLAGS, bank: ^^BANK) -> fmod.RESULT ---
- System_LoadBankCustom :: proc(system: ^SYSTEM, #by_ptr info: BANK_INFO, flags: LOAD_BANK_FLAGS, bank: ^^BANK) -> fmod.RESULT ---
- // System_RegisterPlugin :: proc(system: ^SYSTEM, #by_ptr description: fmod.DSP_DESCRIPTION) -> fmod.RESULT ---
- System_UnregisterPlugin :: proc(system: ^SYSTEM, name: cstring) -> fmod.RESULT ---
- System_UnloadAll :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_FlushCommands :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_FlushSampleLoading :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_StartCommandCapture :: proc(system: ^SYSTEM, filename: cstring, flags: COMMANDCAPTURE_FLAGS) -> fmod.RESULT ---
- System_StopCommandCapture :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_LoadCommandReplay :: proc(system: ^SYSTEM, filename: cstring, flags: COMMANDREPLAY_FLAGS, replay: ^^COMMANDREPLAY) -> fmod.RESULT ---
- System_GetBankCount :: proc(system: ^SYSTEM, count: ^i32) -> fmod.RESULT ---
- System_GetBankList :: proc(system: ^SYSTEM, array: ^^BANK, capacity: i32, count: ^i32) -> fmod.RESULT ---
- System_GetParameterDescriptionCount :: proc(system: ^SYSTEM, count: ^i32) -> fmod.RESULT ---
- System_GetParameterDescriptionList :: proc(system: ^SYSTEM, array: ^PARAMETER_DESCRIPTION, capacity: i32, count: ^i32) -> fmod.RESULT ---
- System_GetCPUUsage :: proc(system: ^SYSTEM, usage: ^CPU_USAGE, usage_core: ^fmod.CPU_USAGE) -> fmod.RESULT ---
- System_GetBufferUsage :: proc(system: ^SYSTEM, usage: ^BUFFER_USAGE) -> fmod.RESULT ---
- System_ResetBufferUsage :: proc(system: ^SYSTEM) -> fmod.RESULT ---
- System_SetCallback :: proc(system: ^SYSTEM, callback: SYSTEM_CALLBACK, callbackmask: SYSTEM_CALLBACK_TYPE) -> fmod.RESULT ---
- System_SetUserData :: proc(system: ^SYSTEM, userdata: rawptr) -> fmod.RESULT ---
- System_GetUserData :: proc(system: ^SYSTEM, userdata: ^rawptr) -> fmod.RESULT ---
- System_GetMemoryUsage :: proc(system: ^SYSTEM, memoryusage: ^MEMORY_USAGE) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // EventDescription
- //
-
- EventDescription_IsValid :: proc(eventdescription: ^EVENTDESCRIPTION) -> b32 ---
- EventDescription_GetID :: proc(eventdescription: ^EVENTDESCRIPTION, id: ^fmod.GUID) -> fmod.RESULT ---
- EventDescription_GetPath :: proc(eventdescription: ^EVENTDESCRIPTION, path: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- EventDescription_GetParameterDescriptionCount :: proc(eventdescription: ^EVENTDESCRIPTION, count: ^i32) -> fmod.RESULT ---
- EventDescription_GetParameterDescriptionByIndex :: proc(eventdescription: ^EVENTDESCRIPTION, index: i32, parameter: ^PARAMETER_DESCRIPTION) -> fmod.RESULT ---
- EventDescription_GetParameterDescriptionByName :: proc(eventdescription: ^EVENTDESCRIPTION, name: cstring, parameter: ^PARAMETER_DESCRIPTION) -> fmod.RESULT ---
- EventDescription_GetParameterDescriptionByID :: proc(eventdescription: ^EVENTDESCRIPTION, id: PARAMETER_ID, parameter: ^PARAMETER_DESCRIPTION) -> fmod.RESULT ---
- EventDescription_GetParameterLabelByIndex :: proc(eventdescription: ^EVENTDESCRIPTION, index: i32, labelindex: i32, label: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- EventDescription_GetParameterLabelByName :: proc(eventdescription: ^EVENTDESCRIPTION, name: cstring, labelindex: i32, label: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- EventDescription_GetParameterLabelByID :: proc(eventdescription: ^EVENTDESCRIPTION, id: PARAMETER_ID, labelindex: i32, label: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- EventDescription_GetUserPropertyCount :: proc(eventdescription: ^EVENTDESCRIPTION, count: ^i32) -> fmod.RESULT ---
- EventDescription_GetUserPropertyByIndex :: proc(eventdescription: ^EVENTDESCRIPTION, index: i32, property: ^USER_PROPERTY) -> fmod.RESULT ---
- EventDescription_GetUserProperty :: proc(eventdescription: ^EVENTDESCRIPTION, name: cstring, property: ^USER_PROPERTY) -> fmod.RESULT ---
- EventDescription_GetLength :: proc(eventdescription: ^EVENTDESCRIPTION, length: ^i32) -> fmod.RESULT ---
- EventDescription_GetMinMaxDistance :: proc(eventdescription: ^EVENTDESCRIPTION, min: ^f32, max: ^f32) -> fmod.RESULT ---
- EventDescription_GetSoundSize :: proc(eventdescription: ^EVENTDESCRIPTION, size: ^f32) -> fmod.RESULT ---
- EventDescription_IsSnapshot :: proc(eventdescription: ^EVENTDESCRIPTION, snapshot: ^b32) -> fmod.RESULT ---
- EventDescription_IsOneshot :: proc(eventdescription: ^EVENTDESCRIPTION, oneshot: ^b32) -> fmod.RESULT ---
- EventDescription_IsStream :: proc(eventdescription: ^EVENTDESCRIPTION, isStream: ^b32) -> fmod.RESULT ---
- EventDescription_Is3D :: proc(eventdescription: ^EVENTDESCRIPTION, is3D: ^b32) -> fmod.RESULT ---
- EventDescription_IsDopplerEnabled :: proc(eventdescription: ^EVENTDESCRIPTION, doppler: ^b32) -> fmod.RESULT ---
- EventDescription_HasSustainPoint :: proc(eventdescription: ^EVENTDESCRIPTION, sustainPoint: ^b32) -> fmod.RESULT ---
- EventDescription_CreateInstance :: proc(eventdescription: ^EVENTDESCRIPTION, instance: ^^EVENTINSTANCE) -> fmod.RESULT ---
- EventDescription_GetInstanceCount :: proc(eventdescription: ^EVENTDESCRIPTION, count: ^i32) -> fmod.RESULT ---
- EventDescription_GetInstanceList :: proc(eventdescription: ^EVENTDESCRIPTION, array: ^^EVENTINSTANCE, capacity: i32, count: ^i32) -> fmod.RESULT ---
- EventDescription_LoadSampleData :: proc(eventdescription: ^EVENTDESCRIPTION) -> fmod.RESULT ---
- EventDescription_UnloadSampleData :: proc(eventdescription: ^EVENTDESCRIPTION) -> fmod.RESULT ---
- EventDescription_GetSampleLoadingState :: proc(eventdescription: ^EVENTDESCRIPTION, state: ^LOADING_STATE) -> fmod.RESULT ---
- EventDescription_ReleaseAllInstances :: proc(eventdescription: ^EVENTDESCRIPTION) -> fmod.RESULT ---
- EventDescription_SetCallback :: proc(eventdescription: ^EVENTDESCRIPTION, callback: EVENT_CALLBACK, callbackmask: EVENT_CALLBACK_TYPE) -> fmod.RESULT ---
- EventDescription_GetUserData :: proc(eventdescription: ^EVENTDESCRIPTION, userdata: ^rawptr) -> fmod.RESULT ---
- EventDescription_SetUserData :: proc(eventdescription: ^EVENTDESCRIPTION, userdata: rawptr) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // EventInstance
- //
-
- EventInstance_IsValid :: proc(eventinstance: ^EVENTINSTANCE) -> b32 ---
- EventInstance_GetDescription :: proc(eventinstance: ^EVENTINSTANCE, description: ^^EVENTDESCRIPTION) -> fmod.RESULT ---
- EventInstance_GetVolume :: proc(eventinstance: ^EVENTINSTANCE, volume: ^f32, finalvolume: ^f32) -> fmod.RESULT ---
- EventInstance_SetVolume :: proc(eventinstance: ^EVENTINSTANCE, volume: f32) -> fmod.RESULT ---
- EventInstance_GetPitch :: proc(eventinstance: ^EVENTINSTANCE, pitch: ^f32, finalpitch: ^f32) -> fmod.RESULT ---
- EventInstance_SetPitch :: proc(eventinstance: ^EVENTINSTANCE, pitch: f32) -> fmod.RESULT ---
- EventInstance_Get3DAttributes :: proc(eventinstance: ^EVENTINSTANCE, attributes: ^fmod._3D_ATTRIBUTES) -> fmod.RESULT ---
- EventInstance_Set3DAttributes :: proc(eventinstance: ^EVENTINSTANCE, attributes: ^fmod._3D_ATTRIBUTES) -> fmod.RESULT ---
- EventInstance_GetListenerMask :: proc(eventinstance: ^EVENTINSTANCE, mask: ^u32) -> fmod.RESULT ---
- EventInstance_SetListenerMask :: proc(eventinstance: ^EVENTINSTANCE, mask: u32) -> fmod.RESULT ---
- EventInstance_GetProperty :: proc(eventinstance: ^EVENTINSTANCE, index: EVENT_PROPERTY, value: ^f32) -> fmod.RESULT ---
- EventInstance_SetProperty :: proc(eventinstance: ^EVENTINSTANCE, index: EVENT_PROPERTY, value: f32) -> fmod.RESULT ---
- EventInstance_GetReverbLevel :: proc(eventinstance: ^EVENTINSTANCE, index: i32, level: ^f32) -> fmod.RESULT ---
- EventInstance_SetReverbLevel :: proc(eventinstance: ^EVENTINSTANCE, index: i32, level: f32) -> fmod.RESULT ---
- EventInstance_GetPaused :: proc(eventinstance: ^EVENTINSTANCE, paused: ^b32) -> fmod.RESULT ---
- EventInstance_SetPaused :: proc(eventinstance: ^EVENTINSTANCE, paused: b32) -> fmod.RESULT ---
- EventInstance_Start :: proc(eventinstance: ^EVENTINSTANCE) -> fmod.RESULT ---
- EventInstance_Stop :: proc(eventinstance: ^EVENTINSTANCE, mode: STOP_MODE) -> fmod.RESULT ---
- EventInstance_GetTimelinePosition :: proc(eventinstance: ^EVENTINSTANCE, position: ^i32) -> fmod.RESULT ---
- EventInstance_SetTimelinePosition :: proc(eventinstance: ^EVENTINSTANCE, position: i32) -> fmod.RESULT ---
- EventInstance_GetPlaybackState :: proc(eventinstance: ^EVENTINSTANCE, state: ^PLAYBACK_STATE) -> fmod.RESULT ---
- EventInstance_GetChannelGroup :: proc(eventinstance: ^EVENTINSTANCE, group: ^^fmod.CHANNELGROUP) -> fmod.RESULT ---
- EventInstance_GetMinMaxDistance :: proc(eventinstance: ^EVENTINSTANCE, min: ^f32, max: ^f32) -> fmod.RESULT ---
- EventInstance_Release :: proc(eventinstance: ^EVENTINSTANCE) -> fmod.RESULT ---
- EventInstance_IsVirtual :: proc(eventinstance: ^EVENTINSTANCE, virtualstate: ^b32) -> fmod.RESULT ---
- EventInstance_GetParameterByName :: proc(eventinstance: ^EVENTINSTANCE, name: cstring, value: ^f32, finalvalue: ^f32) -> fmod.RESULT ---
- EventInstance_SetParameterByName :: proc(eventinstance: ^EVENTINSTANCE, name: cstring, value: f32, ignoreseekspeed: b32) -> fmod.RESULT ---
- EventInstance_SetParameterByNameWithLabel :: proc(eventinstance: ^EVENTINSTANCE, name: cstring, label: cstring, ignoreseekspeed: b32) -> fmod.RESULT ---
- EventInstance_GetParameterByID :: proc(eventinstance: ^EVENTINSTANCE, id: PARAMETER_ID, value: ^f32, finalvalue: ^f32) -> fmod.RESULT ---
- EventInstance_SetParameterByID :: proc(eventinstance: ^EVENTINSTANCE, id: PARAMETER_ID, value: f32, ignoreseekspeed: b32) -> fmod.RESULT ---
- EventInstance_SetParameterByIDWithLabel :: proc(eventinstance: ^EVENTINSTANCE, id: PARAMETER_ID, label: cstring, ignoreseekspeed: b32) -> fmod.RESULT ---
- EventInstance_SetParametersByIDs :: proc(eventinstance: ^EVENTINSTANCE, #by_ptr ids: PARAMETER_ID, values: ^f32, count: i32, ignoreseekspeed: b32) -> fmod.RESULT ---
- EventInstance_KeyOff :: proc(eventinstance: ^EVENTINSTANCE) -> fmod.RESULT ---
- EventInstance_SetCallback :: proc(eventinstance: ^EVENTINSTANCE, callback: EVENT_CALLBACK, callbackmask: EVENT_CALLBACK_TYPE) -> fmod.RESULT ---
- EventInstance_GetUserData :: proc(eventinstance: ^EVENTINSTANCE, userdata: ^rawptr) -> fmod.RESULT ---
- EventInstance_SetUserData :: proc(eventinstance: ^EVENTINSTANCE, userdata: rawptr) -> fmod.RESULT ---
- EventInstance_GetCPUUsage :: proc(eventinstance: ^EVENTINSTANCE, exclusive: ^u32, inclusive: ^u32) -> fmod.RESULT ---
- EventInstance_GetMemoryUsage :: proc(eventinstance: ^EVENTINSTANCE, memoryusage: ^MEMORY_USAGE) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Bus
- //
-
- Bus_IsValid :: proc(bus: ^BUS) -> b32 ---
- Bus_GetID :: proc(bus: ^BUS, id: ^fmod.GUID) -> fmod.RESULT ---
- Bus_GetPath :: proc(bus: ^BUS, path: [^]u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- Bus_GetVolume :: proc(bus: ^BUS, volume: ^f32, finalvolume: ^f32) -> fmod.RESULT ---
- Bus_SetVolume :: proc(bus: ^BUS, volume: f32) -> fmod.RESULT ---
- Bus_GetPaused :: proc(bus: ^BUS, paused: ^b32) -> fmod.RESULT ---
- Bus_SetPaused :: proc(bus: ^BUS, paused: b32) -> fmod.RESULT ---
- Bus_GetMute :: proc(bus: ^BUS, mute: ^b32) -> fmod.RESULT ---
- Bus_SetMute :: proc(bus: ^BUS, mute: b32) -> fmod.RESULT ---
- Bus_StopAllEvents :: proc(bus: ^BUS, mode: STOP_MODE) -> fmod.RESULT ---
- Bus_GetPortIndex :: proc(bus: ^BUS, index: ^fmod.PORT_INDEX) -> fmod.RESULT ---
- Bus_SetPortIndex :: proc(bus: ^BUS, index: fmod.PORT_INDEX) -> fmod.RESULT ---
- Bus_LockChannelGroup :: proc(bus: ^BUS) -> fmod.RESULT ---
- Bus_UnlockChannelGroup :: proc(bus: ^BUS) -> fmod.RESULT ---
- Bus_GetChannelGroup :: proc(bus: ^BUS, group: ^^fmod.CHANNELGROUP) -> fmod.RESULT ---
- Bus_GetCPUUsage :: proc(bus: ^BUS, exclusive: ^u32, inclusive: ^u32) -> fmod.RESULT ---
- Bus_GetMemoryUsage :: proc(bus: ^BUS, memoryusage: ^MEMORY_USAGE) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // VCA
- //
-
- VCA_IsValid :: proc(vca: ^VCA) -> b32 ---
- VCA_GetID :: proc(vca: ^VCA, id: ^fmod.GUID) -> fmod.RESULT ---
- VCA_GetPath :: proc(vca: ^VCA, path: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- VCA_GetVolume :: proc(vca: ^VCA, volume: ^f32, finalvolume: ^f32) -> fmod.RESULT ---
- VCA_SetVolume :: proc(vca: ^VCA, volume: f32) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Bank
- //
-
- Bank_IsValid :: proc(bank: ^BANK) -> b32 ---
- Bank_GetID :: proc(bank: ^BANK, id: ^fmod.GUID) -> fmod.RESULT ---
- Bank_GetPath :: proc(bank: ^BANK, path: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- Bank_Unload :: proc(bank: ^BANK) -> fmod.RESULT ---
- Bank_LoadSampleData :: proc(bank: ^BANK) -> fmod.RESULT ---
- Bank_UnloadSampleData :: proc(bank: ^BANK) -> fmod.RESULT ---
- Bank_GetLoadingState :: proc(bank: ^BANK, state: ^LOADING_STATE) -> fmod.RESULT ---
- Bank_GetSampleLoadingState :: proc(bank: ^BANK, state: ^LOADING_STATE) -> fmod.RESULT ---
- Bank_GetStringCount :: proc(bank: ^BANK, count: ^i32) -> fmod.RESULT ---
- Bank_GetStringInfo :: proc(bank: ^BANK, index: i32, id: ^fmod.GUID, path: ^u8, size: i32, retrieved: ^i32) -> fmod.RESULT ---
- Bank_GetEventCount :: proc(bank: ^BANK, count: ^i32) -> fmod.RESULT ---
- Bank_GetEventList :: proc(bank: ^BANK, array: ^^EVENTDESCRIPTION, capacity: i32, count: ^i32) -> fmod.RESULT ---
- Bank_GetBusCount :: proc(bank: ^BANK, count: ^i32) -> fmod.RESULT ---
- Bank_GetBusList :: proc(bank: ^BANK, array: ^^BUS, capacity: i32, count: ^i32) -> fmod.RESULT ---
- Bank_GetVCACount :: proc(bank: ^BANK, count: ^i32) -> fmod.RESULT ---
- Bank_GetVCAList :: proc(bank: ^BANK, array: ^^VCA, capacity: i32, count: ^i32) -> fmod.RESULT ---
- Bank_GetUserData :: proc(bank: ^BANK, userdata: ^rawptr) -> fmod.RESULT ---
- Bank_SetUserData :: proc(bank: ^BANK, userdata: rawptr) -> fmod.RESULT ---
-
-
-
- ///////////////////////////////////////////////////////////////////////////////////////////////////////
- // Command playback information
- //
-
- CommandReplay_IsValid :: proc(replay: ^COMMANDREPLAY) -> b32 ---
- CommandReplay_GetSystem :: proc(replay: ^COMMANDREPLAY, system: ^^SYSTEM) -> fmod.RESULT ---
- CommandReplay_GetLength :: proc(replay: ^COMMANDREPLAY, length: ^f32) -> fmod.RESULT ---
- CommandReplay_GetCommandCount :: proc(replay: ^COMMANDREPLAY, count: ^i32) -> fmod.RESULT ---
- CommandReplay_GetCommandInfo :: proc(replay: ^COMMANDREPLAY, commandindex: i32, info: ^COMMAND_INFO) -> fmod.RESULT ---
- CommandReplay_GetCommandString :: proc(replay: ^COMMANDREPLAY, commandindex: i32, buffer: ^u8, length: i32) -> fmod.RESULT ---
- CommandReplay_GetCommandAtTime :: proc(replay: ^COMMANDREPLAY, time: f32, commandindex: ^i32) -> fmod.RESULT ---
- CommandReplay_SetBankPath :: proc(replay: ^COMMANDREPLAY, bankPath: cstring) -> fmod.RESULT ---
- CommandReplay_Start :: proc(replay: ^COMMANDREPLAY) -> fmod.RESULT ---
- CommandReplay_Stop :: proc(replay: ^COMMANDREPLAY) -> fmod.RESULT ---
- CommandReplay_SeekToTime :: proc(replay: ^COMMANDREPLAY, time: f32) -> fmod.RESULT ---
- CommandReplay_SeekToCommand :: proc(replay: ^COMMANDREPLAY, commandindex: i32) -> fmod.RESULT ---
- CommandReplay_GetPaused :: proc(replay: ^COMMANDREPLAY, paused: ^b32) -> fmod.RESULT ---
- CommandReplay_SetPaused :: proc(replay: ^COMMANDREPLAY, paused: b32) -> fmod.RESULT ---
- CommandReplay_GetPlaybackState :: proc(replay: ^COMMANDREPLAY, state: ^PLAYBACK_STATE) -> fmod.RESULT ---
- CommandReplay_GetCurrentCommand :: proc(replay: ^COMMANDREPLAY, commandindex: ^i32, currenttime: ^f32) -> fmod.RESULT ---
- CommandReplay_Release :: proc(replay: ^COMMANDREPLAY) -> fmod.RESULT ---
- CommandReplay_SetFrameCallback :: proc(replay: ^COMMANDREPLAY, callback: COMMANDREPLAY_FRAME_CALLBACK) -> fmod.RESULT ---
- CommandReplay_SetLoadBankCallback :: proc(replay: ^COMMANDREPLAY, callback: COMMANDREPLAY_LOAD_BANK_CALLBACK) -> fmod.RESULT ---
- CommandReplay_SetCreateInstanceCallback :: proc(replay: ^COMMANDREPLAY, callback: COMMANDREPLAY_CREATE_INSTANCE_CALLBACK) -> fmod.RESULT ---
- CommandReplay_GetUserData :: proc(replay: ^COMMANDREPLAY, userdata: ^rawptr) -> fmod.RESULT ---
- CommandReplay_SetUserData :: proc(replay: ^COMMANDREPLAY, userdata: rawptr) -> fmod.RESULT ---
-}
diff --git a/sauce/fmod/studio/lib/darwin/libfmodstudio.dylib b/sauce/fmod/studio/lib/darwin/libfmodstudio.dylib
index b7ac14e..b1029d9 100644
Binary files a/sauce/fmod/studio/lib/darwin/libfmodstudio.dylib and b/sauce/fmod/studio/lib/darwin/libfmodstudio.dylib differ
diff --git a/sauce/fmod/studio/lib/darwin/libfmodstudioL.dylib b/sauce/fmod/studio/lib/darwin/libfmodstudioL.dylib
index fb6065a..33478ba 100644
Binary files a/sauce/fmod/studio/lib/darwin/libfmodstudioL.dylib and b/sauce/fmod/studio/lib/darwin/libfmodstudioL.dylib differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudio.so b/sauce/fmod/studio/lib/linux/libfmodstudio.so
new file mode 100755
index 0000000..3b59afb
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudio.so differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudio.so.13 b/sauce/fmod/studio/lib/linux/libfmodstudio.so.13
new file mode 100755
index 0000000..3b59afb
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudio.so.13 differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudio.so.13.25 b/sauce/fmod/studio/lib/linux/libfmodstudio.so.13.25
new file mode 100755
index 0000000..3b59afb
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudio.so.13.25 differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudioL.so b/sauce/fmod/studio/lib/linux/libfmodstudioL.so
new file mode 100755
index 0000000..562623f
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudioL.so differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13 b/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13
new file mode 100755
index 0000000..562623f
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13 differ
diff --git a/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13.25 b/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13.25
new file mode 100755
index 0000000..562623f
Binary files /dev/null and b/sauce/fmod/studio/lib/linux/libfmodstudioL.so.13.25 differ