DirectSound
(1)
Silences
(1)
Speeches
(1)
Avg
(1)

help for sound noise suppression ...

Asked By hadi kazemi
24-Sep-09 11:56 AM
hi
I used DirectSound for recording sound. I want to record only when someone
speeches not when she is silent. So I checked average of capture buffer. If it
is between 123 and 132, sounds are not recorded:
[code]
for( cT = 0; cT < nSizeToWrite; cT++ )
{
avg = avg + *((BYTE*)pbSrcData+cT);
}
avg = avg / nSizeToWrite;

if(avg > 132 || avg < 123 ){
//record in wave file.
...

[/code]
Unfortunately it does not work properly. Silences are recorded mostly. is
that because of environment noise ? how can i suppression it?
Post Question To EggHeadCafe
C++ / VB help for sound noise suppression . . . hi I used DirectSound for recording sound. I want to record only when someone speeches not when she is silent. So I checked average of in wave file. . . . [ / code] Unfortunately it does not work properly. Silences are recorded mostly. is that because of environment noise ? how keywords: help, for, sound, noise, suppression, . . . description: hi I used DirectSound for recording sound. I want to record only when someone speeches not when she is silent. So I checked average of
C++ / VB crazy noise in Directsound I'm using Directsound to play two wavs. Sound 1 is a looped wav least one demo I've seen of how to use Directsound also has a similar problem. You may want to post ll see if I can replicate this in the non-DirectSound world, but it will take me a while to get full volume and pops. You may want to flush the DirectSound device or open / close it as necessary. I use the and that's what I do. I've not used DirectSound too much. - - David Keeping a loop of silence running, at Chris P., has solved the problem. This is apparently a Directsound bug. Thanks, all. Jim keywords: crazy, noise, in, Directsound description: I'm using Directsound to play two wavs. Sound 1 is a looped wav
C++ / VB Crazy sound in Directsound I'm using Directsound to play two wavs. Sound 1 is a looped wav least one demo I've seen of how to use Directsound also has a similar problem. I think it's a Jim If you are seeking perfection I would not use DirectSound at all :) Now that is interesting, I did not expect m new to windows audio. What is considered superior to Directsound for playing wav files? Fair enough. It may be smart channel use ASIO (3rd party API), Vista general use WASAPI. DirectSound has too many bugs they never bothered to fix so high level, XAudio is a more complete direct replacement for DirectSound. - - http: / / www.chrisnet.net / code.htm [MS MVP for DirectShow / MediaFoundation] keywords: Crazy, sound, in, Directsound description: I'm using Directsound to play two wavs. Sound 1 is a looped wav
C++ / VB just starting out with DirectSound in MFC / C++ 6.0 In getting set up for my first test with DirectSound, attempting to follow the DirectSound documentation, I have the following: In my project settings: Additional sure windows.h or afx.h is included before the DirectSound includes so that you get definitions for things like DWORD cause more than 'minor' problems. That said, also remember that DirectSound is itself rather dated. XAudio 2 is still in Beta OSs? Does XNA provide the same low-latency capabilities as DirectSound? Thanks! Mark - - Mark Salsbery Microsoft MVP - Visual C++ It depends want to use WSAPI to output on Windows Vista and DirectSound on Windows XP. If you want a low-level audio the low-latency low-level game audio solution going forward. DirectSound remains supported in Windows Vista for compatability, but XAudio 2 Salsbery Microsoft MVP - Visual C++ keywords: just, starting, out, with, DirectSound, in, MFC / C++, 6.0 description: In getting set up for my first test with DirectSound, attempting to follow the DirectSound documentation, I have the following
C++ / VB Antialiasing with DirectSound Hi @ all, is there a method in DirectSound for Antialiasing captured sound? Best Regards Karsten Capture at the Nov 2008 08:02:38 -0800 (PST), karstenasche@googlemail.com DirectSound has no such methods. You have to communicate directly with sample does. It's not exactly easy. Even still the DirectSound system can already have the device open at a higher unexpected resampling. The only 100% way is to not use DirectSound but instead to use Kernel Streaming (XP only?), ASIO (limited code.htm [MS MVP for DirectShow / MediaFoundation] keywords: Antialiasing, with, DirectSound description: Hi @ all, is there a method in DirectSound for Antialiasing captured sound Best Regards Karsten?
C++ / VB Question about DirectSound notifications Hey gang, I've created a DirectSound test application with the capture notifier set to 50 indexes others with 50 ms. What can I do to configure Directsound capture notifier to wake up my thread every 20 ms use MsgWaitForMultipleObjects(). Use WaitForSingleObject() or WaitForMultipleObjects(). The event notifications in DirectSound are somewhat broken. It is particularly bad if there are multiple DirectSound applications running as you will receive the other applications events smaller sample sizes for encoding / network packetization. keywords: Question, about, DirectSound, notifications description: Hey gang, I've created a DirectSound test application with the capture notifier set to 50 indexes
C++ / VB DirectSound default device changes I'm using DirectSound for capture and playback in an application, and I always panel) while my app is running and re-create my DirectSound handle, the device I'm playing through _doesn't_ change app with a large managed layer on top of unmanaged DirectSound. . . I will take a look at whether I'm preventing or not AFAICT. However something appears to be funky with DirectSound. As a test I ran my DirectSoundEnumerator app, which allows enumerate at will with the click of a button. The DirectSound enumeration information is getting cached and is the same for chrisnet.net / code.htm [MS MVP for DirectShow / MediaFoundation] keywords: DirectSound, default, device, changes description: I'm using DirectSound for capture and playback in an application, and I always the default capture and playback devices by passing 0 to DirectSound
C++ / VB DirectSound and grabbing samples Hi, I'm trying to implement a spectrum of the capturing audio with DirectSound. I could capture data to a buffer with CaptureBuffer class my fft algorithm and generate the spectrum. I use Managed DirectSound, but an unmanaged code fits me, too. Any help appreciated the DirectSoundCapture of the DirectX SDK sample? (InstallDir) \ Samples \ C++ \ DirectSound \ CaptureSound ESP, RecordCapturedData() function in capturesound.cpp:930 keywords: DirectSound, and, grabbing, samples description: Hi, I'm trying to implement a spectrum of the capturing audio with DirectSound. I could capture data to a buffer with CaptureBuffer class