gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <MixerTestAudio.H>
Public Member Functions | |
MixerTestAudio () | |
Constructor. More... | |
virtual | ~MixerTestAudio () |
Destructor. More... | |
int | setChannels (int outCnt, int inCnt, int testOutCnt) |
virtual int | reset () |
virtual int | getNumberOfRecordedChannels () |
Public Member Functions inherited from CrossoverAudio | |
CrossoverAudio () | |
Constructor : starts connecting to Jack audio. More... | |
virtual | ~CrossoverAudio () |
Destructor. More... | |
void | setGain (float g) |
float | getGain (void) |
int | setDuration (float d) |
float | getDuration (void) |
int | setChannels (int outCnt, int inCnt, int testInCnt) |
void | getChannels (int &inCnt, int &outCnt) |
int | recordNextChannelSet () |
void | nextCrossover () |
int | isRecording () |
Public Member Functions inherited from JackClient | |
JackClient (void) | |
JackClient (string clientName_) | |
virtual | ~JackClient () |
Destructor. More... | |
virtual int | connect (string clientName_) |
virtual int | connect (const string &clientName_, const string &serverName) |
virtual int | getBlockSize () |
int | setBlockSize (int size) |
virtual int | startClient () |
Public Member Functions inherited from JackBase | |
JackBase () | |
JackBase (string clientName_) | |
JackBase (string clientName_, string serverName) | |
virtual | ~JackBase () |
Destructor. More... | |
virtual int | stopClient (void) |
virtual int | disconnect (void) |
int | getSampleRate (void) const |
virtual int | createPorts (string inName, int inCnt, string outName, int outCnt) |
virtual int | destroyPorts () |
void | getPhysicalPorts (vector< jack_port_t *> &inPorts, vector< jack_port_t *> &outPorts) |
void | getPhysicalPortCount (int &in, int &out) |
bool | connected () |
virtual void | print (ostream &os) |
string | getClientName () |
virtual void | setClientName (string cn) |
string | portNameFromPort (jack_port_id_t p) |
string | portNameFromPort (jack_port_t *p) |
string | clientNameFromPort (jack_port_id_t p) |
string | clientNameFromPort (jack_port_t *p) |
string | clientNameFromPortName (string fullPortName) |
string | clientNameFromPortNames (string fullPortName, string shortPortName) |
string | shortPortNameFromPortName (const string fullPortName) |
bool | operator== (const string &cn) |
int | getInputPortSize () |
jack_port_t * | getInputPort (int i) |
jack_port_t * | getOutputPort (int i) |
void | addInputPort (jack_port_t *inP) |
void | addOutputPort (jack_port_t *outP) |
int | populatInOutPorts (const string &inName, vector< string > &inPorts, const string &outName, vector< string > &outPorts) |
int | connectPorts (const string inName, const string outName) |
virtual int | disconnectPorts (const string &inName, const string &outName) |
void | setClient (jack_client_t *c) |
Private Member Functions | |
virtual int | processAudio (jack_nframes_t nframes) |
The Jack client callback. More... | |
Private Attributes | |
int | currentOutputChannel |
The current output channel to test. More... | |
vector< float > | testFrequencies |
Superimposed sinusoidal test frequencies. More... | |
Additional Inherited Members | |
Public Attributes inherited from CrossoverAudio | |
Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic > | audio |
The first channel is the same data sent over each output channel, then the output channels, then the input channels. More... | |
Public Attributes inherited from JackBase | |
bool | connect1To1 |
When true, then connections are made in a 1 to 1 manner. When False, then connections are made in an all to all manner. More... | |
Protected Member Functions inherited from JackClient | |
virtual int | bufferSizeChange (jack_nframes_t nframes) |
Protected Member Functions inherited from JackBase | |
virtual void | determineLatencies () |
int | getPortListAndCount (JackPortFlags flags, vector< jack_port_t *> *ports, const char *portNamePattern, const char *typeNamePattern) |
int | getPortListAndCount (JackPortFlags flags, vector< string > *ports, const char *portNamePattern, const char *typeNamePattern) |
virtual void | reSyncPorts (void) |
virtual void | reSyncConnections (void) |
Protected Attributes inherited from CrossoverAudio | |
float | gain |
The gain for the output. More... | |
Mutex | recordLock |
The lock for when the audio is being played/recorded. More... | |
unsigned int | zeroSampleCnt |
The number of samples to train with zeros. More... | |
int | samplesToProcess |
The number of samples to process, matching the duration. More... | |
int | samplesProcessed |
The number of samples already processed. More... | |
int | currentInputChannel |
The current input channel to test. More... | |
Protected Attributes inherited from JackBase | |
jack_client_t * | client |
The jack client. More... | |
string | clientName |
The name of this client. More... | |
jack_options_t | jackOptions |
Options for jack. More... | |
jack_status_t | status |
The status of jack. More... | |
int | physicalInputPortCnt |
The number of physical input ports. More... | |
int | physicalOutputPortCnt |
The number of physical input ports. More... | |
vector< jack_port_t * > | inputPorts |
The input ports. More... | |
vector< jack_port_t * > | outputPorts |
The output ports. More... | |
vector< jack_nframes_t > | inputLatencies |
The input latencies, one for each port. More... | |
vector< jack_nframes_t > | outputLatencies |
The output latencies, one for each port. More... | |
Class to test all Mixer channels through less mixer outputs. The mixer is an external device to the computer the setup is like so : computer output ====> mixer ======> computer input
Definition at line 32 of file MixerTestAudio.H.
MixerTestAudio::MixerTestAudio | ( | ) |
Constructor.
Definition at line 25 of file MixerTestAudio.C.
|
virtual |
Destructor.
Definition at line 32 of file MixerTestAudio.C.
|
inlinevirtual |
Get number of recorded channels.
Reimplemented from CrossoverAudio.
Definition at line 60 of file MixerTestAudio.H.
|
privatevirtual |
The Jack client callback.
Reimplemented from CrossoverAudio.
Definition at line 37 of file MixerTestAudio.C.
|
virtual |
Reset the system, initialise ports and the output/input sample data;
Reimplemented from CrossoverAudio.
Definition at line 79 of file MixerTestAudio.C.
int MixerTestAudio::setChannels | ( | int | outCnt, |
int | inCnt, | ||
int | testOutCnt | ||
) |
Set the channel counts.
inCnt | The number of input channels. |
outCnt | The number of output channels. |
testOutCnt | The total number of channels to record for the entire test |
Definition at line 67 of file MixerTestAudio.C.
|
private |
The current output channel to test.
Definition at line 33 of file MixerTestAudio.H.
|
private |
Superimposed sinusoidal test frequencies.
Definition at line 38 of file MixerTestAudio.H.
GTK+ IOStream
Beta
|