#include <mythfrontend/audiogeneralsettings.h>
|
| | AudioTestThread (QObject *parent, QString main, QString passthrough, int channels, AudioOutputSettings &settings, bool hd) |
| |
| | ~AudioTestThread () override |
| |
| void | cancel () |
| |
| bool | isOutputOpen () |
| |
| void | setChannel (int channel) |
| |
| | MThread (const QString &objectName) |
| | Standard constructor. More...
|
| |
| | MThread (const QString &objectName, QRunnable *runnable) |
| | Use this constructor if you want the default run() method to run the QRunnable's run() method instead of entering the Qt event loop. More...
|
| |
| virtual | ~MThread () |
| |
| | MThread (const MThread &)=delete |
| |
| MThread & | operator= (const MThread &)=delete |
| |
| void | RunProlog (void) |
| | Sets up a thread, call this if you reimplement run(). More...
|
| |
| void | RunEpilog (void) |
| | Cleans up a thread's resources, call this if you reimplement run(). More...
|
| |
| QThread * | qthread (void) |
| | Returns the thread, this will always return the same pointer no matter how often you restart the thread. More...
|
| |
| void | setObjectName (const QString &name) |
| |
| QString | objectName (void) const |
| |
| void | setPriority (QThread::Priority priority) |
| |
| QThread::Priority | priority (void) const |
| |
| bool | isFinished (void) const |
| |
| bool | isRunning (void) const |
| |
| void | setStackSize (uint stackSize) |
| |
| uint | stackSize (void) const |
| |
| void | exit (int retcode=0) |
| | Use this to exit from the thread if you are using a Qt event loop. More...
|
| |
| void | start (QThread::Priority p=QThread::InheritPriority) |
| | Tell MThread to start running the thread in the near future. More...
|
| |
| void | terminate (void) |
| | Kill a thread unsafely. More...
|
| |
| void | quit (void) |
| | calls exit(0) More...
|
| |
| bool | wait (std::chrono::milliseconds time=std::chrono::milliseconds::max()) |
| | Wait for the MThread to exit, with a maximum timeout. More...
|
| |
|
| void | run () override |
| | Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. More...
|
| |
| virtual void | run (void) |
| | Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. More...
|
| |
| int | exec (void) |
| | Enters the qt event loop. call exit or quit to exit thread. More...
|
| |
Definition at line 146 of file audiogeneralsettings.h.
◆ AudioTestThread()
| AudioTestThread::AudioTestThread |
( |
QObject * |
parent, |
|
|
QString |
main, |
|
|
QString |
passthrough, |
|
|
int |
channels, |
|
|
AudioOutputSettings & |
settings, |
|
|
bool |
hd |
|
) |
| |
◆ ~AudioTestThread()
| AudioTestThread::~AudioTestThread |
( |
| ) |
|
|
override |
◆ cancel()
| void AudioTestThread::cancel |
( |
| ) |
|
◆ isOutputOpen()
| bool AudioTestThread::isOutputOpen |
( |
| ) |
|
|
inline |
◆ run()
| void AudioTestThread::run |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
- Note
- If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.
Reimplemented from MThread.
Definition at line 659 of file audiogeneralsettings.cpp.
◆ setChannel()
| void AudioTestThread::setChannel |
( |
int |
channel | ) |
|
◆ m_audioOutput
◆ m_channel
| int AudioTestThread::m_channel {-1} |
|
private |
◆ m_channels
| int AudioTestThread::m_channels |
|
private |
◆ m_device
| QString AudioTestThread::m_device |
|
private |
◆ m_format
◆ m_hd
| bool AudioTestThread::m_hd {false} |
|
private |
◆ m_interrupted
| bool AudioTestThread::m_interrupted {false} |
|
private |
◆ m_parent
| QObject* AudioTestThread::m_parent {nullptr} |
|
private |
◆ m_passthrough
| QString AudioTestThread::m_passthrough |
|
private |
◆ m_samplerate
| int AudioTestThread::m_samplerate {48000} |
|
private |
The documentation for this class was generated from the following files: