33 #ifndef _NSOUND_AUDIO_BACKEND_LIBPORTAUDIO_H_
34 #define _NSOUND_AUDIO_BACKEND_LIBPORTAUDIO_H_
56 uint32 sample_rate = 44100,
58 uint32 bits_per_sample = 16);
104 setOption(
const std::string & key,
const std::string & value);
128 std::vector< std::string >
options_;
uint32 n_frames_per_buffer_
AudioBackendLibportaudio(uint32 sample_rate=44100, uint32 channels=1, uint32 bits_per_sample=16)
AudioBackendLibportaudio(const AudioBackendLibportaudio ©)
std::stringstream error_buffer_
~AudioBackendLibportaudio()
PaStreamParameters * out_params_
void setOption(const std::string &key, const std::string &value)
Set Libportaudio options.
void scanDevices(AudioPlayback &pb, const AudioStream &test_clip)
AudioBackendLibportaudio & operator=(const AudioBackendLibportaudio &rhs)
void play(void *data, uint32 n_bytes)
std::vector< std::string > options_
AudioBackendType getBackendType()