Example #1
0
 /// <summary>
 /// Checks to see whether the current song is paused or not
 /// </summary>
 /// <param name="song">The current song</param>
 /// <returns>A boolean that specifies whether current song is paused or not</returns>
 public Boolean isPaused(Song song)
 {
     return(song.getSound().isPaused());
 }
Example #2
0
 /// <summary>
 /// Stops the playing song
 /// </summary>
 /// <param name="song">the song to be stopped</param>
 public void stopSong(Song song)
 {
     song.getSound().stop();
 }
Example #3
0
 /// <summary>
 /// Changes the volume of the song playing
 /// </summary>
 /// <param name="song">The current song playing</param>
 /// <param name="volume">The new volume</param>
 public void setVolume(Song song, float volume)
 {
     song.getSound().setVolume(volume);
 }
Example #4
0
 /// <summary>
 /// Pauses or unpauses a song
 /// </summary>
 /// <param name="song">the song to be paused or unpaused</param>
 public void pauseUnpauseSong(Song song)
 {
     song.getSound().pauseUnpause();
 }