locked
Audio Equalizer RRS feed

  • Question

  • Hi,
    I'd like to do an app where I load a music (let's say a .mp3 ) , and I would want to be able to change the bass/middle/treble of the music during the play (in a XAML UI).  I looked around the different API's but I didn't find one that could work.

    Is it possible to do some app like this on Windows 8 and/or Windows Phone 8 ?


    Does it involves using XAudio2 ?

    Thanks for your replies.

    Vincent.

    Monday, March 4, 2013 1:48 AM

Answers

  • You can do this on Windows 8 and Windows Phone 8 using XAudio2. However there aren't API's available to do most of it, so would have to code it. In your example, using an mp3 file you would:

    - Decode the mp3 file into raw PCM data

    - Pass the raw audio data though filters for your equalizer. In this case it would be a 3-band equalizer. Here is one example online: 

    http://www.musicdsp.org/showArchiveComment.php?ArchiveID=236

    - Feed the processed pcm audio data into an XAudio2 SourceVoice for playback


    • Edited by ID477 Monday, March 4, 2013 6:58 PM
    • Marked as answer by VM Apps Wednesday, March 6, 2013 1:27 AM
    Monday, March 4, 2013 6:57 PM

All replies

  • You can do this on Windows 8 and Windows Phone 8 using XAudio2. However there aren't API's available to do most of it, so would have to code it. In your example, using an mp3 file you would:

    - Decode the mp3 file into raw PCM data

    - Pass the raw audio data though filters for your equalizer. In this case it would be a 3-band equalizer. Here is one example online: 

    http://www.musicdsp.org/showArchiveComment.php?ArchiveID=236

    - Feed the processed pcm audio data into an XAudio2 SourceVoice for playback


    • Edited by ID477 Monday, March 4, 2013 6:58 PM
    • Marked as answer by VM Apps Wednesday, March 6, 2013 1:27 AM
    Monday, March 4, 2013 6:57 PM
  • That's what I thought.

    Thank you for the code example.

    Vincent.
    Wednesday, March 6, 2013 1:27 AM