// SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include "../../../src/core/AudioBuffer.h" #include namespace VCC::Mac { // All methods except the internal render callback belong to the machine queue. class MacAudioOutput { public: MacAudioOutput(); ~MacAudioOutput(); void start(); // throws a user-visible error; never opens an input device void stop(); // stops callback before clearing queued samples bool running() const; std::uint64_t starts() const; bool needsRestart() const; AudioBuffer& buffer(); private: struct Impl; std::unique_ptr impl; }; }