diff options
author | Jörg Müller <nexyon@gmail.com> | 2021-07-01 15:24:06 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2021-07-01 15:26:13 +0300 |
commit | 19d19970e4fa6a738010dfeb2b08886f4a3dd0d5 (patch) | |
tree | f1f976871deb4088bed9236952253365512c631c /extern/audaspace/plugins/wasapi/WASAPIDevice.h | |
parent | 8c3855dc6e9b2f6e76953384b4aab4ea3ab987ff (diff) |
Fix T88887: Audio causes issues with Playback when PC put to Sleep, Hibernate or when Screensaver appears
Porting WASAPI device reinitialization from upstream.
Diffstat (limited to 'extern/audaspace/plugins/wasapi/WASAPIDevice.h')
-rw-r--r-- | extern/audaspace/plugins/wasapi/WASAPIDevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/audaspace/plugins/wasapi/WASAPIDevice.h b/extern/audaspace/plugins/wasapi/WASAPIDevice.h index 375f03bd255..3b11adc98ef 100644 --- a/extern/audaspace/plugins/wasapi/WASAPIDevice.h +++ b/extern/audaspace/plugins/wasapi/WASAPIDevice.h @@ -43,16 +43,21 @@ AUD_NAMESPACE_BEGIN class AUD_PLUGIN_API WASAPIDevice : public ThreadedDevice { private: + int m_buffersize; IMMDeviceEnumerator* m_imm_device_enumerator; IMMDevice* m_imm_device; IAudioClient* m_audio_client; WAVEFORMATEXTENSIBLE m_wave_format_extensible; + AUD_LOCAL HRESULT setupRenderClient(IAudioRenderClient*& render_client, UINT32& buffer_size); + /** * Streaming thread main function. */ AUD_LOCAL void runMixingThread(); + AUD_LOCAL bool setupDevice(DeviceSpecs& specs); + // delete copy constructor and operator= WASAPIDevice(const WASAPIDevice&) = delete; WASAPIDevice& operator=(const WASAPIDevice&) = delete; |