Package org.collebol.audio
Class CameraSoundPlayer
java.lang.Object
org.collebol.audio.CameraSoundPlayer
- All Implemented Interfaces:
AudioPlayer
The CameraSoundPlayer class is responsible for playing sounds relative to the camera's position.
Usage:
CameraSoundPlayer soundPlayer = new CameraSoundPlayer("default", engine);
soundPlayer.playSound(soundId, gameLocation);
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CameraSoundPlayer
CameraSoundPlayer constructor.- Parameters:
name- the name of the sound player.e- engine instance.
-
-
Method Details
-
getEngine
-
playSound
Plays a sound at the specified game location relative to the camera position- Parameters:
id- the id of the sound to be played.location- the game location where the sound should be played.
-
getName
-