PlayMusic with flag=0 (no loop) is bugged in xna
Monkey Forums/Monkey Bug Reports/PlayMusic with flag=0 (no loop) is bugged in xna
| ||
public virtual int PlayMusic( String path,int flags ){ if( !musicEnabled ) return -1; MediaPlayer.Stop(); Song song=BBXnaGame.XnaGame().LoadSong( path ); if( song==null ) return -1; if( (flags&1)!=0 ) MediaPlayer.IsRepeating=true; // <- BUG //MediaPlayer.IsRepeating=flags==1; // <- FIX MediaPlayer.Play( song ); return 0; } |
| ||
Thanks! Will fix soon. |