Пространство имён PhononПространство имён Phonon содержит классы и функции для мультимедийных приложений. Далее... #include <Phonon> Это пространство имён было добавлено в Qt 4.4. Пространства имен
Классы
Типы
Функции
Подробное описаниеПространство имён Phonon содержит классы и функции для мультимедийных приложений. This namespace contains classes to access multimedia functions for audio and video playback. Those classes are not dependent on any specific framework, but rather use exchangeable backends to do the work. See the Phonon Module page for general information about the framework and the Phonon Overview for an introductory tour of its features. Пространства именnamespace Phonon::BackendCapabilitiesThe BackendCapabilities namespace contains functions to describe the capabilities of the multimedia backend. Это пространство имён было добавлено в Qt 4.4. Классыclass AudioDataOutputThe AudioDataOutput class provides access to audio data. Далее... class AudioDataOutputInterfaceclass AudioDataOutputPrivateclass AudioOutputКласс AudioOutput используется для отправки данных на устройства аудиовыхода. Далее... class EffectThe Effect class is used to transform audio streams. Далее... class EffectParameterThe EffectParameter class describes one parameter of an effect. Далее... class EffectWidgetThe EffectWidget class provides a widget to control the parameters of an Effect. Далее... class GlobalConfigPrivateclass MediaControllerThe MediaController class controls optional features of a media file/device. Далее... class MediaNodeThe MediaNode class is the base class for all nodes in a media graph. Далее... class MediaObjectThe MediaObject class provides an interface for media playback. Далее... class MediaSourceThe MediaSource class provides multimedia data for media objects. Далее... class ObjectDescriptionThe ObjectDescription class provides information about Phonon objects. Далее... class PathThe Path class describes connections between media nodes. Далее... class SeekSliderThe SeekSlider class provides a slider for seeking to positions in media streams. Далее... class SwiftSliderclass VideoPlayerThe VideoPlayer widget is used to perform playback of video. Далее... class VideoWidgetThe VideoWidget class provides a widget that is used to display video. Далее... class VideoWidgetInterface44class VolumeSliderThe VolumeSlider widget provides a slider that is used to control the volume of an audio output device. Далее... Документация типовtypedef Phonon::AudioOutputDeviceThis typedef of ObjectDescription describes an audio output device, such as soundcards (with different drivers), sound servers, or other virtual outputs like playback on a different computer on the network. A list of available devices is given by the backend with Backendcapabilities::availableAudioOutputDevices() QList<Phonon::AudioOutputDevice> audioOutputDevices = Phonon::BackendCapabilities::availableAudioOutputDevices(); typedef Phonon::AudioOutputDeviceModelprovides an item view model containing available audio output devices. enum Phonon::CategorySets the category your program should be listed in in the mixer.
A Jukebox will set this to Music, a VoIP program to Communication, a DVD player to video, and so on. Note: These categories can also become useful for an application that controls the volumes automatically, like turning down the music when a call comes in, or turning down the notifications when the media player knows it's playing classical music. enum Phonon::DiscTypeEnum to identify the media discs supported by MediaObject.
Смотрите также MediaSource и MediaObject. typedef Phonon::EffectDescriptionEffectDescription gives a description of an audio effect. It is a typedef of the ObjectDescription class. Please see its class description for details. EffectDescription is used to create audio Effects, which can be inserted into a media graph, altering an audio stream. Смотрите также Phonon::ObjectDescription, Пример "Capabilities" и "Media Player". typedef Phonon::EffectDescriptionModelprovides a item view model containing available audio effects. enum Phonon::ErrorTypeThis enum describes the severity when an error has occurred during playback. After a media object has entered the ErrorState, one can query the type of error from MediaObject::errorType(). Note that you should query the error when receiving the MediaObject::stateChanged() signal, because the error type will be lost if the media object leaves the error state.
Смотрите также MediaObject::errorType(). enum Phonon::MetaDataProvided as keys for Phonon::MediaObject::metaData(). The enum values matches strings defined in the Ogg Vorbis specification
enum Phonon::ObjectDescriptionTypeThis enum defines the type of information that is contained in a ObjectDescription object.
enum Phonon::StateThe state enum describes the different states a media object can take. Several functions of MediaObject are asynchronous, so even if a you have requested a state change through a function call, e.g., through play(), you cannot be sure that the change has taken place before you receive the stateChanged() signal. A media object can at any time change into any state, regardless of the state it previously had.
Данное перечисление было введено или модифицировано в Qt 4.4. Смотрите такжеMediaObject. typedef Phonon::VideoWidgetInterfaceLatestThis typedef was introduced in Qt 4.7. Описание функцийQString Phonon::categoryToString ( Category c )Returns a (translated) string to show to the user identifying the given Category (c). Path Phonon::createPath ( MediaNode * source, MediaNode * sink )Creates a new Path connecting the two MediaNodes source and sink. The implementation will automatically select the right format and media type. E.g. connecting a MediaObject and AudioOutput will create a Path object connecting the audio. This might be represented as PCM or perhaps even AC3 depending on the AudioOutput object. source The MediaNode to connect an output from sink The MediaNode to connect to. MediaObject * Phonon::createPlayer ( Phonon::Category category, const MediaSource & source = MediaSource() )Convenience function to create a MediaObject and AudioOutput connected by a path. The MediaObject return will have source set as its current source and the specified category. const char * Phonon::phononVersion ()Возвращает версию Phonon. Эта функция была введена в Qt 4.5. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |