Class spatialAudio.BufferHolder
All Packages Class Hierarchy This Package Previous Next Index
Class spatialAudio.BufferHolder
java.lang.Object
|
+----spatialAudio.BufferHolder
- public class BufferHolder
- extends Object
The BufferHolder class stores a buffer of data and information about
that data. This class is used by the StreamingSoundSource interface
to provide a buffer of data.
Copyright (c) 1996 Intel Corporation
- See Also:
- StreamingSoundSource
-
data
- The buffer of data to be played by the streaming sound source.
-
eventArg
- The argument to the AWT Event that will be generated when the audio
rendering engine is finished with the buffer and the buffer is available
for reuse.
-
info
- May be used to store application-specific information.
-
target
- AWT Component which is the target of the event.
-
BufferHolder(byte[])
- Creates a new BufferHolder which contains and stores data in the byte array provided.
-
BufferHolder(byte[], Object, Object, Component)
- Creates a new BufferHolder containing the buffer supplied.
-
BufferHolder(int)
- Creates a new, empty BufferHolder which can hold the specified number of bytes.
-
finalize()
-
-
generateEvent()
-
-
toString()
- Returns a String representation of the BufferHolder instance variables.
info
public Object info
- May be used to store application-specific information.
data
public byte data[]
- The buffer of data to be played by the streaming sound source.
eventArg
public Object eventArg
- The argument to the AWT Event that will be generated when the audio
rendering engine is finished with the buffer and the buffer is available
for reuse. The id of the event will have the value SoundSource.BUFFER_EVENT.
target
public Component target
- AWT Component which is the target of the event.
BufferHolder
public BufferHolder(byte data[],
Object eventArg,
Object info,
Component target)
- Creates a new BufferHolder containing the buffer supplied.
- Parameters:
- data - The buffer to be submitted or received.
- eventArg - Argument to the event which is signalled when the sound source is finished with the buffer.
- info - May be used to store application-specific information.
- target - The target of the AWT Event.
BufferHolder
public BufferHolder(int numBytes)
- Creates a new, empty BufferHolder which can hold the specified number of bytes.
BufferHolder
public BufferHolder(byte data[])
- Creates a new BufferHolder which contains and stores data in the byte array provided.
generateEvent
public void generateEvent()
finalize
protected synchronized void finalize()
- Overrides:
- finalize in class Object
toString
public String toString()
- Returns a String representation of the BufferHolder instance variables.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index