Skip to content

Commit ca7e078

Browse files
committed
Update PlaySound2 function to include logging for sound playback parameters
1 parent d171dfc commit ca7e078

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

game/js/Cfunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ var ViewHandBook = function () {
32353235
AllAudioPaused();
32363236
PlaySound2("tap");
32373237
}
3238-
PlaySound2("ChooseYourSeeds");
3238+
PlaySound2("ChooseYourSeeds", true);
32393239
SetVisible($("dHandBook"));
32403240
};
32413241

game/js/Custom.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ function canPlayNow(key) {
260260

261261
setInterval(cleanupPlayingSounds, CLEANUP_INTERVAL_MS);
262262
function PlaySound2(path, loop, name, tag) {
263+
// console.log(`Playing sound: path=${path}, loop=${loop}, name=${name}, tag=${tag}`);
263264
name = name || path;
264265
const tagName = tag || "default";
265266
const audioPath = `audio/${path}.mp3`;

0 commit comments

Comments
 (0)