#include <JackDspSource.h>
Inheritance diagram for JackDspSource:
Definition at line 65 of file JackDspSource.h.
Public Member Functions | |
JackDspSource (const char *name, int sampleRate=44100, int bitsPerSample=16, int channels=2) throw ( Exception ) | |
Constructor. | |
JackDspSource (const JackDspSource &jds) throw ( Exception ) | |
Copy Constructor. | |
virtual | ~JackDspSource (void) throw ( Exception ) |
Destructor. | |
virtual JackDspSource & | operator= (const JackDspSource &ds) throw ( Exception ) |
Assignment operator. | |
virtual bool | open (void) throw ( Exception ) |
Open the JackDspSource. | |
virtual bool | isOpen (void) const throw () |
Check if the JackDspSource is registered. | |
virtual bool | canRead (unsigned int sec, unsigned int usec) throw ( Exception ) |
Check if the JackDspSource can be read from. | |
virtual unsigned int | read (void *buf, unsigned int len) throw ( Exception ) |
Read from the JackDspSource. | |
virtual void | close (void) throw ( Exception ) |
Close the JackDspSource. | |
Protected Member Functions | |
JackDspSource (void) throw ( Exception ) | |
Default constructor. | |
void | init (const char *name) throw ( Exception ) |
Initialize the object. | |
void | strip (void) throw ( Exception ) |
De-initialize the object. | |
void | do_auto_connect () throw ( Exception ) |
Attempt to connect up the JACK ports automatically. | |
Static Protected Member Functions | |
static int | process_callback (jack_nframes_t nframes, void *arg) |
Callback called by JACK when audio is available. | |
static void | shutdown_callback (void *arg) |
Callback called by JACK when jackd is shutting down. |
|
Default constructor. Always throws an Exception.
Definition at line 102 of file JackDspSource.h. |
|
Constructor.
Definition at line 156 of file JackDspSource.h. References init(). |
|
Copy Constructor.
Definition at line 174 of file JackDspSource.h. |
|
Destructor.
Definition at line 186 of file JackDspSource.h. References strip(). |
|
Check if the JackDspSource can be read from. Blocks until the specified time for data to be available. Puts the Jack DSP device into recording mode.
Implements Source. |
|
Close the JackDspSource.
Implements Source. |
|
Attempt to connect up the JACK ports automatically.
|
|
Initialize the object.
Referenced by JackDspSource(). |
|
Check if the JackDspSource is registered.
Implements Source. Definition at line 224 of file JackDspSource.h. |
|
Open the JackDspSource. This does not put the Jack DSP device into recording mode. To start getting samples, call either canRead() or read().
Implements Source. |
|
Assignment operator.
Definition at line 199 of file JackDspSource.h. |
|
Callback called by JACK when audio is available.
|
|
Read from the JackDspSource. Puts the Jack DSP device into recording mode.
Implements Source. |
|
Callback called by JACK when jackd is shutting down.
|
|
De-initialize the object.
Reimplemented from AudioSource. Referenced by ~JackDspSource(). |