Audacity  2.2.0
AudioIOListener.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  AudioIOListener.h
6 
7  Dominic Mazzoni
8 
9  Use the PortAudio library to play and record sound
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_AUDIO_IO_LISTENER__
14 #define __AUDACITY_AUDIO_IO_LISTENER__
15 
16 #include <wx/string.h>
17 
18 class AutoSaveFile;
19 
20 class AUDACITY_DLL_API AudioIOListener /* not final */ {
21 public:
23  virtual ~AudioIOListener() {}
24 
25  // Pass 0 when audio stops, positive when it starts:
26  virtual void OnAudioIORate(int rate) = 0;
27 
28  virtual void OnAudioIOStartRecording() = 0;
29  virtual void OnAudioIOStopRecording() = 0;
30  virtual void OnAudioIONewBlockFiles(const AutoSaveFile & blockFileLog) = 0;
31 };
32 
33 #endif
AudioIOListener()
Definition: AudioIOListener.h:22
Monitors record play start/stop and new blockfiles. Has callbacks for these events.
Definition: AudioIOListener.h:20
virtual ~AudioIOListener()
Definition: AudioIOListener.h:23
a class wrapping reading and writing of arbitrary data in text or binary format to a file...
Definition: AutoRecovery.h:76