From c55e250c45cdf107c43f3e2c7b436e4a5ee3e1f3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Jul 2022 22:15:02 +0200 Subject: [PATCH] encoder/Interface: include cleanup --- src/encoder/EncoderInterface.hxx | 8 ++------ src/output/plugins/snapcast/SnapcastOutputPlugin.cxx | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/encoder/EncoderInterface.hxx b/src/encoder/EncoderInterface.hxx index a4fe87e4b..30ef09ea7 100644 --- a/src/encoder/EncoderInterface.hxx +++ b/src/encoder/EncoderInterface.hxx @@ -20,10 +20,6 @@ #ifndef MPD_ENCODER_INTERFACE_HXX #define MPD_ENCODER_INTERFACE_HXX -#include "EncoderPlugin.hxx" -#include "util/Compiler.h" - -#include #include struct AudioFormat; @@ -95,7 +91,7 @@ public: * @param data the buffer containing PCM samples * @param length the length of the buffer in bytes */ - virtual void Write(const void *data, size_t length) = 0; + virtual void Write(const void *data, std::size_t length) = 0; /** * Reads encoded data from the encoder. @@ -106,7 +102,7 @@ public: * @param length the maximum length of the destination buffer * @return the number of bytes written to #dest */ - virtual size_t Read(void *dest, size_t length) = 0; + virtual std::size_t Read(void *dest, std::size_t length) = 0; }; class PreparedEncoder { diff --git a/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx b/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx index 768d5e1a2..1ba0b6c40 100644 --- a/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx +++ b/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx @@ -23,6 +23,7 @@ #include "output/OutputAPI.hxx" #include "output/Features.h" #include "encoder/EncoderInterface.hxx" +#include "encoder/EncoderPlugin.hxx" #include "encoder/Configured.hxx" #include "encoder/plugins/WaveEncoderPlugin.hxx" #include "net/UniqueSocketDescriptor.hxx"