AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | List of all members
JackWorker Class Reference

The JackWorker class is responsible for managing the Jack audio server and audio client engine. More...

#include <JackWorker.h>

Inheritance diagram for JackWorker:
Inheritance graph
[legend]
Collaboration diagram for JackWorker:
Collaboration graph
[legend]

Public Slots

void setupJackServer ()
 Sets up the Jack server.
 
void startJackServer ()
 Starts the Jack server.
 
void stopJackServer ()
 Stops the Jack server.
 
void setAudioSource (SourceType type)
 Sets the audio source.
 
void setActiveFilterType (FilterType filterType)
 Sets the active filter type.
 
void setVolumeLevel (int level)
 Sets the volume level.
 
void setFilterConfig (int frequency, int gain)
 Sets the filter configuration.
 
void setAudioFile (AudioFile< float > file)
 Sets the audio file.
 
void setIsPlayingModified (bool playingModified)
 Sets whether the audio is playing modified.
 
void pingCPULoad ()
 Ping for CPU Load.
 

Signals

void jackEngineStatus (QString)
 Signal emitted when the Jack server's status changes.
 
void updateCPULoad (float)
 Signal emitted when the CPU load method is pinged.
 
void finished ()
 Signal emitted when the Jack server is finished.
 

Public Member Functions

 JackWorker (QObject *parent=nullptr)
 Constructs a JackWorker object.
 
bool isAudioEngineRunning ()
 Checks if the audio engine is running.
 

Detailed Description

The JackWorker class is responsible for managing the Jack audio server and audio client engine.

JackWorker is a QObject that handles interactions with the Jack audio server. It manages an instance of JackClientAudioEngine, handles signals and slots for managing the server and updating settings, and communicates server status updates through the jackEngineStatus signal.

Constructor & Destructor Documentation

◆ JackWorker()

JackWorker::JackWorker ( QObject *  parent = nullptr)
explicit

Constructs a JackWorker object.

Parameters
parentThe parent QObject.

Member Function Documentation

◆ isAudioEngineRunning()

bool JackWorker::isAudioEngineRunning ( )

Checks if the audio engine is running.

Returns
True if the audio engine is running, false otherwise.

◆ jackEngineStatus

void JackWorker::jackEngineStatus ( QString  _t1)
signal

Signal emitted when the Jack server's status changes.

Parameters
statusThe new status of the Jack server.

◆ pingCPULoad

void JackWorker::pingCPULoad ( )
slot

Ping for CPU Load.

Parameters
Pingthe AudioEngine for current CPU Load.

◆ setActiveFilterType

void JackWorker::setActiveFilterType ( FilterType  filterType)
slot

Sets the active filter type.

Parameters
filterTypeThe new active filter type.

◆ setAudioFile

void JackWorker::setAudioFile ( AudioFile< float >  file)
slot

Sets the audio file.

Parameters
fileThe new audio file.

◆ setAudioSource

void JackWorker::setAudioSource ( SourceType  type)
slot

Sets the audio source.

Parameters
typeThe type of the audio source.

◆ setFilterConfig

void JackWorker::setFilterConfig ( int  frequency,
int  gain 
)
slot

Sets the filter configuration.

Parameters
frequencyThe new filter frequency.
gainThe new filter gain.

◆ setIsPlayingModified

void JackWorker::setIsPlayingModified ( bool  playingModified)
slot

Sets whether the audio is playing modified.

Parameters
playingModifiedTrue if the audio should be played modified, false otherwise.

◆ setVolumeLevel

void JackWorker::setVolumeLevel ( int  level)
slot

Sets the volume level.

Parameters
levelThe new volume level.

◆ updateCPULoad

void JackWorker::updateCPULoad ( float  _t1)
signal

Signal emitted when the CPU load method is pinged.

Parameters
loadCurrent DSP CPU load in floating point.

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