+ Fully implemented Event Mode to the Audio Manager
+ Fixes issues #1 #2 and #3
This commit is contained in:
2025-08-23 12:14:05 -04:00
parent 55ad7d67b0
commit 081ab9a679
3 changed files with 54 additions and 6 deletions

View File

@@ -1111,7 +1111,8 @@ void RegisterAndPrecacheAllFiles(){
public Action SyncMusic(Handle timer, int client) {
int index = AudioManager[client].indexBGM;
AudioManager[client].cachedPath = BGMArray[index].realPath;
AssLogger(LOGLVL_INFO, "[AudioManager for %N]: We are on wave %i, now playing: %s (from %s) for %f seconds. It will start looping in %f seconds.", client, core.curWave, BGMArray[index].songName, BGMArray[index].realPath, BGMArray[index].loopSeconds, BGMArray[index].introSeconds);
AudioManager[client].songName = BGMArray[index].songName;
AssLogger(LOGLVL_INFO, "[AudioManager for %N]: We are on wave %i, now playing: %s (from %s) for %f seconds. It will start looping at %f seconds after the first cycle.", client, core.curWave, AudioManager[client].songName, AudioManager[client].cachedPath, AudioManager[client].loopSeconds, BGMArray[index].introSeconds);
return Plugin_Stop;
}