gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
MixerTestAudio Class Reference

#include <MixerTestAudio.H>

Inheritance diagram for MixerTestAudio:
[legend]
Collaboration diagram for MixerTestAudio:
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MixerTestAudio()

MixerTestAudio::MixerTestAudio ( )

Constructor.

Definition at line 25 of file MixerTestAudio.C.

◆ ~MixerTestAudio()

MixerTestAudio::~MixerTestAudio ( )
virtual

Destructor.

Definition at line 32 of file MixerTestAudio.C.

Member Function Documentation

◆ getNumberOfRecordedChannels()

virtual int MixerTestAudio::getNumberOfRecordedChannels ( )
inlinevirtual

Get number of recorded channels.

Returns
the number of channels already recorded.

Reimplemented from CrossoverAudio.

Definition at line 60 of file MixerTestAudio.H.

Here is the caller graph for this function:

◆ processAudio()

int MixerTestAudio::processAudio ( jack_nframes_t  nframes)
privatevirtual

The Jack client callback.

Reimplemented from CrossoverAudio.

Definition at line 37 of file MixerTestAudio.C.

Here is the call graph for this function:

◆ reset()

int MixerTestAudio::reset ( void  )
virtual

Reset the system, initialise ports and the output/input sample data;

Returns
NO_ERROR on success, or when the playback thread is running, it stops it, resets and then returns, indicating that the audio thread was stopped, by returning thread lock error.

Reimplemented from CrossoverAudio.

Definition at line 79 of file MixerTestAudio.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setChannels()

int MixerTestAudio::setChannels ( int  outCnt,
int  inCnt,
int  testOutCnt 
)

Set the channel counts.

Parameters
inCntThe number of input channels.
outCntThe number of output channels.
testOutCntThe total number of channels to record for the entire test
Returns
NO_ERROR on success, an error if audio is already playing/recording.

Definition at line 67 of file MixerTestAudio.C.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ currentOutputChannel

int MixerTestAudio::currentOutputChannel
private

The current output channel to test.

Definition at line 33 of file MixerTestAudio.H.

◆ testFrequencies

vector<float> MixerTestAudio::testFrequencies
private

Superimposed sinusoidal test frequencies.

Definition at line 38 of file MixerTestAudio.H.


The documentation for this class was generated from the following files:
gtkIOStream: MixerTestAudio Class Reference
GTK+ IOStream  Beta