java.lang.Object
com.example.project.services.GameSoundPlayer
plays an audio clip as a sound effect for the game.
-
Constructor Summary
ConstructorsConstructorDescriptionGameSoundPlayer
(String filePath) creates a new instance of GameSoundPlayerGameSoundPlayer
(String filePath, double volumeOverride) creates a new instance of GameSoundPlayer -
Method Summary
-
Constructor Details
-
GameSoundPlayer
creates a new instance of GameSoundPlayer- Parameters:
filePath
- filpath to sound.
-
GameSoundPlayer
creates a new instance of GameSoundPlayer- Parameters:
filePath
- filpath to sound.volumeOverride
- volume to set the clip at
-
-
Method Details
-
play
public void play()play
-