danger.audio
Interface Route


public interface Route

All audio objects have a route setting. This controls what happens to audio when the headset is plugged in or not.


Field Summary
static int BOTH
          both speakers
static int DEFAULT
          The default is Route.FOLLOW
static int DONT_FOLLOW
          use external speaker when headset plugged in, otherwise headset speaker
static int EXTERNAL
          external speaker always
static int FOLLOW
          use headset speaker when plugged in, otherwise external speaker
static int HEADSET
          headset speaker always
 

Field Detail

BOTH

public static final int BOTH
both speakers

HEADSET

public static final int HEADSET
headset speaker always

EXTERNAL

public static final int EXTERNAL
external speaker always

FOLLOW

public static final int FOLLOW
use headset speaker when plugged in, otherwise external speaker

DONT_FOLLOW

public static final int DONT_FOLLOW
use external speaker when headset plugged in, otherwise headset speaker

DEFAULT

public static final int DEFAULT
The default is Route.FOLLOW


Danger Confidential. Copyright © 2000-2003, Danger Inc.