|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
player.PlayerAudioStreamMonitor
MPEG-4 Player Audio Stream Monitor. Allows an audio stream to be monitored info about the audio stream retrieved. Audio stream sample data is read using the InputStream methods and the sample data bytes are organised as they would be in WAV file. The InputStream can be close()d to end the monitoring for the stream and no further audio samples will be captured.
Constructor Summary | |
PlayerAudioStreamMonitor()
|
Method Summary | |
abstract int |
getBitsPerSample()
Gets the number of bits per audio stream sample. |
abstract int |
getNumBytesDropped()
If the InputStream is not read fast enough the internal buffer can fill-up with audio samples and once full any ongoing audio samples will not be written in order to avoid blocking the audio playback. |
abstract int |
getNumChannels()
Gets the number of channels in the audio stream. |
abstract int |
getSampleRate()
Gets the audio stream sample rate, eg 44100, 22050 etc. |
abstract byte[] |
getWaveHeader()
A convenience method to return a WAV header that can be used in conjunction with the audio samples. |
abstract byte[] |
getWaveHeader(int count)
A convenience method to return a WAV header that can be used in conjunction with the audio samples. |
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface player.PlayerStreamMonitor |
getESId, getODId |
Constructor Detail |
public PlayerAudioStreamMonitor()
Method Detail |
public abstract int getSampleRate()
public abstract int getBitsPerSample()
public abstract int getNumChannels()
public abstract byte[] getWaveHeader()
public abstract byte[] getWaveHeader(int count)
count
- The number of bytes that should be indicated in the header
public abstract int getNumBytesDropped()
|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |