11#ifndef __PROJECT_AUDIO_IO__
12#define __PROJECT_AUDIO_IO__
17#include <wx/weakref.h>
47 bool newDefaults =
false
60 int GetAudioIOToken()
const;
61 bool IsAudioActive()
const;
62 void SetAudioIOToken(
int token);
64 const std::shared_ptr<Meter> &GetPlaybackMeter()
const;
65 void SetPlaybackMeter(
66 const std::shared_ptr<Meter> &playback);
67 const std::shared_ptr<Meter> &GetCaptureMeter()
const;
69 const std::shared_ptr<Meter> &capture);
73 return mPlaySpeed.load( std::memory_order_relaxed ); }
74 void SetPlaySpeed(
double value );
85 std::atomic<double> mPlaySpeed{};
87 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...
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
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.