public class SoundFactory
extends java.lang.Object
| Constructor and Description |
|---|
SoundFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Sound |
createSoundFromAsset(SoundManager pSoundManager,
android.content.Context pContext,
java.lang.String pAssetPath) |
static Sound |
createSoundFromAssetFileDescriptor(SoundManager pSoundManager,
android.content.res.AssetFileDescriptor pAssetFileDescriptor) |
static Sound |
createSoundFromFile(SoundManager pSoundManager,
java.io.File pFile) |
static Sound |
createSoundFromFileDescriptor(SoundManager pSoundManager,
java.io.FileDescriptor pFileDescriptor,
long pOffset,
long pLength) |
static Sound |
createSoundFromPath(SoundManager pSoundManager,
java.lang.String pPath) |
static Sound |
createSoundFromResource(SoundManager pSoundManager,
android.content.Context pContext,
int pSoundResID) |
static java.lang.String |
getAssetBasePath() |
static void |
onCreate() |
static void |
setAssetBasePath(java.lang.String pAssetBasePath) |
public static void setAssetBasePath(java.lang.String pAssetBasePath)
pAssetBasePath - must end with '/' or have .length() == 0.public static java.lang.String getAssetBasePath()
public static void onCreate()
public static Sound createSoundFromPath(SoundManager pSoundManager, java.lang.String pPath)
public static Sound createSoundFromAsset(SoundManager pSoundManager, android.content.Context pContext, java.lang.String pAssetPath) throws java.io.IOException
java.io.IOExceptionpublic static Sound createSoundFromResource(SoundManager pSoundManager, android.content.Context pContext, int pSoundResID)
public static Sound createSoundFromFile(SoundManager pSoundManager, java.io.File pFile)
public static Sound createSoundFromAssetFileDescriptor(SoundManager pSoundManager, android.content.res.AssetFileDescriptor pAssetFileDescriptor)
public static Sound createSoundFromFileDescriptor(SoundManager pSoundManager, java.io.FileDescriptor pFileDescriptor, long pOffset, long pLength)