4 Commits

Author SHA1 Message Date
jonny_jr9
6b4bcb09a8 Fix segfault sound-thread (mutex), Add Portal sound
Major changes to sound.c:
    - add mutex (fixes segfault, free erros)
    - allow only one sound at a time, wait for previous to finish
    - outsource init function
    - add global variables
    - return if successfully played
2023-12-15 00:01:22 +01:00
jonny_jr9
9c1ca72321 Add sounds when food eaten, FIXME: adds unwanted delay
playSound() causes approx 200ms delay before playing a sound
which now significantly lags the game when picking up food
2023-12-14 20:29:03 +01:00
jonny_jr9
bc363a9f8b Add playSound(), Reduce debug output - sound on collide works
currently plays sound when snake crashes (leaderboard shown)

- shorten example audio file
- Add sound.c: abstract function to play .wav files
- config:
    - Add config option RENDER_GAME_TO_CONSOLE
    - disable debug output
2023-12-14 18:39:20 +01:00
Julia09055x
e342478695 Ton abspielen 2023-12-14 10:47:44 +01:00