Interface spatialAudio.StreamingListener
All Packages Class Hierarchy This Package Previous Next Index
Interface spatialAudio.StreamingListener
- public interface StreamingListener
- extends Object
- extends Listener
The StreamingListener interface provides methods for handling buffers.
The output from a streaming listener can be used as input to another
audio sink for further processing or storage.
Copyright (c) 1996 Intel Corporation
- See Also:
- Listener
-
getBufferSize()
- Returns the size, in bytes, of the buffers the audio renderer will return
to the application through the StreamingListener interface.
-
requestBuffer(byte[])
- Requests the synchronous generation of a buffer of audio data.
-
requestBuffer(byte[], byte[])
- Requests the synchronous generation of a buffer of audio data.
requestBuffer
public abstract boolean requestBuffer(byte buffer[])
- Requests the synchronous generation of a buffer of audio data.
- Parameters:
- buffer - The buffer to be filled
- Returns:
- true if the call succeeded, or false if it failed.
requestBuffer
public abstract boolean requestBuffer(byte buffer1[],
byte buffer2[])
- Requests the synchronous generation of a buffer of audio data.
Use this method when using circular buffers.
- Parameters:
- buffer1 - The first buffer to be filled
- buffer2 - The second buffer to be filled
- Returns:
- true if the call succeeded, or false if it failed.
getBufferSize
public abstract int getBufferSize()
- Returns the size, in bytes, of the buffers the audio renderer will return
to the application through the StreamingListener interface.
All Packages Class Hierarchy This Package Previous Next Index