Adobe® AIR® API Reference for HTML Developers
Home  |  Hide Classes List |  Index  |  Appendixes

Language Reference only       
AudioPlaybackMode 
window.runtime propertywindow.runtime.flash.media.AudioPlaybackMode
InheritanceAudioPlaybackMode Inheritance Object

Runtime Versions:  3.0

The AudioPlaybackMode class defines constants for the audioPlaybackMode property of the SoundMixer class.

Each of these constants represents a set of behavior for audio on mobile tailored to a particular use.

See also



Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
 Inherited
hasOwnProperty(name:String):Boolean
Indicates whether an object has a specified property defined.
Object
 Inherited
isPrototypeOf(theClass:Object):Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
propertyIsEnumerable(name:String):Boolean
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
toLocaleString():String
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
toString():String
Returns the string representation of the specified object.
Object
 Inherited
valueOf():Object
Returns the primitive value of the specified object.
Object
Constants
 ConstantDefined By
  MEDIA : String = "media"
[static] A mode for playing media sounds.
AudioPlaybackMode
  VOICE : String = "voice"
[static] A mode for playing voice audio.
AudioPlaybackMode
Constant Detail

MEDIA

Constant
public static const MEDIA:String = "media"

Runtime Versions:  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:  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.