public class

SoundFactory

extends Object
java.lang.Object
   ↳ org.andengine.audio.sound.SoundFactory

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
SoundFactory()
Public Methods
static Sound createSoundFromAsset(SoundManager pSoundManager, Context pContext, String pAssetPath)
static Sound createSoundFromAssetFileDescriptor(SoundManager pSoundManager, AssetFileDescriptor pAssetFileDescriptor)
static Sound createSoundFromFile(SoundManager pSoundManager, File pFile)
static Sound createSoundFromFileDescriptor(SoundManager pSoundManager, FileDescriptor pFileDescriptor, long pOffset, long pLength)
static Sound createSoundFromPath(SoundManager pSoundManager, String pPath)
static Sound createSoundFromResource(SoundManager pSoundManager, Context pContext, int pSoundResID)
static void onCreate()
static void setAssetBasePath(String pAssetBasePath)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SoundFactory ()

Public Methods

public static Sound createSoundFromAsset (SoundManager pSoundManager, Context pContext, String pAssetPath)

Throws
IOException

public static Sound createSoundFromAssetFileDescriptor (SoundManager pSoundManager, AssetFileDescriptor pAssetFileDescriptor)

public static Sound createSoundFromFile (SoundManager pSoundManager, File pFile)

Throws
IOException

public static Sound createSoundFromFileDescriptor (SoundManager pSoundManager, FileDescriptor pFileDescriptor, long pOffset, long pLength)

Throws
IOException

public static Sound createSoundFromPath (SoundManager pSoundManager, String pPath)

Throws
IOException

public static Sound createSoundFromResource (SoundManager pSoundManager, Context pContext, int pSoundResID)

public static void onCreate ()

public static void setAssetBasePath (String pAssetBasePath)

Parameters
pAssetBasePath must end with '/' or have .length() == 0.