29 #if WINDOWS_PHONE || ANDROID
52 get {
return Volume == 0; }
93 public void Play(
string songName)
105 catch (ContentLoadException e)
108 "Could not play the song \"" + songName +
"\".\n" +
109 "Please check that you added the song to the Content project and typed the name correctly.", e);
115 public void PlayFromFile(
string fileName )
125 var ctor = typeof( Song ).GetConstructor(
126 BindingFlags.NonPublic | BindingFlags.Instance,
null,
127 new[] { typeof( string ), typeof( string ), typeof( int ) },
null );
129 Song song = (Song)ctor.Invoke(
new object[] {
"name", fileName, 0 } );
139 if (!CanPlay)
return;
148 if (!CanPlay)
return;
157 if (!CanPlay)
return;