tsoding / musializer

Music Visualizer
MIT License
953 stars 100 forks source link

Cyrillic in the path to the audio leads to no playback #106

Open alexlnkp opened 7 months ago

alexlnkp commented 7 months ago

Linux.

I have a symlink for my Music etc folder called Всё для треков и тд, if i drag n drop music from the Music etc - it works perfectly, even if the filename of the audio itself is in Cyrillic. However, if i drag n drop music from the symlink Всё для треков и тд - the audio just glitches out and no visualization happens at all.

I assume this is an issue with Cyrillic in the path to the file specifically, not the links. After long testing i found out that any combination of symlinking audio and the path to the audio if the file's path is not in Cyrillic leads to standard behavior.

bootstrap process in shell:

INFO: Initializing raylib 5.0
INFO: Platform backend: DESKTOP (GLFW)
INFO: Supported raylib modules:
INFO:     > rcore:..... loaded (mandatory)
INFO:     > rlgl:...... loaded (mandatory)
INFO:     > rshapes:... loaded (optional)
INFO:     > rtextures:. loaded (optional)
INFO:     > rtext:..... loaded (optional)
INFO:     > rmodels:... loaded (optional)
INFO:     > raudio:.... loaded (optional)
INFO: DISPLAY: Device initialized successfully
INFO:     > Display size: 1920 x 1080
INFO:     > Screen size:  1280 x 720
INFO:     > Render size:  1280 x 720
INFO:     > Viewport offsets: 0, 0
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 400
INFO: GL: OpenGL device information:
INFO:     > Vendor:   NVIDIA Corporation
INFO:     > Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
INFO:     > Version:  3.3.0 NVIDIA 550.67
INFO:     > GLSL:     3.30 NVIDIA via Cg compiler
INFO: GL: VAO extension detected, VAO functions loaded successfully
INFO: GL: NPOT textures extension detected, full NPOT textures supported
INFO: GL: DXT compressed textures supported
INFO: GL: ETC2/EAC compressed textures supported
INFO: PLATFORM: DESKTOP (GLFW): Initialized successfully
INFO: TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 1] Default texture loaded successfully
INFO: SHADER: [ID 1] Vertex shader compiled successfully
INFO: SHADER: [ID 2] Fragment shader compiled successfully
INFO: SHADER: [ID 3] Program shader loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
INFO: RLGL: Default OpenGL state initialized successfully
INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Default font loaded successfully (224 glyphs)
INFO: IMAGE: Data loaded successfully (256x256 | R8G8B8A8 | 1 mipmaps)
INFO: TIMER: Target time per frame: 16.667 milliseconds
INFO: AUDIO: Device initialized successfully
INFO:     > Backend:       miniaudio / PulseAudio
INFO:     > Format:        32-bit IEEE Floating Point -> 32-bit Signed Integer
INFO:     > Channels:      2 -> 2
INFO:     > Sample rate:   48000 -> 48000
INFO:     > Periods size:  3600
INFO: TEXTURE: [ID 3] Texture loaded successfully (1024x512 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Data loaded successfully (64 pixel size | 95 glyphs)
INFO: TEXTURE: [ID 3] Mipmaps generated automatically, total: 11
INFO: SHADER: [ID 4] Fragment shader compiled successfully
INFO: SHADER: [ID 5] Program shader loaded successfully
INFO: TEXTURE: [ID 4] Texture loaded successfully (1600x900 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 1] Depth renderbuffer loaded successfully (32 bits)

Output in the shell when trying to open a file located in a folder with Cyrillic name:

INFO: FBO: [ID 1] Framebuffer object created successfully
INFO: STREAM: Initialized successfully (44100 Hz, 24 bit, Stereo)
INFO: FILEIO: [/kirby/Всё для треков и тд/fade_away.flac] Music file loaded successfully
INFO:     > Sample rate:   44100 Hz
INFO:     > Sample size:   24 bits
INFO:     > Channels:      2 (Stereo)
INFO:     > Total frames:  13582209
INFO: IMAGE: Data loaded successfully (1024x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 5] Texture loaded successfully (1024x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 5] Mipmaps generated automatically, total: 11
INFO: IMAGE: Data loaded successfully (512x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 6] Texture loaded successfully (512x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 6] Mipmaps generated automatically, total: 10
INFO: IMAGE: Data loaded successfully (1536x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 7] Texture loaded successfully (1536x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 7] Mipmaps generated automatically, total: 11
INFO: IMAGE: Data loaded successfully (2048x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 8] Texture loaded successfully (2048x512 | GRAY_ALPHA | 1 mipmaps)
INFO: TEXTURE: [ID 8] Mipmaps generated automatically, total: 12

when loading from the non-Cyrillic folder:

INFO: FILEIO: [/kirby/Music etc/fade_away.flac] Music file loaded successfully
INFO:     > Sample rate:   44100 Hz
INFO:     > Sample size:   24 bits
INFO:     > Channels:      2 (Stereo)
INFO:     > Total frames:  13582209