aboutsummaryrefslogtreecommitdiff
path: root/src/audio_sys.h
blob: 9607189e193983fdce66752bb91a943ab3deb198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "config.h"

// 8 max
i32 load_audio(const char* path);
void play_audio(i32 idx);
void pause_audio(i32 idx);
void resume_audio(i32 idx);

// Only one at any given time.
// In the future you can load a second one
// It'll be a copy of the one from my Godot games
void load_music(const char* path);
void play_music(void);

// It would be more convenient if the files had this info
// But it's better to just let you control this for now.
void set_music_loop(b32 loop);
void set_music_loop_point(f32 point); 

void pause_music(void);
void resume_music(void);

void set_main_vol(f32 vol);

void update_audio(void);
void unload_active_audio(void);
void unload_current_music(void);