CopperSpice API  1.7.2
QAudio Namespace Reference

The QAudio namespace contains enums used by the audio classes. More...

Enums

enum  Error
 
enum  Mode
 
enum  Role
 
enum  State
 

Detailed Description

The QAudio namespace contains enums used by the audio classes.

Enumeration Type Documentation

ConstantValueDescription
QAudio::NoError 0No errors have occurred
QAudio::OpenError 1Error opening the audio device
QAudio::IOError 2Error occurred during read/write of audio device
QAudio::UnderrunError 3Audio data is not being fed to the audio device at a fast enough rate
QAudio::FatalError 4Non-recoverable error has occurred, the audio device is not usable at this time.
ConstantValueDescription
QAudio::AudioInput0Audio input device
QAudio::AudioOutput1Audio output device
Constant Value Description
QAudio::UnknownRole 0 Role is unknown or undefined
QAudio::MusicRole 1 Music
QAudio::VideoRole 2 Soundtrack from a movie or a video
QAudio:VoiceCommunicationRole 3 Voice communications, such as telephony
QAudio::AlarmRole 4 Alarm
QAudio::NotificationRole 5 Notification, such as an incoming e-mail or a chat request
QAudio::RingtoneRole 6 Ringtone
QAudio::AccessibilityRole 7 For accessibility, such as with a screen reader
QAudio::SonificationRole 8 Sonification, such as with user interface sounds
QAudio::GameRole 9 Game audio
ConstantValueDescription
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 1The audio device is in a suspended state, this state will only be entered after suspend() is called.
QAudio::StoppedState 2The audio device is closed, not processing any audio data
QAudio::IdleState 3The 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.