Class GameSoundPlayer

java.lang.Object
com.example.project.services.GameSoundPlayer

public class GameSoundPlayer extends Object
plays an audio clip as a sound effect for the game.
  • Constructor Details

    • GameSoundPlayer

      public GameSoundPlayer(String filePath)
      creates a new instance of GameSoundPlayer
      Parameters:
      filePath - filpath to sound.
    • GameSoundPlayer

      public GameSoundPlayer(String filePath, double volumeOverride)
      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