libpsynth 0.2.1
Public Types | Public Member Functions | Protected Member Functions
psynth::io::alsa_raw_output Class Reference

#include <alsa_raw_output.hpp>

Inheritance diagram for psynth::io::alsa_raw_output:
Inheritance graph
[legend]
Collaboration diagram for psynth::io::alsa_raw_output:
Collaboration graph
[legend]

List of all members.

Public Types

typedef thread_async::callback_type callback_type

Public Member Functions

 alsa_raw_output (const char *device, snd_pcm_format_t format, snd_pcm_uframes_t buffer_size, snd_pcm_access_t access, unsigned int rate, unsigned int channels, callback_type cb=callback_type())
 ~alsa_raw_output ()
std::size_t put_i (const void *data, std::size_t frames)
std::size_t put_n (const void *const *data, std::size_t frames)
std::size_t buffer_size () const
void start ()
void stop ()

Protected Member Functions

void iterate ()

Member Typedef Documentation

Reimplemented from psynth::io::thread_async.


Constructor & Destructor Documentation

psynth::io::alsa_raw_output::alsa_raw_output ( const char *  device,
snd_pcm_format_t  format,
snd_pcm_uframes_t  buffer_size,
snd_pcm_access_t  access,
unsigned int  rate,
unsigned int  channels,
callback_type  cb = callback_type () 
)
psynth::io::alsa_raw_output::~alsa_raw_output ( )

Member Function Documentation

std::size_t psynth::io::alsa_raw_output::buffer_size ( ) const [inline]
void psynth::io::alsa_raw_output::iterate ( ) [protected, virtual]

Reimplemented from psynth::io::thread_async.

std::size_t psynth::io::alsa_raw_output::put_i ( const void *  data,
std::size_t  frames 
)
std::size_t psynth::io::alsa_raw_output::put_n ( const void *const *  data,
std::size_t  frames 
)
void psynth::io::alsa_raw_output::start ( ) [virtual]

Reimplemented from psynth::io::thread_async.

void psynth::io::alsa_raw_output::stop ( ) [virtual]

Reimplemented from psynth::io::thread_async.


The documentation for this class was generated from the following files: