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

Cannot detect which importer to use

Last post 20/12/2007 19:02 by GD Chidiko. 4 replies.
  • 20/12/2007 17:43

    Cannot detect which importer to use

    Hi, I am following the going beyond tutorial lesson 3 in xna and I get the following error and am stumped on what to do.

    Error:

    Cannot autodetect which importer to use for "Audio\Waves\hyperspace_activate.wav". There are no importers which handle this file type. Specify the importer that handles this file type in your project.

    Thanks for your time.

    ~Yuri

  • 20/12/2007 17:57 In reply to

    Re: Cannot detect which importer to use

    The reason is that you have no importer for wav files. If you want to use the XNA audio support, you need to use XACT. Create a XACT project which includes your wav file and import the resulting xap-file instead. Take a deeper look into the documentation for more information. Look at
    Programming Guide->Audio->How To: Add a Sound File to Your Game Using XACT
    ---
    Sharing my TDD XNA experience on XNA's Nicely Addictive
  • 20/12/2007 18:15 In reply to

    Re: Cannot detect which importer to use

    I am following exactly what the tutorial says to do. I have even made a seperate project and used the sample code that is provided and added in all of the audio, texture, and model files and I am still getting the same error. So its not the code because my code looks exactly like the sample code.

    Oh and i do have a .xap file included too. MyGameAudio.xap

  • 20/12/2007 18:30 In reply to

    Re: Cannot detect which importer to use

    Answer
    Reply Quote
    Ok. Perhaps I was unclear. The problem is that you have added your wav file to your content project. You only need to add the xap file. The wav file is referenced from the XACT project (xap file) and hence will be processed in the compilation step. Probably your code is fine, just exclude the wav file from the project.
    ---
    Sharing my TDD XNA experience on XNA's Nicely Addictive
  • 20/12/2007 19:02 In reply to

    Re: Cannot detect which importer to use

    Oh I see. Alright thanks for your help!
Page 1 of 1 (5 items) Previous Next