1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 17:41:13 +02:00

Move CanStopAudioStream into ProjectAudioManager

This commit is contained in:
Paul Licameli
2019-06-30 15:30:01 -04:00
parent a470ba00b0
commit 977b46cda2
5 changed files with 55 additions and 36 deletions

View File

@@ -58,6 +58,9 @@ public:
void SetCutting( bool value ) { mCutting = value; }
void SetStopping( bool value ) { mStopping = value; }
// A project is only allowed to stop an audio stream that it owns.
bool CanStopAudioStream () const;
private:
// Audio IO callback methods
void OnAudioIORate(int rate) override;
@@ -87,6 +90,11 @@ private:
AudioIOStartStreamOptions DefaultPlayOptions( AudacityProject &project );
AudioIOStartStreamOptions DefaultSpeedPlayOptions( AudacityProject &project );
#include "commands/CommandFlag.h"
extern const ReservedCommandFlag
CanStopAudioStreamFlag;
/// Namespace for functions for Transport menu
namespace TransportActions {
void StopIfPaused( AudacityProject &project );