11#include <CoreAudio/AudioHardwareBase.h>
21class ControlRequestHandler
24 ControlRequestHandler() =
default;
26 ControlRequestHandler(
const ControlRequestHandler&) =
delete;
27 ControlRequestHandler& operator=(
const ControlRequestHandler&) =
delete;
29 virtual ~ControlRequestHandler() =
default;
41 return kAudioHardwareNoError;
60 return std::make_shared<Client>(clientInfo);
virtual OSStatus OnStartIO()
Invoked by Device when the very first client wants to start I/O. If desired, may block to perform all...
virtual void OnRemoveClient(std::shared_ptr< Client > client)
Invoked by Device when a client detaches from it. Override to handle client removal....
virtual std::shared_ptr< Client > OnAddClient(const ClientInfo &clientInfo)
Invoked by Device when a new client attaches to it. Override to handle client creation....
virtual void OnStopIO()
Invoked by Device when the last client has stopped I/O. After this call, StartIO() may be called agai...
Information about client.