mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
AlsaSoundStream: Use an enum class for signifying ALSA thread state
This commit is contained in:
parent
353205132c
commit
f907e5cace
2 changed files with 18 additions and 10 deletions
|
@ -33,15 +33,19 @@ public:
|
|||
virtual void Update() override;
|
||||
|
||||
private:
|
||||
enum class ALSAThreadStatus
|
||||
{
|
||||
RUNNING,
|
||||
STOPPING,
|
||||
STOPPED,
|
||||
};
|
||||
|
||||
bool AlsaInit();
|
||||
void AlsaShutdown();
|
||||
|
||||
u8 *mix_buffer;
|
||||
std::thread thread;
|
||||
// 0 = continue
|
||||
// 1 = shutdown
|
||||
// 2 = done shutting down.
|
||||
std::atomic<int> thread_data;
|
||||
std::atomic<ALSAThreadStatus> m_thread_status;
|
||||
|
||||
snd_pcm_t *handle;
|
||||
int frames_to_deliver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue