aboutsummaryrefslogtreecommitdiff
path: root/mwe/audio/miniaudio
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 16:12:47 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 16:12:47 +0100
commite36ea050972fcaaf3d85d672755bad4ebb2dcd80 (patch)
tree5145e0b66650eea1df301106b7d197a586be65f3 /mwe/audio/miniaudio
parent333b07775be1ef20fdb5909672c1e4dcabec1b40 (diff)
parentb770475741b7c33d57331f3139c55a3f237ad274 (diff)
merge `master` into `loek/savemgr`
Diffstat (limited to 'mwe/audio/miniaudio')
-rw-r--r--mwe/audio/miniaudio/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/mwe/audio/miniaudio/main.cpp b/mwe/audio/miniaudio/main.cpp
index bf31898..5c4f667 100644
--- a/mwe/audio/miniaudio/main.cpp
+++ b/mwe/audio/miniaudio/main.cpp
@@ -33,12 +33,10 @@ int main() {
ma_sound_start(&sfx[2]);
ma_sound_start(&bgm); // this actually resumes now
this_thread::sleep_for(500ms);
- for (unsigned i = 0; i < 3; i++)
- ma_sound_seek_to_pcm_frame(&sfx[i], 0);
+ for (unsigned i = 0; i < 3; i++) ma_sound_seek_to_pcm_frame(&sfx[i], 0);
// 5. play all samples simultaniously
- for (unsigned i = 0; i < 3; i++)
- ma_sound_start(&sfx[i]);
+ for (unsigned i = 0; i < 3; i++) ma_sound_start(&sfx[i]);
this_thread::sleep_for(1000ms);
ma_engine_uninit(&engine);