| Constructor and Description |
|---|
Stream(SoundManager soundmgr)
Creates a new stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases the resources held by this stream and removes it from the manager.
|
void |
fadeIn(float interval)
Fades this stream in over the specified interval.
|
void |
fadeOut(float interval,
boolean dispose)
Fades this stream out over the specified interval.
|
Source |
getSource()
Returns a reference to the stream source.
|
boolean |
isPlaying()
Determines whether this stream is currently playing.
|
void |
pause()
Pauses this stream.
|
void |
play()
Starts playing this stream.
|
void |
setGain(float gain)
Sets the base gain of the stream.
|
void |
stop()
Stops this stream.
|
public Stream(SoundManager soundmgr)
dispose() when finished with the stream.soundmgr - a reference to the sound manager that will update the streampublic void setGain(float gain)
public Source getSource()
public boolean isPlaying()
public void play()
public void pause()
public void stop()
public void fadeIn(float interval)
public void fadeOut(float interval,
boolean dispose)
dispose - if true, dispose of the stream when done fading outpublic void dispose()
Copyright © 2015. All rights reserved.