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

[3.0 CTP] Failed to submit audio for playback?

Last post 05-12-2008 2:29 PM by Nick Gravelyn. 2 replies.
  • 05-10-2008 8:38 PM

    [3.0 CTP] Failed to submit audio for playback?

    Working on another Zune game and running into an exception:
    An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll

    Additional information: Failed to submit audio for playback.


    The code is pretty simple for that spot:

    public void Press()
    {
      if (!isPressed)
        Sound.Play(1f, Pitch, 0f, false); <- throws here

      isPressed = true;
    }


    And I know it is loaded before playing because I have a Windows version that works without issue. Any thoughts?
  • 05-12-2008 2:03 PM In reply to

    Re: [3.0 CTP] Failed to submit audio for playback?

    Hi Nick, this sounds like the audio packet validation might be failing in the native Zune audio engine. This could be a bug in our audio packet validation code. Could you provide some details about the source audio such as the source audio format (mono/stereo, 8/16-bit) and the size of the audio data. One quick thing to try would be to check if the total size of the audio data is block aligned for the format (i.e. aligned to the WAVEFORMATEX.nBlockAlign value). We'll try to track this down asap here and if it's possible for you to share the source content that would be helpful too.

    Thanks!

    -Ashu

    XNA Framework Developer

    - Ashu Tatake
    XNA Framework Developer
  • 05-12-2008 2:29 PM In reply to

    Re: [3.0 CTP] Failed to submit audio for playback?

    When I get home tonight I'll see if I can build up a good repro for you guys and submit it all to Connect.
Page 1 of 1 (3 items) Previous Next