Fixing logger and windows version - remove terminal
This commit is contained in:
1 parent
76287dda46
commit
a7d17d9afd
27 files changed
+349
-243
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include "AudioPlayerAsync.h"
|
||||
#include <iostream>
|
||||
#include "utils/Utils.h"
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
AudioPlayerAsync::AudioPlayerAsync() {}
|
||||
@@ -36,7 +37,7 @@ bool AudioPlayerAsync::init() {
|
||||
Mix_AllocateChannels(16);
|
||||
|
||||
initialized = true;
|
||||
std::cout << "AudioPlayerAsync initialized with SDL2_mixer" << std::endl;
|
||||
ZL::logger() << "AudioPlayerAsync initialized with SDL2_mixer" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -60,7 +61,7 @@ void AudioPlayerAsync::shutdown() {
|
||||
Mix_CloseAudio();
|
||||
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
||||
initialized = false;
|
||||
std::cout << "AudioPlayerAsync shutdown" << std::endl;
|
||||
ZL::logger() << "AudioPlayerAsync shutdown" << std::endl;
|
||||
}
|
||||
|
||||
void AudioPlayerAsync::playSoundAsync(const std::string& filePath, int loops, int channel) {
|
||||
|
||||
Reference in new issue
Block a user