Support audio loopback on Windows using WASAPI

This commit is contained in:
loki
2020-01-15 18:31:28 +01:00
parent 05fc550c0e
commit 0eebcf7836
13 changed files with 383 additions and 44 deletions

View File

@@ -231,8 +231,8 @@ void blend_cursor(const cursor_t &cursor, img_t &img) {
class display_t : public ::platf::display_t {
public:
capture_e snapshot(std::unique_ptr<::platf::img_t> &img_base, bool cursor_visible) override {
auto img = (img_t *) img_base.get();
capture_e snapshot(::platf::img_t *img_base, bool cursor_visible) override {
auto img = (img_t *) img_base;
HRESULT status;
DXGI_OUTDUPL_FRAME_INFO frame_info;