public abstract class SoundEngine extends Object implements AutoCloseable, SoundBuilder
| Modifier and Type | Field and Description |
|---|---|
protected be.yildiz.common.gameobject.Movable |
listener
User listening to the audio, used for audio 3D positioning.
|
| Constructor and Description |
|---|
SoundEngine() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addResourcePath(String path)
Add a path to load resources.
|
void |
close() |
protected abstract void |
closeImpl() |
abstract Playlist |
createPlaylist(String name)
Build a play list of music to be played.
|
void |
setListener(be.yildiz.common.gameobject.Movable user)
Set a user to be considered as the audio listener.
|
void |
testAudio()
Test the audio positioning by playing sound with different positions.
|
abstract void |
update()
Update the current audio state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSoundprotected be.yildiz.common.gameobject.Movable listener
public final void setListener(be.yildiz.common.gameobject.Movable user)
user - User listener.public abstract void update()
public final void testAudio()
public abstract Playlist createPlaylist(String name)
name - Play list name.public abstract void addResourcePath(String path)
path - Path to use.public final void close()
close in interface AutoCloseableprotected abstract void closeImpl()
Copyright © 2014–2017. All rights reserved.