473,698 Members | 2,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Low, high, bandpass filter using DirectX

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(bufferDe sc, device);
buffer.Write(0, stream, (int)stream.Len gth, LockFlag.Entire Buffer);
buffer.Play(0, BufferPlayFlags .Default);

Thanks in advance
Nov 17 '05 #1
1 5912
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

"Woojtos" <wo*******@pocz ta.onet.pl> wrote in message
news:d3******** **@nemesis.news .tpi.pl...
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(bufferDe sc, device);
buffer.Write(0, stream, (int)stream.Len gth, LockFlag.Entire Buffer);
buffer.Play(0, BufferPlayFlags .Default);

Thanks in advance

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1456
by: Robert Ludewig | last post by:
Hello, I recently started to develop my own little high level, easy to use 3D API on top of managed directx for .net. The idea behind it is having a generic API that lets me create (simpler) 3D-applications in the shortest possible time in .net. It involves implementing things like a node structure for the scenegraph, a console, device configuration manager etc. Just like we know it from other APIs, like java3d or openinventor or from...
2
733
by: Michael Evans | last post by:
First, we rely on a stable update rate so that our physics and dynamics calculations and integrations are based on a known interval and therefore are true-to-life. Second, the graphics positions in our image generators are updated by this dynamics application, and we need to update them at the rate they are being refreshed so that we don't get any stutter from frames being used twice or having to be thrown out. Without microsecond...
1
2781
by: Johnny Granberg | last post by:
Im trying to make a software in VB.NET that is supposed to handle high-res images, ive discovered theres a limit in the size of the bitmap object around 10000x10000 pixels. The program takes a number of input files and then create new files with parts of the input files. so basicly i load the input files in memory so the program will be as fast as possible, but now and then i get "out of memory" exceptions even tho the program only...
4
1418
by: David Pendrey | last post by:
Greetings, I am writing an application which will need to move around 50 bitmaps on the form at a speed high enough that it appears smooth. I am currently using some custom controls to contain the bitmap and the logic for the movement in the same location and have have a loop which updates all bitmaps each 50ms (20fps). Unfortunatly the time taken to render this is too great and my application does not function correctly. The solution does...
14
2651
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
2
3497
by: Andrew Bullock | last post by:
Hi, I'm completely new to DirectX in CS, so if my question is too advanced for a simple answer, could someone point me at some good tutorials? Thanks... Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture video input from a webcam. Thats all working fine :)
1
2265
by: A. Gaubatz | last post by:
I am using some code that I somewhat cannibalized from a tutorial, and whenever I try to put in an image not of specific seemingly random sizes, it stretches them out alot. The module that runs the code I am using is this: (note that the tutorial had a 3D segment as well, which has been remarked) ------------------------------------------------------- Imports Microsoft.DirectX
4
6565
by: dean.greg | last post by:
Im looking for a way to generate thumbnails from an image as fast as possible. Currently I'm using GDI+ however going from 1024x768 to 100x100 takes too long. I'd imagine the whole process can be optimized by using hardware acceleration (ie DirectX), however I am not all that familar with the DirectX API. What I'm looking for is some direction, or even some sample/psuedo code, that might point me in the right direction. If not...
7
4051
by: Udhay | last post by:
How to get the frequency of an audio file and how to separate the low and high frequency of an audio file
0
8672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9155
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8858
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.