Search for usage in LXR

Phonon::Experimental::AbstractAudioDataOutput Class Referenceabstract

#include <abstractaudiodataoutput.h>

Inherits Phonon::MediaNode.

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.

Matthias Kretz

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()

Phonon::Experimental::AbstractAudioDataOutput::~AbstractAudioDataOutput ( )

Definition at line 42 of file abstractaudiodataoutput.cpp.

Member Function Documentation

◆ allowedFormats()

QSet< AudioFormat > Phonon::Experimental::AbstractAudioDataOutput::allowedFormats ( ) const

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()

virtual void Phonon::Experimental::AbstractAudioDataOutput::packetReady ( const Packet & )
pure virtual

This function is called whenever an audio packet is ready for processing.

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:53:29 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.