fi.hut.tml.xsmiles.mlfc.aaml.nai
Interface NativeAudio


public interface NativeAudio

OS independent interface to implement native 3d-audio.


Method Summary
 boolean init()
          Initialize audio lib.
 boolean play(int id)
          Play audio.
 int prefetch(java.lang.String URL)
          Prefetch audio, create buffers etc.
 boolean stop(int id)
          Stop audio.
 void terminate()
          Terminate audio lib.
 

Method Detail

init

public boolean init()
Initialize audio lib.


prefetch

public int prefetch(java.lang.String URL)
Prefetch audio, create buffers etc.

Returns:
Sound id - this id is used to play the sound.

play

public boolean play(int id)
Play audio.

Parameters:
id - audio id, returned by prefetch().

stop

public boolean stop(int id)
Stop audio.

Parameters:
id - audio id, returned by prefetch().

terminate

public void terminate()
Terminate audio lib.



X-Smiles 1.2