XNA Creators Club Online
foros de la comunidad
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Apply sound effect

Last post 20/10/2009 20:34 by JustinMorgan. 1 replies.
  • 16/09/2009 7:24

    Apply sound effect

    Hi, I need a C# source code able to apply an Audio filter as Echo to an Audio file.
    I'm currently using DirectSound, a part of Direct X 9.
    Unfortunately I don't know a way to apply this effect.

    Actually my small application plays a .Wav file with this source code:

    1 
    2if (openFileDialog1.ShowDialog() == DialogResult.OK)  
    3            {  
    4                dev = new Microsoft.DirectX.DirectSound.Device();  
    5                dev.SetCooperativeLevel(this, Microsoft.DirectX.DirectSound.CooperativeLevel.Normal);  
    6                snd = new Microsoft.DirectX.DirectSound.SecondaryBuffer(openFileDialog1.FileName, dev);  
    7 
    8                snd.Play(0, BufferPlayFlags.Default);  
    9            }  
    10 

    If someone can help me I thank him from now

    Best Regards
    Fornarina
  • 20/10/2009 20:34 In reply to

    Re: Apply sound effect

    Here is a link to the msdn blogs with a couple sections about DirectSound. In part 8 (linked bellow) it explains how to use 3D sound,
    and the next part explains how to add effects to a sfx.

    http://blogs.msdn.com/coding4fun/archive/2006/11/06/999786.aspx
Page 1 of 1 (2 items) Previous Next