Working on audio in web part 1

This commit is contained in:
Vladislav Khorev committed 2026-04-17 17:13:55 +03:00
1 parent 3778a603f2
commit b6e0422d71
9 files changed
+65 -13

No files matched your search

+2 -2
View File
@@ -487,10 +487,10 @@ namespace ZL
if (event.type == SDL_KEYDOWN && event.key.repeat == 0) {
switch (event.key.keysym.sym) {
case SDLK_1:
if (audioPlayer) audioPlayer->playSoundAsync("resources/sounds/background.wav");
if (audioPlayer) audioPlayer->playSoundAsync("audio/background.wav");
break;
case SDLK_2:
if (audioPlayer) audioPlayer->playMusicAsync("resources/sounds/lullaby-music-vol20-186394--online-audio-convert.com.ogg");
if (audioPlayer) audioPlayer->playMusicAsync("audio/lullaby-music-vol20-186394--online-audio-convert.com.ogg");
break;
case SDLK_3:
if (audioPlayer) audioPlayer->stopMusicAsync();