Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QAudioEncoderControl Class

The QAudioEncoderControl class provides access to the settings of a media service that performs audio encoding. More...

 #include <QAudioEncoderControl>

Inherits: QMediaControl.

Public Functions

virtual ~QAudioEncoderControl()
virtual QAudioEncoderSettings audioSettings() const = 0
virtual QString codecDescription(const QString & codec) const = 0
virtual QVariant encodingOption(const QString & codec, const QString & option) const = 0
virtual void setAudioSettings(const QAudioEncoderSettings & settings) = 0
virtual void setEncodingOption(const QString & codec, const QString & option, const QVariant & value) = 0
virtual QStringList supportedAudioCodecs() const = 0
virtual QStringList supportedEncodingOptions(const QString & codec) const = 0
virtual QList<int> supportedSampleRates(const QAudioEncoderSettings & settings, bool * continuous = 0) const = 0
  • 31 public functions inherited from QObject

Protected Functions

QAudioEncoderControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QAudioEncoderControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signal inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QAudioEncoderControl class provides access to the settings of a media service that performs audio encoding.

If a QMediaService supports encoding audio data it will implement QAudioEncoderControl. This control provides information about the limits of restricted audio encoder options and allows the selection of a set of audio encoder settings as specified in a QAudioEncoderSettings object.

The functionality provided by this control is exposed to application code through the QMediaRecorder class.

The interface name of QAudioEncoderControl is org.qt-project.qt.audioencodercontrol/5.0 as defined in QAudioEncoderControl_iid.

See also QMediaService::requestControl() and QMediaRecorder.

Member Function Documentation

QAudioEncoderControl::QAudioEncoderControl(QObject * parent = 0) [protected]

Create a new audio encode control object with the given parent.

QAudioEncoderControl::~QAudioEncoderControl() [virtual]

Destroys the audio encode control.

QAudioEncoderSettings QAudioEncoderControl::audioSettings() const [pure virtual]

Returns the audio encoder settings.

The returned value may be different tha passed to QAudioEncoderControl::setAudioSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.

See also setAudioSettings().

QString QAudioEncoderControl::codecDescription(const QString & codec) const [pure virtual]

Returns description of audio codec.

QVariant QAudioEncoderControl::encodingOption(const QString & codec, const QString & option) const [pure virtual]

Returns the value of audio encoding option for codec.

See also setEncodingOption().

void QAudioEncoderControl::setAudioSettings(const QAudioEncoderSettings & settings) [pure virtual]

Sets the selected audio settings.

See also audioSettings().

void QAudioEncoderControl::setEncodingOption(const QString & codec, const QString & option, const QVariant & value) [pure virtual]

Set the codec specific option to value.

See also encodingOption().

QStringList QAudioEncoderControl::supportedAudioCodecs() const [pure virtual]

Returns the list of supported audio codec names.

QStringList QAudioEncoderControl::supportedEncodingOptions(const QString & codec) const [pure virtual]

Returns the list of codec specific audio encoding options.

QList<int> QAudioEncoderControl::supportedSampleRates(const QAudioEncoderSettings & settings, bool * continuous = 0) const [pure virtual]

Returns the list of supported audio sample rates, if known.

If non null audio settings parameter is passed, the returned list is reduced to sample rates supported with partial settings applied.

It can be used for example to query the list of sample rates, supported by specific audio codec.

If the encoder supports arbitrary sample rates within the supported rates range, *continuous is set to true, otherwise *continuous is set to false.

Macro Documentation

QAudioEncoderControl_iid

org.qt-project.qt.audioencodercontrol/5.0

Defines the interface name of the QAudioEncoderControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web