Commit 6c8f835a authored by nanahira's avatar nanahira

fix

parent 68349670
Pipeline #34442 passed with stages
in 5 minutes and 17 seconds
......@@ -96,7 +96,7 @@ void SoundManager::PlaySound(char* sound) {
playingSoundEffect = TRUE;
#ifdef _WIN32
wchar_t sound_w[1024];
BufferIO::DecodeUTF8(song, sound_w);
BufferIO::DecodeUTF8(sound, sound_w);
ma_sound_init_from_file_w(&engineSound, sound_w, MA_SOUND_FLAG_ASYNC | MA_SOUND_FLAG_STREAM, nullptr, nullptr, &soundEffect);
#else
ma_sound_init_from_file(&engineSound, sound, MA_SOUND_FLAG_ASYNC | MA_SOUND_FLAG_STREAM, nullptr, nullptr, &soundEffect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment