output/wasapi: use forward declarations in the header

This commit is contained in:
Max Kellermann 2021-03-05 16:30:22 +01:00
parent 6d65cc48d7
commit 9521c1ad58
3 changed files with 8 additions and 5 deletions

View File

@ -26,7 +26,9 @@
#include <cmath>
#include <optional>
#include <audioclient.h>
#include <endpointvolume.h>
#include <mmdeviceapi.h>
class WasapiMixer final : public Mixer {
WasapiOutput &output;

View File

@ -18,6 +18,7 @@
*/
#include "WasapiOutputPlugin.hxx"
#include "output/OutputAPI.hxx"
#include "lib/icu/Win32.hxx"
#include "mixer/MixerList.hxx"
#include "output/Error.hxx"
@ -49,8 +50,10 @@
#include <optional>
#include <variant>
#include <audioclient.h>
#include <initguid.h>
#include <functiondiscoverykeys_devpkey.h>
#include <mmdeviceapi.h>
namespace {
static constexpr Domain wasapi_output_domain("wasapi_output");

View File

@ -20,13 +20,11 @@
#ifndef MPD_WASAPI_OUTPUT_PLUGIN_HXX
#define MPD_WASAPI_OUTPUT_PLUGIN_HXX
#include "output/OutputAPI.hxx"
#include <audioclient.h>
#include <mmdeviceapi.h>
extern const struct AudioOutputPlugin wasapi_output_plugin;
struct IMMDevice;
struct IAudioClient;
class AudioOutput;
class WasapiOutput;
[[gnu::pure]]