From cb023c66717bcee90ac5b2ea955c68ac3f43e1db Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Fri, 21 Nov 2025 22:48:27 -0500 Subject: [PATCH] Update audio.py --- libs/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/audio.py b/libs/audio.py index 0643e6e..4419a16 100644 --- a/libs/audio.py +++ b/libs/audio.py @@ -207,7 +207,7 @@ class AudioEngine: sound = lib.load_sound(file_path_str) # type: ignore if not lib.is_sound_valid(sound): # type: ignore - file_path_str = str(file_path).encode('utf-8') + file_path_str = str(file_path).encode('utf-16') sound = lib.load_sound(file_path_str) # type: ignore if lib.is_sound_valid(sound): # type: ignore @@ -333,7 +333,7 @@ class AudioEngine: music = lib.load_music_stream(file_path_str) # type: ignore if not lib.is_music_valid(music): # type: ignore - file_path_str = str(file_path).encode('utf-8') + file_path_str = str(file_path).encode('utf-16') music = lib.load_music_stream(file_path_str) # type: ignore if lib.is_music_valid(music): # type: ignore