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

@@ -6,20 +6,6 @@ namespace platf {
using namespace std::literals;
std::string get_local_ip() { return "192.168.0.119"s; }
class dummy_mic_t : public mic_t {
public:
std::vector<std::int16_t> sample(std::size_t sample_size) override {
std::vector<std::int16_t> sample_buf;
sample_buf.resize(sample_size);
return sample_buf;
}
};
std::unique_ptr<mic_t> microphone() {
return std::unique_ptr<mic_t> { new dummy_mic_t {} };
}
input_t input() {
return nullptr;
}