FileDocCategorySizeDatePackage
SoundPoolTest.javaAPI DocAndroid 5.1 API14941Thu Mar 12 22:22:30 GMT 2015com.android.soundpooltest

SoundPoolTest

public class SoundPoolTest extends android.app.Activity

Fields Summary
private static final String
LOG_TAG
private static final boolean
DEBUG
private static final boolean
VERBOSE
private TestThread
mThread
private static final int[]
mTestFiles
private static final float
SEMITONE
private static final float
DEFAULT_VOLUME
private static final float
MAX_VOLUME
private static final float
MIN_VOLUME
private static final int
LOW_PRIORITY
private static final int
NORMAL_PRIORITY
private static final int
HIGH_PRIORITY
private static final int
DEFAULT_LOOP
private static final int
DEFAULT_SRC_QUALITY
private static final double
PI_OVER_2
Constructors Summary
public SoundPoolTest()


      
Methods Summary
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        setVolumeControlStream(AudioManager.STREAM_MUSIC);
    
protected voidonPause()

        Log.v(LOG_TAG, "onPause");
        super.onPause();
        mThread.quit();
        mThread = null;
    
protected voidonResume()

        Log.v(LOG_TAG, "onResume");
        super.onResume();
        startTests();
    
private voidstartTests()

        mThread = new TestThread();
        mThread.start();