Jack2  1.9.10
Public Member Functions | Public Attributes
Jack::AudioInterface Class Reference

#include <JackAlsaAdapter.h>

Inheritance diagram for Jack::AudioInterface:
Jack::AudioParam

List of all members.

Public Member Functions

const char * cardName ()
int frequency ()
int buffering ()
jack_default_audio_sample_t ** inputSoftChannels ()
jack_default_audio_sample_t ** outputSoftChannels ()
 AudioInterface (const AudioParam &ap=AudioParam())
 AudioInterface (jack_nframes_t buffer_size, jack_nframes_t sample_rate)
int open ()
int close ()
int setAudioParams (snd_pcm_t *stream, snd_pcm_hw_params_t *params)
ssize_t interleavedBufferSize (snd_pcm_hw_params_t *params)
ssize_t noninterleavedBufferSize (snd_pcm_hw_params_t *params)
int read ()
int write ()
int shortinfo ()
int longinfo ()
void printCardInfo (snd_ctl_card_info_t *ci)
void printHWParams (snd_pcm_hw_params_t *params)

Public Attributes

snd_pcm_t * fOutputDevice
snd_pcm_t * fInputDevice
snd_pcm_hw_params_t * fInputParams
snd_pcm_hw_params_t * fOutputParams
snd_pcm_format_t fSampleFormat
snd_pcm_access_t fSampleAccess
const char * fCaptureName
const char * fPlaybackName
unsigned int fCardInputs
unsigned int fCardOutputs
unsigned int fPeriod
void * fInputCardBuffer
void * fOutputCardBuffer
void * fInputCardChannels [256]
void * fOutputCardChannels [256]
jack_default_audio_sample_t * fInputSoftChannels [256]
jack_default_audio_sample_t * fOutputSoftChannels [256]

Detailed Description

An ALSA audio interface

Definition at line 119 of file JackAlsaAdapter.h.


Member Function Documentation

int Jack::AudioInterface::open ( ) [inline]

Open the audio interface

Definition at line 222 of file JackAlsaAdapter.h.

int Jack::AudioInterface::read ( ) [inline]

Read audio samples from the audio card. Convert samples to floats and take care of interleaved buffers

Definition at line 367 of file JackAlsaAdapter.h.

int Jack::AudioInterface::write ( ) [inline]

write the output soft channels to the audio card. Convert sample format and interleaves buffers when needed

Definition at line 434 of file JackAlsaAdapter.h.

print short information on the audio device

Definition at line 519 of file JackAlsaAdapter.h.

print more detailled information on the audio device

Definition at line 538 of file JackAlsaAdapter.h.


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