Phonon::Experimental::AbstractAudioDataOutput
#include <abstractaudiodataoutput.h>
Public Member Functions | |
AbstractAudioDataOutput () | |
virtual QSet< AudioFormat > | allowedFormats () const |
void | endOfMedia () |
bool | isRunning () const |
virtual void | packetReady (const Packet &)=0 |
void | setAllowedFormats (const QSet< AudioFormat > &) |
void | setRunning (bool running) |
void | start () |
void | stop () |
Protected Member Functions | |
AbstractAudioDataOutput (AbstractAudioDataOutputPrivate &dd) | |
Detailed Description
This class gives you the audio data.
This class implements a special AbstractAudioOutput that gives your application the audio data. This class is usable for realtime performance.
Definition at line 50 of file abstractaudiodataoutput.h.
Constructor & Destructor Documentation
◆ AbstractAudioDataOutput()
Phonon::Experimental::AbstractAudioDataOutput::AbstractAudioDataOutput | ( | ) |
Constructs an AbstractAudioDataOutput.
Definition at line 34 of file abstractaudiodataoutput.cpp.
◆ ~AbstractAudioDataOutput()
|
override |
Definition at line 42 of file abstractaudiodataoutput.cpp.
Member Function Documentation
◆ allowedFormats()
|
virtual |
Lists the formats this output is allowed to pass via frameReady.
Definition at line 47 of file abstractaudiodataoutput.cpp.
◆ endOfMedia()
void Phonon::Experimental::AbstractAudioDataOutput::endOfMedia | ( | ) |
This function is called after the last packetReady of a media was called.
◆ isRunning()
bool Phonon::Experimental::AbstractAudioDataOutput::isRunning | ( | ) | const |
Definition at line 59 of file abstractaudiodataoutput.cpp.
◆ packetReady()
|
pure virtual |
This function is called whenever an audio packet is ready for processing.
- Warning
- packetReady can get called from any thread (other than the main thread or the thread affinity of this QObject).
◆ setAllowedFormats()
void Phonon::Experimental::AbstractAudioDataOutput::setAllowedFormats | ( | const QSet< AudioFormat > & | allowedFormats | ) |
Defaults to AudioFormat().
I.e. 16 bit, stereo, 48000 kHz PCM data.
Definition at line 53 of file abstractaudiodataoutput.cpp.
◆ setRunning()
void Phonon::Experimental::AbstractAudioDataOutput::setRunning | ( | bool | running | ) |
Definition at line 65 of file abstractaudiodataoutput.cpp.
◆ start()
void Phonon::Experimental::AbstractAudioDataOutput::start | ( | ) |
Definition at line 78 of file abstractaudiodataoutput.cpp.
◆ stop()
void Phonon::Experimental::AbstractAudioDataOutput::stop | ( | ) |
Definition at line 83 of file abstractaudiodataoutput.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.