From 88bf4891b813b5fbf14b3073200429d2c12f751b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 11 Sep 2024 02:04:49 +0200 Subject: other stuff. --- src/wx/audio_backend.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/wx/audio_backend.h') diff --git a/src/wx/audio_backend.h b/src/wx/audio_backend.h index 170c71e05..05d1a06b5 100644 --- a/src/wx/audio_backend.h +++ b/src/wx/audio_backend.h @@ -23,6 +23,7 @@ LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS +#include #include #include @@ -36,16 +37,23 @@ public: AudioBackend(AudioBackend const&) = delete; AudioBackend& operator=(AudioBackend const&) = delete; - RtAudio& rtaudio() { - return _rtaudio; - } - std::vector device_names(); boost::optional default_device_name(); boost::optional device_channels(std::string name); - void abort_stream_if_running(); + bool open_stream(RtAudioCallback callback, void* context, int* channels, unsigned int* block_size, boost::optional output); boost::optional start_stream(); + void abort_stream_if_running(); + void close_stream(); + + bool stream_open() const; + bool stream_running() const; + double stream_time() const; + int64_t stream_latency() const; + + void set_stream_time(double time); + + wxString current_api_name() const; #if (RTAUDIO_VERSION_MAJOR >= 6) std::string last_error() const; -- cgit v1.2.3