Heine

  • home
  • drupal
  • about
Home

First steps

XNA SoundEffect ContentLoadException

Heine — Wed, 28/01/2009 - 21:59

It took me about 10 minutes to find out why the code below for a SoundEffect throws a ContentLoadException:

explosionSoundEffect = Content.Load<SoundEffect>("filename");

Error loading "[filename]". File contains Microsoft.Xna.Framework.Media.Song but trying to load as Microsoft.Xna.Framework.Audio.SoundEffect.

To save you the trouble:

  1. Select the file filename in the Solution Explorer.
  2. Go to its Properties tab.
  3. Set the Content Processor to Sound Effect - XNA Framework.

Done.

  • First steps
  • XNA
  • 3 comments
Syndicate content

Recent posts

  • In doubt? Read the specs!
  • About the Webform SA
  • Psalmen voor Altblokfluit
  • Unserializing user-supplied data, a bad idea
  • Planet Drupal past and current
more

Security reviews

  • Afraid custom code makes your site vulnerable?
  • You don't really trust that module you just downloaded from Drupal.org?

Sleep better after a security review.

Tags

bladmuziek blood donation blood supply CSRF Drupal Input Format modx MSM Performance Planet Drupal Security Varnish
more tags
  • home
  • drupal
  • about

Copyright © 2011 by Heine Deelstra. All rights reserved.