Low, high, bandpass filter using DirectX

W

Woojtos

Hi,

I have a problem. I don't know how to create lowpass, highpass and
bandpass filter. I capture the sound using CaptureBuffer from DirectX
library. Then I create memory buffor as follow:

int BUFFER_SIZE = 100000;
byte [] data = (byte[])captureBuffer.Read(0 , typeof(byte),
LockFlag.None, BUFFER_SIZE );
MemoryStream stream = new MemoryStream( data, false );
Buffer buffer = new Buffer(bufferDesc, device);
buffer.Write(0, stream, (int)stream.Length, LockFlag.EntireBuffer);
buffer.Play(0, BufferPlayFlags.Default);

Thanks in advance
 
P

Peter Bromberg [C# MVP]

There are some nice articles over on codeproject.com by authors such as
Ianier Munoz (an MVP from Belgium) and others, that deal with this type of
stuff.
Also, there are some active threads on the Gotdotnet.com forums dealing with
various DirectX issues.
Basically, you need to route the stream you're currently sending into the
PlayBuffer into a filter of your choice, and then the output from THAT into
your PlayBuffer.
--Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top