A subclass of QtlDialog which implements the UI for the "Audio Test" action. More...
Public Slots | |
| void | startStop () |
| Invoked by the Start/Stop button. More... | |
| void | updateVolume (int value) |
| Invoked by the volume slider when it is changed. More... | |
Public Member Functions | |
| QtlMovieAudioTestDialog (const QtlMovieInputFile *inputFile, int selectedStream, QtlMovieSettings *settings, QtlLogger *log, QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~QtlMovieAudioTestDialog () |
| Destructor. More... | |
Public Member Functions inherited from QtlDialog | |
| QtlDialog (QWidget *parent=0, Qt::WindowFlags flags=0, QtlGeometrySettingsInterface *geometrySettings=0) | |
| Constructor. More... | |
| QtlGeometrySettingsInterface * | geometrySettings () const |
| Get the object where to save and restore the dialog geometry. More... | |
| void | setGeometrySettings (QtlGeometrySettingsInterface *geometrySettings, bool restoreImmediately=false) |
| Set the object where to save and restore the dialog geometry. More... | |
Private Types | |
| enum | AudioTestState { Started, Stopping, Stopped } |
| Define the three states of the audio play. More... | |
Private Slots | |
| void | audioCompletionCheck () |
| Periodically invoked after the process completion to check if the audio processing is complete. More... | |
| void | audioStateChanged (QAudio::State audioState) |
| Invoked by the audio output engine when it changes its state. More... | |
| void | ffmpegDataReady () |
| Invoked when audio data is available from ffmpeg output. More... | |
| void | processCompleted () |
| Invoked when the FFmpeg process terminates. More... | |
| void | updatePlaySlider () |
| Periodically invoked by the audio output engine to update the play slider. More... | |
Private Member Functions | |
| QtlMovieAudioTestDialog () Q_DECL_EQ_DELETE | |
| void | cleanup () |
| Perform termination operations when the process and the audio output engine are completed. More... | |
| void | start () |
| Start the audio play. More... | |
| void | stop () |
| Stop the audio play. More... | |
Private Attributes | |
| QAudioOutput * | _audio |
| Audio output device. More... | |
| QAudioFormat | _audioFormat |
| Audio format used in the test. More... | |
| QTimer | _endTimer |
| A timer used after FFmpeg process completion. More... | |
| const QtlMovieInputFile * | _file |
| Input file containing audio streams to test. More... | |
| QtlLogger * | _log |
| Message logger. More... | |
| QtlMovieFFmpegProcess * | _process |
| FFmpeg process. More... | |
| qint64 | _processedUSecs |
| Processed audio time at last timer. More... | |
| QtlMovieSettings * | _settings |
| Application settings. More... | |
| int | _startSecond |
| Starting time of current audio play. More... | |
| AudioTestState | _state |
| The state of the audio play. More... | |
| Ui::QtlMovieAudioTestDialog | _ui |
| UI from Qt Designer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QtlDialog | |
| virtual bool | event (QEvent *event) Q_DECL_OVERRIDE |
| Process an event. More... | |
A subclass of QtlDialog which implements the UI for the "Audio Test" action.
The design of the UI is done using Qt Designer.
|
private |
| QtlMovieAudioTestDialog::QtlMovieAudioTestDialog | ( | const QtlMovieInputFile * | inputFile, |
| int | selectedStream, | ||
| QtlMovieSettings * | settings, | ||
| QtlLogger * | log, | ||
| QWidget * | parent = 0 |
||
| ) |
Constructor.
| [in] | inputFile | Input file containing audio streams to test. |
| [in] | selectedStream | Stream index of initially selected stream. |
| [in] | settings | Application settings. |
| [in] | log | Message logger. |
| [in] | parent | Optional parent object. |
|
virtual |
Destructor.
|
private |
|
slot |
Invoked by the Start/Stop button.
|
slot |
Invoked by the volume slider when it is changed.
|
privateslot |
Periodically invoked by the audio output engine to update the play slider.
|
privateslot |
Invoked by the audio output engine when it changes its state.
| [in] | audioState | New state of the audio output engine. |
|
privateslot |
Invoked when audio data is available from ffmpeg output.
|
privateslot |
Invoked when the FFmpeg process terminates.
|
privateslot |
Periodically invoked after the process completion to check if the audio processing is complete.
|
private |
Start the audio play.
|
private |
Stop the audio play.
|
private |
Perform termination operations when the process and the audio output engine are completed.
|
private |
UI from Qt Designer.
|
private |
Input file containing audio streams to test.
|
private |
Application settings.
|
private |
Message logger.
|
private |
FFmpeg process.
|
private |
Audio format used in the test.
|
private |
Audio output device.
|
private |
A timer used after FFmpeg process completion.
|
private |
The state of the audio play.
|
private |
Starting time of current audio play.
|
private |
Processed audio time at last timer.