Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Updates per Flibi's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
3vi1 committed Apr 24, 2014
1 parent 6f66149 commit 8ff2f5f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion MonoGame.Framework/Media/MediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ private static void NextSong(int direction)

private static void PlaySong(Song song)
{
song.SetEventHandler(OnSongFinishedPlaying);
song.Volume = IsMuted ? 0.0f : Volume;
song.Play();
State = MediaState.Playing;
Expand Down
12 changes: 0 additions & 12 deletions MonoGame.Framework/SDL2/Media/Song.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,18 +229,6 @@ internal void Stop()

#region Internal Event Handler Methods

/// <summary>
/// Set the event handler for "Finished Playing". Done this way to prevent multiple bindings.
/// </summary>
internal void SetEventHandler(FinishedPlayingHandler handler)
{
// No-op. We always use MediaPlayer.OnSongFinishedPlaying as handler.

/* TODO: Remove this function, and the call in Song.cs, since we've
* completely forked MediaPlayer.cs?
*/
}

internal void OnFinishedPlaying()
{
MediaPlayer.OnSongFinishedPlaying(null, null);
Expand Down
2 changes: 1 addition & 1 deletion MonoGame.Framework/SDL2/Media/Video.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ internal static string Normalize(string FileName)
return FileName + ".ogg";
}

return null; // File not found with supported extension.
return null; // File not found with supported extension.
}

#endregion
Expand Down

0 comments on commit 8ff2f5f

Please sign in to comment.