Phonon
experimental/audiodataoutput.h
161 void dataReady(const QMap<Phonon::Experimental::AudioDataOutput::Channel, QVector<qint16> > &data);
171 void dataReady(const QMap<Phonon::Experimental::AudioDataOutput::Channel, QVector<float> > &data);
This class gives you the audio data (for visualizations).
Definition experimental/audiodataoutput.h:60
void setFormat(Format format)
Requests the dataformat you'd like to receive.
int dataSize() const
Returns the currently used number of samples passed through the signal.
void setDataSize(int size)
Sets the number of samples to be passed in one signal emission.
Format
Used for telling the object whether you want 16 bit Integers or 32 bit floats.
Definition experimental/audiodataoutput.h:88
@ FloatFormat
Requests 32 bit floating point: signed, zero centered, and normalized to the unit value (-1....
Definition experimental/audiodataoutput.h:101
void endOfMedia(int remainingSamples)
This signal is emitted before the last dataReady signal of a media is emitted.
void dataReady(const QMap< Phonon::Experimental::AudioDataOutput::Channel, QVector< qint16 > > &data)
Emitted whenever another dataSize number of samples are ready and format is set to IntegerFormat.
void dataReady(const QMap< Phonon::Experimental::AudioDataOutput::Channel, QVector< float > > &data)
Emitted whenever another dataSize number of samples are ready and format is set to FloatFormat.
int sampleRate() const
Returns the sample rate in Hz.
Format format() const
Returns the currently used format.
Q_ENUMS(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.