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

VARIABLE INDEX

 O data
The buffer of data to be played by the streaming sound source.
 O 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.
 O info
May be used to store application-specific information.
 O target
AWT Component which is the target of the event.

CONSTRUCTOR INDEX

 O BufferHolder(byte[])
Creates a new BufferHolder which contains and stores data in the byte array provided.
 O BufferHolder(byte[], Object, Object, Component)
Creates a new BufferHolder containing the buffer supplied.
 O BufferHolder(int)
Creates a new, empty BufferHolder which can hold the specified number of bytes.

METHOD INDEX

 O finalize()
 O generateEvent()
 O toString()
Returns a String representation of the BufferHolder instance variables.

VARIABLES

 O info
  public Object info
May be used to store application-specific information.
 O data
  public byte data[]
The buffer of data to be played by the streaming sound source.
 O 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.
 O target
  public Component target
AWT Component which is the target of the event.

CONSTRUCTORS

 O 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.
 O BufferHolder
  public BufferHolder(int numBytes)
Creates a new, empty BufferHolder which can hold the specified number of bytes.
 O BufferHolder
  public BufferHolder(byte data[])
Creates a new BufferHolder which contains and stores data in the byte array provided.

METHODS

 O generateEvent
  public void generateEvent()
 O finalize
  protected synchronized void finalize()
Overrides:
finalize in class Object
 O 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
Free Web Hosting