Eliminate delay between looping XNA songs?
Posted
by
Stephane Beniak
on Game Development
See other posts from Game Development
or by Stephane Beniak
Published on 2011-11-28T01:50:22Z
Indexed on
2011/11/28
2:04 UTC
Read the original article
Hit count: 456
I'm making a game with XNA and trying to get some background music to loop correctly. Because the file is an MP3 of about 30 seconds in length, I instantiated it as a Song
. I want it to loop perfectly, but even when I set the MediaPlayer.IsRepeating
property to true
, there is always a delay of about one second before the song starts up again. Is there any way to eliminate this delay such that the song loops instantly, so it can play more fluently?
© Game Development or respective owner