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

3.0 SoundEffect problem with converted project... bug?

Last post 05-08-2008 8:59 PM by Cdxrd. 3 replies.
  • 05-07-2008 11:35 PM

    3.0 SoundEffect problem with converted project... bug?

    Ok, I followed the step on http://creators.xna.com/XNA3CTP/readme_xna.htm  to convert my project from 2.0 to 3.0. Of course, for the sound effect class. So I added the media and audio namespaces, and even checked out the sample on http://www.kyleschouviller.com/uncategorized/xna-30-mp3wmawav-support/.

    Now, I imported everything and edited the files per the readme. I removed my old system.media stuff I was using for testing purposes, created a soundeffect, and proceeded to start to load the content..

    Cannot autodetect which importer to use for "Audio\blockshatter.wav".
    There are no importers which handle this file type.
    Specify the importer that handles this file type in your project.   
    C:\Users\cdxrd\Desktop\Csharp\_3.0\KollectivGSM\KollectivGSM\Content\Audio\blockshatter.wav

    Thats the error Im getting though.. SO I created a test project, added my wav, and it will work that way.. Heres the trouble..

    In the test project, the wav shows a content importer of "WAV Audio File - XNA Framework" and content processor as "Sound Effect - XNA Framework"

    Now in my converted project, I have the content processor, but but content importer doesnt exist!  I get the standard choices, but there is no selection for WAV, WMA or MP3..

    So how do i get those content importers added to my project?

    Development site: CDX Games
  • 05-08-2008 12:38 PM In reply to

    Re: 3.0 SoundEffect problem with converted project... bug?

    You need to add Microsoft.Xna.Framework.Content.Pipeline.AudioImporters to your content project references.
    XNA Framework Developer - blog - homepage
  • 05-08-2008 12:47 PM In reply to

    Re: 3.0 SoundEffect problem with converted project... bug?

    Aha! Thanks for that info! I didnt see it mentioned anywhere... I might have overlooked it though.. But if its not there, until a proper working upgrade wizard is there, it might need to be added to a faq or something..

     

    Thanks!

    Development site: CDX Games
  • 05-08-2008 8:59 PM In reply to

    Re: 3.0 SoundEffect problem with converted project... bug?

    Note to self, newbs and other individuals with the ID10T or PEBKAC errors...
     
    Add that reference to the CONTENT project.. Not the main project.. =)
     
    Worked like a charm once i realized i added it to the main project.. hehe
    Development site: CDX Games
Page 1 of 1 (4 items) Previous Next