netsurfers.gicp.net.common
类 AudioClip

java.lang.Object
  继承者 netsurfers.gicp.net.common.AudioClip

public class AudioClip
extends Object

AudioClip will control the music in the game


构造方法摘要
AudioClip(Context ctx, int resID)
          Constructor function of audio clip
 
方法摘要
 void loop()
          Start and loop this media player
 void play()
          Start to play music
 void release()
          Release the resource of this media player
 void stop()
          Stop this media player
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AudioClip

public AudioClip(Context ctx,
                 int resID)
Constructor function of audio clip

参数:
ctx - This parameter use to create the media palyer
resID - The id of the resource
另请参见:
MediaPlayer#create(Context, int)
方法详细信息

play

public void play()
Start to play music


stop

public void stop()
Stop this media player


loop

public void loop()
Start and loop this media player


release

public void release()
Release the resource of this media player