QAudio 名称空间
The
QAudio
名称空间包含音频类使用的枚举。
更多...
|
头:
|
#include <QAudio>
|
|
Since:
|
Qt 4.6
|
类型
|
enum
|
Error
{ NoError, OpenError, IOError, UnderrunError, FatalError }
|
|
enum
|
Mode
{ AudioOutput, AudioInput }
|
|
enum
|
State
{ ActiveState, SuspendedState, StoppedState, IdleState }
|
详细描述
The
QAudio
名称空间包含音频类使用的枚举。
类型文档编制
enum QAudio::
Error
|
常量
|
值
|
描述
|
QAudio::NoError
|
0
|
没有出现错误
|
QAudio::OpenError
|
1
|
An error opening the audio device
|
QAudio::IOError
|
2
|
An error occurred during read/write of audio device
|
QAudio::UnderrunError
|
3
|
Audio data is not being fed to the audio device at a fast enough rate
|
QAudio::FatalError
|
4
|
A non-recoverable error has occurred, the audio device is not usable at this time.
|
enum QAudio::
Mode
|
常量
|
值
|
描述
|
QAudio::AudioOutput
|
1
|
音频输出设备
|
QAudio::AudioInput
|
0
|
音频输入设备
|
enum QAudio::
State
|
常量
|
值
|
描述
|
QAudio::ActiveState
|
0
|
Audio data is being processed, this state is set after start() is called and while audio data is available to be processed.
|
QAudio::SuspendedState
|
1
|
The audio device is in a suspended state, this state will only be entered after suspend() is called.
|
QAudio::StoppedState
|
2
|
The audio device is closed, not processing any audio data
|
QAudio::IdleState
|
3
|
The
QIODevice
passed in has no data and audio system's buffer is empty, this state is set after start() is called and while no audio data is available to be processed.
|