summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/WASAPIStream.h
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-08-08 13:16:54 +0200
committerGitHub <noreply@github.com>2021-08-08 13:16:54 +0200
commit8e1dbdb257f612cf7e230b28b739de0a6d506d24 (patch)
treefa1ef2b026d3e482e22580d2d4c3077e17ae41a3 /Source/Core/AudioCommon/WASAPIStream.h
parent682c7454f0ca05ce8d538744e7a868e2452ca5a5 (diff)
parenteda2035874309233a3971aed075c0417c1f18ef7 (diff)
Merge pull request #10006 from Tilka/pulse
AudioCommon: fix bogus error + cleanup
Diffstat (limited to 'Source/Core/AudioCommon/WASAPIStream.h')
-rw-r--r--Source/Core/AudioCommon/WASAPIStream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/WASAPIStream.h b/Source/Core/AudioCommon/WASAPIStream.h
index e9a751ee99..6f3218cc4b 100644
--- a/Source/Core/AudioCommon/WASAPIStream.h
+++ b/Source/Core/AudioCommon/WASAPIStream.h
@@ -35,13 +35,14 @@ public:
~WASAPIStream();
bool Init() override;
bool SetRunning(bool running) override;
- void SoundLoop() override;
- static bool isValid();
+ static bool IsValid();
static std::vector<std::string> GetAvailableDevices();
static Microsoft::WRL::ComPtr<IMMDevice> GetDeviceByName(std::string_view name);
private:
+ void SoundLoop();
+
u32 m_frames_in_buffer = 0;
std::atomic<bool> m_running = false;
std::thread m_thread;