Audacity  2.2.0
AudioIO.h File Reference
#include "portaudio.h"
#include "Audacity.h"
#include "Experimental.h"
#include "MemoryX.h"
#include <vector>
#include <wx/atomic.h>
#include <wx/event.h>
#include <wx/string.h>
#include <wx/thread.h>
#include "SampleFormat.h"

Go to the source code of this file.

Classes

struct  AudioIOStartStreamOptions
 
class  AudioIO
 AudioIO uses the PortAudio library to play and record sound. More...
 

Macros

#define BAD_STREAM_TIME   (-DBL_MAX)
 
#define MAX_MIDI_BUFFER_SIZE   5000
 
#define DEFAULT_SYNTH_LATENCY   5
 
#define DEFAULT_LATENCY_DURATION   100.0
 
#define DEFAULT_LATENCY_CORRECTION   -130.0
 
#define AUDIO_IO_GB_MIDI_WORKAROUND
 

Typedefs

using WaveTrackArray = std::vector< WaveTrack * >
 
using ConstWaveTrackArray = std::vector< const WaveTrack * >
 

Functions

void InitAudioIO ()
 
void DeinitAudioIO ()
 
wxString DeviceName (const PaDeviceInfo *info)
 
wxString HostName (const PaDeviceInfo *info)
 
bool ValidateDeviceNames ()
 
 DECLARE_EXPORTED_EVENT_TYPE (AUDACITY_DLL_API, EVT_AUDIOIO_PLAYBACK,-1)
 
 DECLARE_EXPORTED_EVENT_TYPE (AUDACITY_DLL_API, EVT_AUDIOIO_CAPTURE,-1)
 
 DECLARE_EXPORTED_EVENT_TYPE (AUDACITY_DLL_API, EVT_AUDIOIO_MONITOR,-1)
 

Variables

AUDACITY_DLL_API AudioIOgAudioIO
 

Macro Definition Documentation

#define AUDIO_IO_GB_MIDI_WORKAROUND
#define BAD_STREAM_TIME   (-DBL_MAX)
#define DEFAULT_LATENCY_CORRECTION   -130.0
#define DEFAULT_SYNTH_LATENCY   5
#define MAX_MIDI_BUFFER_SIZE   5000

Typedef Documentation

using ConstWaveTrackArray = std::vector < const WaveTrack* >
using WaveTrackArray = std::vector < WaveTrack* >

Function Documentation

DECLARE_EXPORTED_EVENT_TYPE ( AUDACITY_DLL_API  ,
EVT_AUDIOIO_PLAYBACK  ,
1 
)
DECLARE_EXPORTED_EVENT_TYPE ( AUDACITY_DLL_API  ,
EVT_AUDIOIO_CAPTURE  ,
1 
)
DECLARE_EXPORTED_EVENT_TYPE ( AUDACITY_DLL_API  ,
EVT_AUDIOIO_MONITOR  ,
1 
)
void DeinitAudioIO ( )

Referenced by AudacityApp::OnExit().

wxString DeviceName ( const PaDeviceInfo *  info)
wxString HostName ( const PaDeviceInfo *  info)
bool ValidateDeviceNames ( )

Variable Documentation

AUDACITY_DLL_API AudioIO* gAudioIO