11#ifndef __PROJECT_AUDIO_IO__
12#define __PROJECT_AUDIO_IO__
17#include <wx/weakref.h>
41 static const std::function<OptionsFactory> DefaultOptionsFactory();
53 bool newDefaults =
false
66 int GetAudioIOToken()
const;
67 bool IsAudioActive()
const;
68 void SetAudioIOToken(
int token);
70 const std::shared_ptr<Meter> &GetPlaybackMeter()
const;
71 void SetPlaybackMeter(
72 const std::shared_ptr<Meter> &playback);
73 const std::shared_ptr<Meter> &GetCaptureMeter()
const;
75 const std::shared_ptr<Meter> &capture);
79 return mPlaySpeed.load( std::memory_order_relaxed ); }
80 void SetPlaySpeed(
double value );
91 std::atomic<double> mPlaySpeed{};
93 int mAudioIOToken{ -1 };
Utility ClientData::Site to register hooks into a host class that attach client data.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Global function-valued variable, adding a convenient Call()
AudioIO uses this to send sample buffers for real-time display updates.
An object that sends messages to an open-ended list of subscribed callbacks.
ProjectAudioIO & operator=(const ProjectAudioIO &)=delete
AudioIOStartStreamOptions(AudacityProject &project, bool newDefaults) OptionsFactory
Type of function constructing AudioIOStartStreamOptions.
std::shared_ptr< Meter > mPlaybackMeter
double GetPlaySpeed() const
AudacityProject & mProject
ProjectAudioIO(const ProjectAudioIO &)=delete
std::shared_ptr< Meter > mCaptureMeter
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
struct holding stream options, including a pointer to the time warp info and AudioIOListener and whet...
A convenient default parameter for class template Site.