RandyGaul
RandyGaul
My apologies for not being super on-top of this. It's a little time consuming for me to make my own test tiled files, as I no longer use Tiled for...
Sounds like heap corruption. Have you tried running with Valgrind? Is this a 100% repro?
> Address 0x0 is not stack'd, malloc'd or (recently) free'd Hmm. Well good news is it's just a NULL pointer access, though I am a little worried about those unitialized...
Oh also please try posting a [valgrind log with line numbers](https://stackoverflow.com/questions/7797864/how-do-you-get-valgrind-to-show-line-errors).
Here's the valuable part. ``` ==11251== Thread 5 CuteSoundThread: ==11251== Conditional jump or move depends on uninitialised value(s) ==11251== at 0x10B460: cs_mix (cute_sound.h:2258) ==11251== by 0x10A533: cs_ctx_thread (cute_sound.h:1760) ==11251== by...
Oh also could you please attach the exact version of cute_sound.h you were using? This is just to make sure the line numbers you grabbed match with what I'm looking...
I'll try implementing this today, assuming I can successfully use WSL on Windows to test it out.
Hmm, looks like ALSA is not supported with WSL. I'll try virtual box then.
@r-lyeh Alright, I've got a basic port going. Though there are some problems. 1. When I first boot up my machine and run the ALSA demo, there's a segfault. I...
My main reference for implementation came from SDL: https://github.com/spurious/SDL-mirror/blob/17af4584cb28cdb3c2feba17e7d989a806007d9f/src/audio/alsa/SDL_alsa_audio.c