mirror of
https://github.com/astronautlevel2/Anemone3DS.git
synced 2026-01-24 00:32:43 -05:00
make audio safer
- centralized stop function - freeing the struct not from the thread while waiting on handle in it - thread not detached - maybe fixes hang on exit from HM in ndsp status check loop
This commit is contained in:
@@ -46,9 +46,10 @@ typedef struct {
|
||||
u32 filesize;
|
||||
|
||||
volatile bool stop;
|
||||
Handle finished;
|
||||
Thread playing_thread;
|
||||
} audio_s;
|
||||
|
||||
void play_audio(audio_s *);
|
||||
void stop_audio(audio_s**);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user