diff options
| author | realtradam <[email protected]> | 2023-05-11 23:12:30 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-11 23:12:30 -0400 |
| commit | c1f9d95c4a2de1aef9fa472888844156ffe9e5fe (patch) | |
| tree | 8f089f736c4b125faa6b11ae503994b698462e39 /src/main.c | |
| parent | f76faadd38584ee923fc348e7342aff425904c59 (diff) | |
| download | rodeo_sample_game-c1f9d95c4a2de1aef9fa472888844156ffe9e5fe.tar.gz rodeo_sample_game-c1f9d95c4a2de1aef9fa472888844156ffe9e5fe.zip | |
rodeo bump
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -121,8 +121,19 @@ main_loop(void) if(*(bool*)play_sound_input(NULL, NULL)) { - rodeo_audio_sound_play(scratch, -1); + rodeo_audio_sound_play(scratch, 0); } + if(*(bool*)play_sound_input2(NULL, NULL)) + { + rodeo_audio_sound_play(scratch, 1); + } + if(*(bool*)play_sound_input3(NULL, NULL)) + { + rodeo_audio_sound_play(scratch, 2); + } + + rodeo_audio_channelPool_volume_set(1, 0.75); + rodeo_audio_channelPool_volume_set(2, 0.25); //play_sound_input(NULL, NULL); @@ -279,6 +290,9 @@ main(void) texture = rodeo_texture_2d_create_from_path(cstr_lit("assets/orc.png")); scratch = rodeo_audio_sound_create_from_path(cstr_lit("assets/sample.wav")); + rodeo_audio_channelPool_volume_set(1, 0.75); + rodeo_audio_channelPool_volume_set(2, 0.25); + rodeo_mainLoop_run( main_loop ); |
