I have a C# project that plays Morse code for RSS feeds. I write it using Managed DirectX, only to discover that Managed DirectX is old and deprecated. The task I have is to play pure sine wave bursts interspersed with silence periods (the code) which are precisely timed as to their duration. I need to be able to call a function which pl...
Is this possible using only C#? I want to be able to detect audio from: a stream, microphone or soundcard and begin recording if audio level is above a settable threshold.
Thanks :-)
...
Hello guys,
I'm currently developing an audio engine that is used in voice network chat software.
Everything is working fine - capture/playback/mixing channels.
The problem is in using it under Windows XP. I've been getting user reports with information
that their global system volume is set to zero after launching the application.
I...
I'm writing a managed wrapper around DirectSound. (It's a simple partial wrapper that solves my specific problem and nothing more. Don't tell me about NAudio or whatever.) Should a managed class that wraps IDirectSound8 be IDisposable and why? Same question about IDirectSoundBuffer8.
...
Hello,
I need help.. I have problem with splitting left & right channel from captured stream from mic (or sound card)
Below code corectly record sound from mic and saving into the wav file
pairs left channel, right channel, left...
How recognize (split) in CapturedData left and right channel ??
[method CreateCaptureBuffer()]
For InPos ...
Hi, I am trying to write a program to play a small .wav file in C++. I have programmed it following the DirectX SDK documents to write and play on a secondary static buffer. It runs correctly except that at the end of the playback for any .wav file, there is a very noticeable "clicking" noise. I am certain that it's not a defect on my au...
Hello,
I am creating a basic signal generator and decided to use my audio card as the analogue output. I chose to use DirectSound because... it seemed like a good option.
I have it up and running quite nicely, but I now realize that my code using secondary buffers and as such any other sounds on the computer get mixed in with my gener...
Hi All.
I have encountered a bug in DirectShow .NET where I create a secondary buffer with a sample rate of 8khz, and upon playback, the sound plays back at approx. 8.1khz instead.
Googling this, I discovered that I might be forced to upsample the 8khz audio myself to 48khz or 44.1khz depending on the soundcard in the PC.
Is there an...
Hi guys,
Very simple question. In the MSDN documentation for the DirectSound API they state that when my application is in focus it will be the only audible program. This is exactly what I want to happen, however when setting this flag and playing sound through my application, I can still hear the background music on my computer.
So t...
i would like to record any sounds produced in my soundcard. please help, where i can get a freeware component or commercial(trial). delphi7/2009
...
Hello,
I've been working for some time with image formats and i know that an image is an array of pixels (24- maybe 32 bits long). The question is: what is the way a sound file is represented? To be honest i'm not even sure what i should be googling for. Also i would be interested how do you use the data, i mean actually playing the soun...
(apologies if this is a duplicate ... i posted but saw no evidence that it actually made it to the forum)
I've been trying to get SlimDX DirectSound working. Here's the code I have. It fills the secondary buffer from a wav file and then, in a thread loop, alternately fills the lower or upper halves of the buffer.
It plays the first lo...
I don't see a straightforward way to check when SlimDX has finished playing the audio in its buffers.
The way I'm doing it right now is within the secondary buffer reload loop. When an attempt to reload both the upper and lower halves results in zero new bytes added, then I know it's done. Is there an easier way?
...
hi, my question is can directsound play raw binary sound file witout a wav. header
the thing is i took a binary file encoded in U-law ive decoded(PCM) it and now i need to play it.
it lacks a header so can a directsound play the decoded file.
...
Hey, I have simple 16-bit PCM player that I made using DirectSound.
But when it plays, it seems that it plays only one speaker instead of both.
I don't know what code to post exactly, so you'll have to tell me if you need any.
I can say that I create the sound buffer using, and lock the stream using:
WAVEFORMATEX wfx; ZeroMemory(&wfx...