#include <ALSA9Helpers.h>
Public Types | |
enum | hw { HW_HARDWARE, HW_SOFTWARE, HW_DONT_CARE } |
Public Member Functions | |
Alsa9Buf () | |
CString | Init (hw hardware, int channels) |
~Alsa9Buf () | |
int | GetNumFramesToFill () |
bool | WaitUntilFramesCanBeFilled (int timeout_ms) |
void | Write (const int16_t *buffer, int frames) |
unsigned | FindSampleRate (unsigned rate) |
void | Play () |
void | Stop () |
void | SetVolume (float vol) |
void | SetSampleRate (int hz) |
int | GetSampleRate () const |
void | SetWriteahead (snd_pcm_sframes_t frames) |
void | SetChunksize (snd_pcm_sframes_t frames) |
void | LogParams () |
int64_t | GetPosition () const |
int64_t | GetPlayPos () const |
Static Public Member Functions | |
void | InitializeErrorHandler () |
void | GetSoundCardDebugInfo () |
CString | GetHardwareID (CString name="") |
Private Member Functions | |
bool | Recover (int r) |
bool | SetHWParams () |
bool | SetSWParams () |
Static Private Member Functions | |
void | ErrorHandler (const char *file, int line, const char *function, int err, const char *fmt,...) |
Private Attributes | |
int | channels |
int | samplerate |
int | samplebits |
int | buffersize |
int64_t | last_cursor_pos |
bool | samplerate_set_explicitly |
snd_pcm_uframes_t | preferred_writeahead |
snd_pcm_uframes_t | preferred_chunksize |
snd_pcm_uframes_t | writeahead |
snd_pcm_uframes_t | chunksize |
snd_pcm_t * | pcm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|