Go to file
Sheldon Lee 2ef08b6b1b Audio record and playback now works + removed comments
Fixed by moving SDL_AudioSpec definition to init() function.
2024-10-10 23:32:22 +08:00
example-test-code Add example code 2024-10-10 23:30:03 +08:00
.astylerc Initial commit 2024-10-10 20:11:57 +08:00
.editorconfig Initial commit 2024-10-10 20:11:57 +08:00
.gitignore Initial commit 2024-10-10 20:11:57 +08:00
FiraCode-Regular.ttf Initial commit 2024-10-10 20:11:57 +08:00
log.c Initial commit 2024-10-10 20:11:57 +08:00
log.h Initial commit 2024-10-10 20:11:57 +08:00
main.c Audio record and playback now works + removed comments 2024-10-10 23:32:22 +08:00
makefile Initial commit 2024-10-10 20:11:57 +08:00
README.md Add comments and README 2024-10-10 20:53:49 +08:00

Make run to compile and run

make run

I'm using the whole new pipewire + wireplumber audio stack, which has compatibility with pulse audio.

Seems like there is SDL_AUDIODRIVER=alsa environment variable that SDL can use. I don't think my code works with this enabled.

Maybe related GitHub issue

I'm using SDL2 version 2.28.5. Downgrading from 2.30.7 seems to make it work a bit better, but still not consistent.