XNA Creators Club Online
Page 1 of 1 (4 items)
Sort Posts: Previous Next

Question about music stopping 'early'.

Last post 02-20-2008 9:37 AM by Byron Nelson. 3 replies.
  • 02-05-2008 9:45 PM

    Question about music stopping 'early'.

    The current project we are working on sets the game length to coincide with the length of the songs.

    Now here's where the problem lies.  We get the following notification in the code when the music 'stops' (when the end of the .wav has been reached):

    XACTNOTIFICATIONTYPE_WAVESTOP

    What's strange is that this is happening at the 1:57 mark, not the 2:00 mark which is the length of the audio file.  Has anyone encountered this before.  Any advice as to why this notification is being sent back early?

    Thanks in advance and Aloha.

    Brian

  • 02-06-2008 1:06 PM In reply to

    Re: Question about music stopping 'early'.

    The only two things I can think off of the top of my head:
    Is the pitch of the wav set, maybe in XACT or in the code so it's time stretched a little?
    or
    Maybe the wave file is loading before the game is fully is initiated. I've noticed with some of my projects that in my audio class the wav file will start playing before the rest of the content has finished loading, depending on where it is in the code.Try triggering the music with a keypress after everything has loaded and then compare the times and see if it's still the same.

    Also, are you saying the response is being sent while the wave file is still playing 3 seconds too early, or the music actually ends 3 seconds too early? Could you put a defiinte loud 'blip' at the very end of the track to determine exactly when it's ending?
  • 02-18-2008 2:41 PM In reply to

    Re: Question about music stopping 'early'.

    Thanks for the feedback; gonna forward this to the programmers.

    Aloha,

    Brian

  • 02-20-2008 9:37 AM In reply to

    Re: Question about music stopping 'early'.

    Dunno if it is relevant to your problem, but there is a FAQ on something similar

    http://forums.xna.com/thread/16343.aspx

     

    best,

    Byron

    ..shaders make you feel... powerful, or very very stupid.
    http://drjbn.spaces.live.com/
Page 1 of 1 (4 items) Previous Next