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

METHOD INDEX

 O getBufferSize()
Returns the size, in bytes, of the buffers the audio renderer will return to the application through the StreamingListener interface.
 O requestBuffer(byte[])
Requests the synchronous generation of a buffer of audio data.
 O requestBuffer(byte[], byte[])
Requests the synchronous generation of a buffer of audio data.

METHODS

 O 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.
 O 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.
 O 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
Free Web Hosting