diff options
| author | realtradam <[email protected]> | 2023-05-09 09:43:54 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-09 09:43:54 -0400 |
| commit | 50cc04b6990eb234ed3064d0fbb695c1971dda86 (patch) | |
| tree | f5d1b17d3b55a11a92b896aa96d7b1f2ae7f63c0 /src/main.c | |
| parent | 790cf629d1fac8ed99eef797919095c7d548bb8e (diff) | |
| download | rodeo_sample_game-50cc04b6990eb234ed3064d0fbb695c1971dda86.tar.gz rodeo_sample_game-50cc04b6990eb234ed3064d0fbb695c1971dda86.zip | |
rodeo bump
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,6 +6,8 @@ cstr renderer; float time_var; +rodeo_audio_sound_t *scratch = NULL; + typedef struct { @@ -119,7 +121,7 @@ main_loop(void) if(*(bool*)play_sound_input(NULL, NULL)) { - rodeo_audio_playSample(); + rodeo_audio_sound_play(scratch, -1); } //play_sound_input(NULL, NULL); @@ -275,7 +277,7 @@ main(void) //); texture = rodeo_texture_2d_create_from_path(cstr_lit("assets/orc.png")); - rodeo_audio_loadSample(); + scratch = rodeo_audio_sound_create_from_path(cstr_lit("assets/sample.wav")); rodeo_mainLoop_run( main_loop |
