diff options
| author | Drew DeVault <sir@cmpwn.com> | 2021-12-12 13:56:23 +0100 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2021-12-12 13:56:23 +0100 |
| commit | eae63b218494d3aa077a9ea196abc4c5096e016b (patch) | |
| tree | b2bdd4c73685879aacecd1adc3ca962741267fee /cmd/demo | |
| parent | sdl2::mixer: implement sample loading (diff) | |
| download | hare-chip8-eae63b218494d3aa077a9ea196abc4c5096e016b.tar.gz | |
sdl2::mixer: implement channel playback
Diffstat (limited to 'cmd/demo')
| -rw-r--r-- | cmd/demo/main.ha | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/demo/main.ha b/cmd/demo/main.ha index a5e9e68..e97c433 100644 --- a/cmd/demo/main.ha +++ b/cmd/demo/main.ha @@ -74,6 +74,7 @@ fn run() (void | fs::error | sdl2::error) = { let sample = mixer::load_file("sample.ogg")?; defer mixer::free_chunk(sample); + mixer::play_channel(0, sample, -1)?; let state = state { window = win, |
