encoder/Interface: include cleanup
This commit is contained in:
parent
cd241a93c1
commit
c55e250c45
@ -20,10 +20,6 @@
|
|||||||
#ifndef MPD_ENCODER_INTERFACE_HXX
|
#ifndef MPD_ENCODER_INTERFACE_HXX
|
||||||
#define MPD_ENCODER_INTERFACE_HXX
|
#define MPD_ENCODER_INTERFACE_HXX
|
||||||
|
|
||||||
#include "EncoderPlugin.hxx"
|
|
||||||
#include "util/Compiler.h"
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
struct AudioFormat;
|
struct AudioFormat;
|
||||||
@ -95,7 +91,7 @@ public:
|
|||||||
* @param data the buffer containing PCM samples
|
* @param data the buffer containing PCM samples
|
||||||
* @param length the length of the buffer in bytes
|
* @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.
|
* Reads encoded data from the encoder.
|
||||||
@ -106,7 +102,7 @@ public:
|
|||||||
* @param length the maximum length of the destination buffer
|
* @param length the maximum length of the destination buffer
|
||||||
* @return the number of bytes written to #dest
|
* @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 {
|
class PreparedEncoder {
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "output/OutputAPI.hxx"
|
#include "output/OutputAPI.hxx"
|
||||||
#include "output/Features.h"
|
#include "output/Features.h"
|
||||||
#include "encoder/EncoderInterface.hxx"
|
#include "encoder/EncoderInterface.hxx"
|
||||||
|
#include "encoder/EncoderPlugin.hxx"
|
||||||
#include "encoder/Configured.hxx"
|
#include "encoder/Configured.hxx"
|
||||||
#include "encoder/plugins/WaveEncoderPlugin.hxx"
|
#include "encoder/plugins/WaveEncoderPlugin.hxx"
|
||||||
#include "net/UniqueSocketDescriptor.hxx"
|
#include "net/UniqueSocketDescriptor.hxx"
|
||||||
|
Loading…
Reference in New Issue
Block a user