18 lines
512 B
C
18 lines
512 B
C
#define SOUND_FLAG_NONE 0x0
|
|
#define SOUND_FLAG_STEREO 0x1
|
|
|
|
typedef struct SND_Sound SND_Sound;
|
|
struct SND_Sound {
|
|
u32 flags;
|
|
u64 samples_count;
|
|
i16 *samples;
|
|
};
|
|
|
|
typedef struct SND_StartupReceipt SND_StartupReceipt;
|
|
struct SND_StartupReceipt { i32 _; };
|
|
SND_StartupReceipt sound_startup(AC_StartupReceipt *asset_cache_sr);
|
|
|
|
AC_Asset *sound_load_asset(String path, u32 flags, b32 wait);
|
|
SND_Sound *sound_load_async(String path, u32 flags);
|
|
SND_Sound *sound_load(String path, u32 flags);
|