Hi,
Noticed I'd get random invalid memory access errors when playing flacs, so rendered both mono and stereo flac files of all compression levels to test them out, as well as a little program to automate trying every file with LoadSound.
As far as I can see, all stereo 44.1khz 16bit files work, but all mono ones fail.
I've tried on Windows 10 22h2, pb v6 lts asm and c, x64 and x86.
I didn't try on MacOS or Linux (yet).
Here's the zip with flac files and tester (exe and source), hope it helps.
Not a huge problem considering the files can be losslessly converted to stereo, but I think it would make PB even better.
BTW, is there any official plan to switch sound library to Miniaudio?
[Done] invalid memory access with playing mono flac files
[Done] invalid memory access with playing mono flac files
Last edited by nsstudios on Sun Oct 22, 2023 6:32 am, edited 1 time in total.
-
- Enthusiast
- Posts: 544
- Joined: Wed Sep 25, 2019 10:18 am
Re: invalid memory access with playing mono flac files
[
Edit: Executable-Typ: Windows with x64dbg
Code: Select all
; .flac
InitSound()
UseFLACSoundDecoder()
LoadSound(0,"/home/kulow/Downloads/1c0.flac")
; [07:41:19] Waiting For executable To start...
; [07:41:19] Executable type: Linux - x64 (64bit, Unicode)
; [07:41:20] Executable started.
; [07:41:20] [ERROR] Line: 4
; [07:41:20] [ERROR] Invalid memory access.
Code: Select all
;.flac
InitSound()
UseFLACSoundDecoder()
LoadSound(0, "D:\1c10.flac")
End
; [09:48:14] Warte auf den Start des Executable...
; [09:48:14] Executable-Typ: Windows - x64 (64bit, Unicode)
; [09:48:14] Executable gestartet.
; [09:48:14] [ERROR] flac.pb (Zeile: 4)
; [09:48:14] [ERROR] Ungültiger Speicherzugriff. (Lesefehler an der Adresse 4752)
; 0000000140002564 | 0FB70402 | movzx eax,word ptr ds:[rdx+rax] |
; RAX : 0000000000000000
; RDX : 0000000000001290
Please ask your questions, because switch on the cognition apparatus decides on the only known life in the universe.Wersten :DDüsseldorf NRW Germany Europe Earth Solar System Flake Bubble Orionarm
Milky Way Local_Group Virgo Supercluster Laniakea Universe
Milky Way Local_Group Virgo Supercluster Laniakea Universe
Re: invalid memory access with playing mono flac files
Thank you for testing, Juergenkulow!
The source I provided should be cross-platform, I hope.
The source I provided should be cross-platform, I hope.
Re: invalid memory access with playing mono flac files
Fred mentioned the intention of doing so here -> viewtopic.php?p=586358#p586358
Would be nice because the current one honestly it's pretty ancient, especially on Linux, and doesn't work consistently on the different platforms (some things are supported on one but not the other, the same audio file work on one but not the other, etc.).
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review