Class spatialAudio.PlaybackMark
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class spatialAudio.PlaybackMark

java.lang.Object
   |
   +----spatialAudio.PlaybackMark

public class PlaybackMark
extends Object
PlaybackMark class stores the starting and ending playback position for a cached sound source. Playback marks specify a region of an audio file which should be used for playback. If a sound is looped, play will loop over this region.

The start position and end position identify offsets in a circular buffer. If the end position is less than the start position, the sound source will loop from the start position to the end of the data file, wrap to the beginning, and continue to the end position. By default, the beginTime and endTime values are zero, indicating that the entire file should be played.

Copyright (c) 1996 Intel Corporation

See Also:
CachedSoundSource

VARIABLE INDEX

 O beginTime
The starting position in seconds for sound source playback within the file.
 O endTime
The ending position in seconds for sound source playback within the file.

CONSTRUCTOR INDEX

 O PlaybackMark()
Creates a new instance of the PlaybackMark class with default parameters.
 O PlaybackMark(float, float)
Creates a new instance of the PlaybackMark class with the specified parameters.

METHOD INDEX

 O toString()
Returns a String representation of the PlaybackMark instance variables.

VARIABLES

 O beginTime
  public float beginTime
The starting position in seconds for sound source playback within the file. Zero indicates the starting position is the file’s beginning.
 O endTime
  public float endTime
The ending position in seconds for sound source playback within the file. Zero indicates the ending position of the file.

CONSTRUCTORS

 O PlaybackMark
  public PlaybackMark(float beginTime,
                      float endTime)
Creates a new instance of the PlaybackMark class with the specified parameters.
Parameters:
beginTime - The starting position in seconds for playback within the file. Zero indicates the starting position is the file’s beginning.
endTime - The ending position in seconds for playback within the file. Zero indicates the ending position of the file.
 O PlaybackMark
  public PlaybackMark()
Creates a new instance of the PlaybackMark class with default parameters. beginTime and endTime are set to zero, indicating that the starting position is the beginning of the audio file and that the ending position is the end of the file.

METHODS

 O toString
  public String toString()
Returns a String representation of the PlaybackMark instance variables.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index
Free Web Hosting