1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-14 06:47:10 +00:00
Commit graph

2 commits

Author SHA1 Message Date
biroder b748a662bf Add a restart of the audio stream when the device is disconnected
Instead of creating the stream in `SoundManager`, it is now created in another thread called 'audio watchdog'. This thread restarts the stream when the audio device is disconnected. All information about the stream (such as the speed or volume of the music) is stored in `AudioContext` structure, which is inside `SoundManager`.

So even if the watchdog thread is destroyed for some reason, the sound manager will restart it and playback will continue. But this hasn't been tested, so maybe the application will just crash:)
2024-12-04 17:37:49 +02:00
Alula dce696282b
Add Cargo.lock (#273) 2024-08-28 20:42:27 +02:00