#include <portaudio_io.h>
|
| PortAudioIO (void) |
|
| ~PortAudioIO (void) |
|
void | host_api_list (std::vector< std::string > &) |
|
bool | set_host_api (const std::string &host_api_name) |
|
std::string | get_host_api () const |
|
PaHostApiTypeId | get_current_host_api_type () const |
|
PaHostApiIndex | get_host_api_index_from_name (const std::string &name) |
|
PaDeviceIndex | get_default_input_device () const |
|
PaDeviceIndex | get_default_output_device () const |
|
bool | update_devices () |
|
void | input_device_list (std::map< int, std::string > &devices) const |
|
void | output_device_list (std::map< int, std::string > &devices) const |
|
int | available_sample_rates (int device_id, std::vector< float > &sample_rates) |
|
int | available_buffer_sizes (int device_id, std::vector< uint32_t > &buffer_sizes) |
|
std::string | control_app_name (int device_id) const |
|
void | launch_control_app (int device_id) |
|
PaErrorCode | open_blocking_stream (int device_input, int device_output, double sample_rate, uint32_t samples_per_period) |
|
PaErrorCode | open_callback_stream (int device_input, int device_output, double sample_rate, uint32_t samples_per_period, PaStreamCallback *callback, void *data) |
|
PaErrorCode | start_stream (void) |
|
PaErrorCode | close_stream (void) |
|
uint32_t | n_playback_channels (void) const |
|
uint32_t | n_capture_channels (void) const |
|
std::string | get_input_channel_name (int device_id, uint32_t channel) const |
|
std::string | get_output_channel_name (int device_id, uint32_t channel) const |
|
double | sample_rate (void) const |
|
uint32_t | capture_latency (void) const |
|
uint32_t | playback_latency (void) const |
|
double | stream_time (void) const |
|
int | next_cycle (uint32_t n_samples) |
|
int | get_capture_channel (uint32_t chn, float *input, uint32_t n_samples) |
|
int | set_playback_channel (uint32_t chn, const float *input, uint32_t n_samples) |
|
float * | get_capture_buffer () |
|
float * | get_playback_buffer () |
|
Definition at line 32 of file portaudio_io.h.
◆ StandardDevices
Enumerator |
---|
DeviceNone | |
DeviceDefault | |
Definition at line 37 of file portaudio_io.h.
◆ PortAudioIO()
ARDOUR::PortAudioIO::PortAudioIO |
( |
void |
| ) |
|
◆ ~PortAudioIO()
ARDOUR::PortAudioIO::~PortAudioIO |
( |
void |
| ) |
|
◆ add_default_devices()
void ARDOUR::PortAudioIO::add_default_devices |
( |
| ) |
|
|
private |
◆ add_devices()
void ARDOUR::PortAudioIO::add_devices |
( |
| ) |
|
|
private |
◆ add_none_devices()
void ARDOUR::PortAudioIO::add_none_devices |
( |
| ) |
|
|
private |
◆ allocate_buffers_for_blocking_api()
bool ARDOUR::PortAudioIO::allocate_buffers_for_blocking_api |
( |
uint32_t |
samples_per_period | ) |
|
|
private |
◆ available_buffer_sizes()
int ARDOUR::PortAudioIO::available_buffer_sizes |
( |
int |
device_id, |
|
|
std::vector< uint32_t > & |
buffer_sizes |
|
) |
| |
◆ available_sample_rates()
int ARDOUR::PortAudioIO::available_sample_rates |
( |
int |
device_id, |
|
|
std::vector< float > & |
sample_rates |
|
) |
| |
◆ capture_latency()
uint32_t ARDOUR::PortAudioIO::capture_latency |
( |
void |
| ) |
const |
|
inline |
◆ clear_device_lists()
void ARDOUR::PortAudioIO::clear_device_lists |
( |
| ) |
|
|
private |
◆ close_stream()
PaErrorCode ARDOUR::PortAudioIO::close_stream |
( |
void |
| ) |
|
◆ control_app_name()
std::string ARDOUR::PortAudioIO::control_app_name |
( |
int |
device_id | ) |
const |
◆ get_capture_buffer()
float* ARDOUR::PortAudioIO::get_capture_buffer |
( |
| ) |
|
|
inline |
◆ get_capture_channel()
int ARDOUR::PortAudioIO::get_capture_channel |
( |
uint32_t |
chn, |
|
|
float * |
input, |
|
|
uint32_t |
n_samples |
|
) |
| |
◆ get_current_host_api_type()
PaHostApiTypeId ARDOUR::PortAudioIO::get_current_host_api_type |
( |
| ) |
const |
◆ get_default_buffer_sizes()
static void ARDOUR::PortAudioIO::get_default_buffer_sizes |
( |
std::vector< uint32_t > & |
| ) |
|
|
staticprivate |
◆ get_default_input_device()
PaDeviceIndex ARDOUR::PortAudioIO::get_default_input_device |
( |
| ) |
const |
◆ get_default_output_device()
PaDeviceIndex ARDOUR::PortAudioIO::get_default_output_device |
( |
| ) |
const |
◆ get_default_sample_rates()
static void ARDOUR::PortAudioIO::get_default_sample_rates |
( |
std::vector< float > & |
| ) |
|
|
staticprivate |
◆ get_host_api()
std::string ARDOUR::PortAudioIO::get_host_api |
( |
| ) |
const |
|
inline |
◆ get_host_api_index_from_name()
PaHostApiIndex ARDOUR::PortAudioIO::get_host_api_index_from_name |
( |
const std::string & |
name | ) |
|
◆ get_host_api_name_from_index()
std::string ARDOUR::PortAudioIO::get_host_api_name_from_index |
( |
PaHostApiIndex |
index | ) |
|
|
private |
◆ get_input_channel_name()
std::string ARDOUR::PortAudioIO::get_input_channel_name |
( |
int |
device_id, |
|
|
uint32_t |
channel |
|
) |
| const |
◆ get_input_stream_params()
bool ARDOUR::PortAudioIO::get_input_stream_params |
( |
int |
device_input, |
|
|
PaStreamParameters & |
inputParam |
|
) |
| const |
|
private |
◆ get_output_channel_name()
std::string ARDOUR::PortAudioIO::get_output_channel_name |
( |
int |
device_id, |
|
|
uint32_t |
channel |
|
) |
| const |
◆ get_output_stream_params()
bool ARDOUR::PortAudioIO::get_output_stream_params |
( |
int |
device_output, |
|
|
PaStreamParameters & |
outputParam |
|
) |
| const |
|
private |
◆ get_playback_buffer()
float* ARDOUR::PortAudioIO::get_playback_buffer |
( |
| ) |
|
|
inline |
◆ host_api_list()
void ARDOUR::PortAudioIO::host_api_list |
( |
std::vector< std::string > & |
| ) |
|
◆ input_device_list()
void ARDOUR::PortAudioIO::input_device_list |
( |
std::map< int, std::string > & |
devices | ) |
const |
◆ launch_control_app()
void ARDOUR::PortAudioIO::launch_control_app |
( |
int |
device_id | ) |
|
◆ n_capture_channels()
uint32_t ARDOUR::PortAudioIO::n_capture_channels |
( |
void |
| ) |
const |
|
inline |
◆ n_playback_channels()
uint32_t ARDOUR::PortAudioIO::n_playback_channels |
( |
void |
| ) |
const |
|
inline |
◆ next_cycle()
int ARDOUR::PortAudioIO::next_cycle |
( |
uint32_t |
n_samples | ) |
|
◆ open_blocking_stream()
PaErrorCode ARDOUR::PortAudioIO::open_blocking_stream |
( |
int |
device_input, |
|
|
int |
device_output, |
|
|
double |
sample_rate, |
|
|
uint32_t |
samples_per_period |
|
) |
| |
◆ open_callback_stream()
PaErrorCode ARDOUR::PortAudioIO::open_callback_stream |
( |
int |
device_input, |
|
|
int |
device_output, |
|
|
double |
sample_rate, |
|
|
uint32_t |
samples_per_period, |
|
|
PaStreamCallback * |
callback, |
|
|
void * |
data |
|
) |
| |
◆ output_device_list()
void ARDOUR::PortAudioIO::output_device_list |
( |
std::map< int, std::string > & |
devices | ) |
const |
◆ pa_deinitialize()
static bool ARDOUR::PortAudioIO::pa_deinitialize |
( |
| ) |
|
|
staticprivate |
◆ pa_initialize()
static bool ARDOUR::PortAudioIO::pa_initialize |
( |
| ) |
|
|
staticprivate |
◆ pa_initialized()
static bool& ARDOUR::PortAudioIO::pa_initialized |
( |
| ) |
|
|
staticprivate |
◆ playback_latency()
uint32_t ARDOUR::PortAudioIO::playback_latency |
( |
void |
| ) |
const |
|
inline |
◆ pre_stream_open()
PaErrorCode ARDOUR::PortAudioIO::pre_stream_open |
( |
int |
device_input, |
|
|
PaStreamParameters & |
inputParam, |
|
|
int |
device_output, |
|
|
PaStreamParameters & |
outputParam, |
|
|
uint32_t |
sample_rate, |
|
|
uint32_t |
samples_per_period |
|
) |
| |
|
private |
◆ reset_stream_dependents()
void ARDOUR::PortAudioIO::reset_stream_dependents |
( |
| ) |
|
|
private |
◆ sample_rate()
double ARDOUR::PortAudioIO::sample_rate |
( |
void |
| ) |
const |
|
inline |
◆ set_host_api()
bool ARDOUR::PortAudioIO::set_host_api |
( |
const std::string & |
host_api_name | ) |
|
◆ set_playback_channel()
int ARDOUR::PortAudioIO::set_playback_channel |
( |
uint32_t |
chn, |
|
|
const float * |
input, |
|
|
uint32_t |
n_samples |
|
) |
| |
◆ set_sample_rate_and_latency_from_stream()
bool ARDOUR::PortAudioIO::set_sample_rate_and_latency_from_stream |
( |
| ) |
|
|
private |
◆ start_stream()
PaErrorCode ARDOUR::PortAudioIO::start_stream |
( |
void |
| ) |
|
◆ stream_time()
double ARDOUR::PortAudioIO::stream_time |
( |
void |
| ) |
const |
|
inline |
◆ update_devices()
bool ARDOUR::PortAudioIO::update_devices |
( |
| ) |
|
◆ _capture_channels
uint32_t ARDOUR::PortAudioIO::_capture_channels |
|
private |
◆ _cur_input_latency
uint32_t ARDOUR::PortAudioIO::_cur_input_latency |
|
private |
◆ _cur_output_latency
uint32_t ARDOUR::PortAudioIO::_cur_output_latency |
|
private |
◆ _cur_sample_rate
double ARDOUR::PortAudioIO::_cur_sample_rate |
|
private |
◆ _host_api_index
PaHostApiIndex ARDOUR::PortAudioIO::_host_api_index |
|
private |
◆ _host_api_name
std::string ARDOUR::PortAudioIO::_host_api_name |
|
private |
◆ _input_buffer
float* ARDOUR::PortAudioIO::_input_buffer |
|
private |
◆ _input_devices
std::map<int, paDevice *> ARDOUR::PortAudioIO::_input_devices |
|
private |
◆ _output_buffer
float* ARDOUR::PortAudioIO::_output_buffer |
|
private |
◆ _output_devices
std::map<int, paDevice *> ARDOUR::PortAudioIO::_output_devices |
|
private |
◆ _playback_channels
uint32_t ARDOUR::PortAudioIO::_playback_channels |
|
private |
◆ _stream
PaStream* ARDOUR::PortAudioIO::_stream |
|
private |
The documentation for this class was generated from the following file: