33 #ifndef _NSOUND_AUDIO_PLAYBACK_RT_H_
34 #define _NSOUND_AUDIO_PLAYBACK_RT_H_
40 #ifdef NSOUND_LIBPORTAUDIO
41 #include <portaudio.h>
100 float64 buffer_size_sec = -1.0);
152 unsigned long frame_count,
160 typedef std::vector< Int16Vector * >
Pool;
237 // :mode=c++: jEdit modeline
float64 getActualLatencySeconds() const
std::string debug_print()
uint32 n_samples_per_buffer_
BufferUnderrunMode underrun_mode_
void stop()
Stops playback.
Pool::iterator pool_begin_
std::string host_api_str_
uint32 unknown_error_count
std::string getInfo()
Returns information about the backend driver.
std::string __str__() const
float64 actual_latency_sec_
AudioPlaybackRt & operator=(const AudioPlaybackRt &rhs)
std::vector< uint32 > n_history
void operator>>(const AudioStream &lhs, AudioPlayback &rhs)
AudioPlaybackRt(const AudioPlaybackRt ©)
uint32 getSamplesPerBuffer() const
int _callback(const void *input, void *output, const uint32 frame_count, const PaStreamCallbackTimeInfo *time_info, PaStreamCallbackFlags status_flags)
AudioPlaybackRtDebug get_debug_info() const
void setBufferUnderrunMode(BufferUnderrunMode bum)
uint32 n_frames_per_buffer_
PaStreamParameters * out_params_
A Buffer for storing audio samples.
AudioPlaybackRt(float64 sample_rate=44100.0, uint32 channels=1, uint32 n_buffers=3, float64 buffer_size_sec=-1.0)
static int _pa_callback(const void *input, void *output, unsigned long frame_count, const PaStreamCallbackTimeInfo *time_info, PaStreamCallbackFlags status_flags, void *ap_obj)
std::vector< int16 > Int16Vector
uint32 samples_per_buffer
uint32 pa_underrun_count_
uint32 unknown_error_count_
std::vector< uint32 > n_history_
static void use_jack(bool flag)
std::vector< Int16Vector * > Pool
void play(const AudioStream &a)
Writes samples to the internal circular buffer to be played.