Interface AudioControl
-
public interface AudioControl
Controls the audio system
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
play(ModAndResourceName audioFileName)
Plays a sound effect oncevoid
playMusic(ModAndResourceName opener, List<ModAndResourceName> audioFileNames, boolean standard)
Plays a collection of music tracks, music playback will be shuffled and repeatvoid
playStandardMusic()
Plays the standard collection of music tracks, music playback will be shuffled and repeatvoid
stopMusic()
Stops playing music
-
-
-
Method Detail
-
playMusic
void playMusic(ModAndResourceName opener, List<ModAndResourceName> audioFileNames, boolean standard)
Plays a collection of music tracks, music playback will be shuffled and repeat- Parameters:
standard
- Defines the given collection of music tracks as standard collection, see playStandardMusic()
-
playStandardMusic
void playStandardMusic()
Plays the standard collection of music tracks, music playback will be shuffled and repeat
-
stopMusic
void stopMusic()
Stops playing music
-
play
void play(ModAndResourceName audioFileName)
Plays a sound effect once
-
-