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

sound problems with game

Last post 04-03-2008 11:25 AM by Maxburn62. 7 replies.
  • 04-01-2008 1:29 PM

    sound problems with game

    I was writing a sound manager for a game project i'm doing for a class.  Everything looks right, but when I go to compile my code, I get an error message along the lines of "cannot autodetect which importer to use for 'filename'. there are no importers which handle this file type. Specify the importer that handles this file type in your project."
    I'm was using XACT to create my sound banks and wave banks, and the type of sound files i'm using are .wav

    and help on this problem would be appreciated.
  • 04-01-2008 1:38 PM In reply to

    Re: sound problems with game

    Only the .xap file should be added to your project. The .wav files can be in your project folder, but shouldn't be added to the project.

    If that isn't the problem, could you post the exact text of the error message? 'filename' doesn't tell us which file(s) it's having a problem with.

     

  • 04-01-2008 1:38 PM In reply to

    Re: sound problems with game

    You are probably adding the wav files to your content project. You don't want to do that. Just add the XACT project to your content project and add the wav files to that.
  • 04-01-2008 1:40 PM In reply to

    Re: sound problems with game

    Looks like you added the .wav file to the content project. You don't need to do that.



    Jim Perry - Microsoft XNA MVP
    Here's what I'm up to.
    If people spent a minute searching the forums before posting I'd be out of a job.
  • 04-01-2008 2:03 PM In reply to

    Re: sound problems with game

    You only need to add the XACT project (.xap file) to your Visual Studio solution. The .wav files are referenced indirectly by the .xap, and do not need to be included directly. If you do want to include them for some other reason, you should set their build action to None rather than Compile, so the Content Pipeline will not attempt to individually build each .wav.
    XNA Framework Developer - blog - homepage
  • 04-01-2008 4:20 PM In reply to

    Re: sound problems with game

    David Hunt:

    Only the .xap file should be added to your project. The .wav files can be in your project folder, but shouldn't be added to the project.


    Nick Gravelyn:

    You are probably adding the wav files to your content project. You don't want to do that.


    Machaira:

    Looks like you added the .wav file to the content project. You don't need to do that.


    Shawn Hargreaves:

    The .wav files are referenced indirectly by the .xap, and do not need to be included directly.


    Is anyone else getting a really weird echo in here? :)

    Eli Tayrien - XNA Framework Developer
  • 04-02-2008 1:45 PM In reply to

    Re: sound problems with game

    EliTayrien:
    David Hunt:

    Only the .xap file should be added to your project. The .wav files can be in your project folder, but shouldn't be added to the project.


    Nick Gravelyn:

    You are probably adding the wav files to your content project. You don't want to do that.


    Machaira:

    Looks like you added the .wav file to the content project. You don't need to do that.


    Shawn Hargreaves:

    The .wav files are referenced indirectly by the .xap, and do not need to be included directly.


    Is anyone else getting a really weird echo in here? :)

    Heh. David, Nick and I seemed to have been posting at about the same time. Shawn jumped in late. :)



    Jim Perry - Microsoft XNA MVP
    Here's what I'm up to.
    If people spent a minute searching the forums before posting I'd be out of a job.
  • 04-03-2008 11:25 AM In reply to

    Re: sound problems with game

    Hey, thanks guys.  That solved my problem.
Page 1 of 1 (8 items) Previous Next