#pragma once
#include "vg_platform.h"
+#include "vg_engine.h"
#include "vg_string.h"
#include "vg_vorbis.h"
#define AUDIO_FLAG_NO_DOPPLER 0x2
#define AUDIO_FLAG_SPACIAL_3D 0x4
#define AUDIO_FLAG_AUTO_START 0x8
+#define AUDIO_FLAG_NO_DSP 0x10
#define AUDIO_FLAG_FORMAT 0x1E00
enum audio_format
struct audio_clip
{
- union { /* TODO oof.. */
- u64 _p64_;
+ union
+ {
const char *path;
void *func;
+
+ u64 _p64_; /* force width to be 64 because we save this structure on
+ disk in Skaterift yay */
};
u32 flags;
u32 size;
- union{
- u64 _p64;
+ union
+ {
void *data;
+
+ u64 _p64;
};
};
}
channels[ AUDIO_CHANNELS ];
- int debug_ui, debug_ui_3d, debug_dsp, dsp_enabled;
+ bool inspector_open;
+ int dsp_enabled;
v3f internal_listener_pos,
internal_listener_ears,
void audio_set_lfo_wave( int id, enum lfo_wave_type type, f32 coefficient );
void audio_set_lfo_frequency( int id, float freq );
int audio_channel_load_source( audio_channel *ch );
-
-void audio_debug_ui(
-
-#ifdef VG_3D
- m4x4f
-#else
- m3x3f
-#endif
- mtx_pv );