Sign in to follow this  
Nokame

XACT Waves Audio Spectrum in XNA

Recommended Posts

Hi there,

I'm using XNA 4.0 with C#... and am using XACT to play sound clips in my game.  I'm also using MediaPlayer to play mp3's in the background. What I want to do is show a visual audio spectrum of specific sounds which are .wav format.  I can get the visual data for the mp3's playing the background using:

 

VisualizationData visData = new VisualizationData();

MediaPlayer.GetVisualizationData(visData);

 

How do i get the same data from my XACT wave files?  I have no need for the visual spectrum of the background music, i want to show the visual data when certain sounds play.  Does XNA have an easy way to do this? If not, I'd like a suggestion as to what I would need to research in order to do this.

 

Nokame.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this