com.nokia.mid.sound
Class Sound

java.lang.Object
  extended by com.nokia.mid.sound.Sound

public class Sound
extends java.lang.Object


Field Summary
static int FORMAT_TONE
           
static int FORMAT_WAV
           
static int SOUND_PLAYING
           
static int SOUND_STOPPED
           
static int SOUND_UNINITIALIZED
           
 
Constructor Summary
Sound(byte[] data, int type)
           
Sound(int freq, long duration)
           
 
Method Summary
static int getConcurrentSoundCount(int type)
           
 int getGain()
           
 int getState()
           
static int[] getSupportedFormats()
           
 void init(byte[] data, int type)
           
 void init(int freq, long duration)
           
 void play(int loop)
           
 void release()
           
 void resume()
           
 void setGain(int gain)
           
 void setSoundListener(SoundListener listener)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOUND_PLAYING

public static final int SOUND_PLAYING
See Also:
Constant Field Values

SOUND_STOPPED

public static final int SOUND_STOPPED
See Also:
Constant Field Values

SOUND_UNINITIALIZED

public static final int SOUND_UNINITIALIZED
See Also:
Constant Field Values

FORMAT_TONE

public static final int FORMAT_TONE
See Also:
Constant Field Values

FORMAT_WAV

public static final int FORMAT_WAV
See Also:
Constant Field Values
Constructor Detail

Sound

public Sound(byte[] data,
             int type)

Sound

public Sound(int freq,
             long duration)
Method Detail

getConcurrentSoundCount

public static int getConcurrentSoundCount(int type)

getGain

public int getGain()

setGain

public void setGain(int gain)

getState

public int getState()

getSupportedFormats

public static int[] getSupportedFormats()

init

public void init(byte[] data,
                 int type)

init

public void init(int freq,
                 long duration)

play

public void play(int loop)

stop

public void stop()

release

public void release()

resume

public void resume()

setSoundListener

public void setSoundListener(SoundListener listener)


Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.