12#include <CoreFoundation/CoreFoundation.h>
61 const std::shared_ptr<Stream>& stream,
62 Float64 zeroTimestamp,
67 memset(bytes, 0, bytesCount);
84 const std::shared_ptr<Stream>& stream,
85 Float64 zeroTimestamp,
91 stream->ApplyProcessing(frames, frameCount, channelCount);
113 const std::shared_ptr<Stream>& stream,
114 Float64 zeroTimestamp,
120 stream->ApplyProcessing(frames, frameCount, channelCount);
139 const std::shared_ptr<Stream>& stream,
140 Float64 zeroTimestamp,
142 const Float32* frames,
167 Float64 zeroTimestamp,
173 stream->ApplyProcessing(frames, frameCount, channelCount);
192 Float64 zeroTimestamp,
Handler for I/O requests to device.
virtual void OnProcessClientOutput(const std::shared_ptr< Client > &client, const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, Float32 *frames, UInt32 frameCount, UInt32 channelCount)
Process data from client before passing it to WriteClientOutput().
virtual void OnProcessMixedOutput(const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, Float32 *frames, UInt32 frameCount, UInt32 channelCount)
Process data from client before passing it to WriteMixedOutput().
virtual void OnProcessClientInput(const std::shared_ptr< Client > &client, const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, Float32 *frames, UInt32 frameCount, UInt32 channelCount)
Process data returned by ReadClientInput() before passing it to client.
virtual void OnWriteClientOutput(const std::shared_ptr< Client > &client, const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, const Float32 *frames, UInt32 frameCount, UInt32 channelCount)
Write data from client to device.
virtual void OnWriteMixedOutput(const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, const void *bytes, UInt32 bytesCount)
Write mixed data from all clients to device.
virtual void OnReadClientInput(const std::shared_ptr< Client > &client, const std::shared_ptr< Stream > &stream, Float64 zeroTimestamp, Float64 timestamp, void *bytes, UInt32 bytesCount)
Read data from device to client.