Package ActiverseEngine
Class ActiverseSound
java.lang.Object
ActiverseEngine.ActiverseSound
Represents a sound player for playing audio files.
This class provides methods to load, play, and stop audio files.
-
Constructor Summary
ConstructorDescriptionActiverseSound
(String filename) Constructs a new ActiverseSound object with the specified audio file. -
Method Summary
-
Constructor Details
-
ActiverseSound
Constructs a new ActiverseSound object with the specified audio file.- Parameters:
filename
- The path to the audio file.
-
-
Method Details
-
play
public void play()Plays the loaded audio file. -
stop
public void stop()Stops the currently playing audio file. -
isPlaying
public boolean isPlaying()Checks if the audio file is currently playing.- Returns:
- true if the audio file is playing, false otherwise.
-
getFilename
Gets the filename of the audio file.- Returns:
- The filename of the audio file.
-