Package | flash.media |
Class | public final class AudioPlaybackMode |
Inheritance | AudioPlaybackMode Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3.0 |
audioPlaybackMode
property of the
SoundMixer class.
Each of these constants represents a set of behavior for audio on mobile tailored to a particular use.
Related API Elements
Constant | Defined By | ||
---|---|---|---|
MEDIA : String = "media" [static]
A mode for playing media sounds. | AudioPlaybackMode | ||
VOICE : String = "voice" [static]
A mode for playing voice audio. | AudioPlaybackMode |
MEDIA | Constant |
public static const MEDIA:String = "media"
Runtime Versions: | AIR 3.0 |
A mode for playing media sounds. When using this mode on mobile sound is routed through the speakerphone. If headphones are plugged in they override the speakerphone. The operating system will use defaults for media audio when deciding behavior and priority for audio. This setting has no special effect on the desktop or tv. This is the default.
VOICE | Constant |
public static const VOICE:String = "voice"
Runtime Versions: | AIR 3.0 |
A mode for playing voice audio.
When using this mode audio is routed through the phone earpiece by default. If headphones are plugged in
they override the earpiece. If the SoundMixer.useSpeakerphoneForVoice
property is set, sound
goes to the speakerphone, overriding the earpiece/headphones. The operating system will use defaults for
voice audio when deciding behavior and priority for audio.
This setting has no special effect on the desktop or tv.
Mon Nov 28 2011, 06:48 AM -08:00