FileDocCategorySizeDatePackage
BasicAudioOut.javaAPI DocphoneME MR2 API (J2ME)2754Wed May 02 16:47:10 BST 2007com.sun.mmedia

BasicAudioOut

public interface BasicAudioOut
Parent interface that should be implemented by all DataSinks. It does not define any methods but only constants for the known DataSink types

Fields Summary
public final int
DATASINK_DEFAULT
Default DataSink type
public final int
DATASINK_SOUND3D
Sound 3D DataSink type
public final int
DATASINK_EFFECTS
Media Processor DataSink
Constructors Summary
Methods Summary
public voidclose()

public intdrain()

public voiddrainLoop()

public voidflush()
Flashes any data buffered in the data sink buffers

public longgetMediaTime()

public longgetSamplesPlayed()

public intgetVolume()

public booleanopen(int sampleRate, int bits, int channels)
Open connection to the DataSink with the given parameters.

param
sampleRate sample rate of the outpus stream
param
bits number bits per channel
param
channels number of channels in the stream, e.g. 1 for mono, 2 for stereo, etc.

public booleanopen(int sampleRate, int bits, int channels, boolean isSigned, boolean isBigEndian)

public voidpause()
Pauses the data processing by the data sink

public voidresume()
Resumes the data processing by the data sink

public voidsetMediaTime(long mediaTime)

public voidsetRate(int rate)

public voidsetVolume(int level)

public intwrite(byte[] data, int offset, int len)
Writes data to the data sink