Hi,
I've got a c# application that plays simple wav files through directsound. With the test data I had, the code worked fine. However when I used real-world data, it produced a very unhelpful error on creation of the secondary buffer: "ArgumentException: Value does not fall within the expected range."
The test wavs had a 512kbps bit...
Is DirectSound the best audio abstraction layer for Windows?
Switching my app from a very bad sound implementation, built to a specific chipset, to an abstration layer.
App is native Winform, .net 3.5. DirectX/DirectSound is the likely choice, but a little concerned about the overhead. Any other options? Or is it silly to even THINK ...
I'm looking for the best single book for implementing DirectSound solution with .NET (C# preferred). If I had 1 book to buy, it would be this one.
It can be overall DirectX, but I will only care about DirectSound.
Also, if there are any good upcoming books about XAudio2, love to hear about that too!
...
I'm starting to create a proof of concept for an idea I have, and at this point, I need some guidance as to how I should begin.
I need to sample the microphone input, and process that signal in real-time (think Auto-Tune, but working live), as opposed to "recording" for a while.
What I'm doing is "kind of" a "mic input to MIDI converte...
I've got an application that uses DirectShow/DirectSound which plays videos and extracts the video/sound. Running it on a server without a soundcard means the audio cannot be grabbed, is there a way around this? I look briefly at Virtual Audio Cable 4 but that doesn't seem to emulate a soundcard over a terminal session..
The tricky part...
I'm making an application where I will:
Record from the microphone and do some realtime processing on the input
Play an MP3 file (a regular song), but manipulating the output in realtime
Every now and then I'll need to play additional sounds over this song too, but I guess I can do that by simply adding the buffers.
In short, I need ...
I am doing some maintenance work involving DirectSound buffers. I would like to know how to interpret the elements in the buffer, that is, to know what each value in the buffer represents. This data is coming from a microphone.
This wave format is being used:
WAVEFORMATEXTENSIBLE format = {
{ WAVE_FORMAT_EXTENSIBLE, 1, sample_rate, s...
I am trying to perform Acoustic Echo Cancellation (AEC) with the Speex codec library. According to the Speex documentation, I need to perform two calls:
speex_echo_playback(echo_state, echo_frame);
every time an audio frame is played, and
speex_echo_capture(echo_state, input_frame, output_frame);
for every frame captured.
Since ...
I am in need of playing multiple sound files one after the other. The problem is that I cannot use MP3 due to firewall issues and must use a SWF with the sound embedded into it.
The problem is that the SWF will play the sound but not with the sound object - so I miss out on the built in features. I need to extract the Mp3 from the SWF t...
I wish to play Tones in WPF from a sound card device (not system speaker).
Im disappointed to find that apart from playing a beep or a wav file WPF does not have any native way to play simple sound frequencies. ie play(freq, duration);
Looking into using DirectX DirectSound Ive hit a problem on how WPF using windows handles, as Direct X...
Hi,
I have some questions about Directsound and windows mixers.
My goal is to enumerate all microphones and be able to change the input volume of each one.
I think i'm not far from the solution, but I don't find what is wrong in my code.
Here is what I have done:
- I enumerate all input devices and get a GUID for each one
- I use a meth...
I'm trying to work out a simple DirectSound app, but the lack of .net documentation has me frustrated.
I'd like to capture the audio from one device and play it back to another. (like an audio repeater) I've got the capture part, but I don't know how to send the capturebuffer out to a secondarybuffer.
Does anyone know of a .net example...
The reason why I ask this is because I want to relate a given winmm audio device like the ones you open using waveInOpen with a directSound device.
...
Please help me make up my mind.
Allocate at the start of the application, free at the exit.
Allocate when streaming starts, free as soon as streaming stops.
Which one? Why?
In case it matters: it's a voice communication application like Ekiga. I'm allocating the buffers with DSSCL_NORMAL (the 8bit 22KHz limitation is false as far as...
Right-o, I'm working on implementing DirectSound in our Delphi voip app (the app allows for radios to be used by multiple users over a network connection)
Data comes in via UDP broadcasts.
As it is now, we go down on a raw data level and do the audio mixing from multiple sources ourselves and have a centralized component that is used to ...
My wave won't play under debug. If I hit CTRL+F5 I get a nice WAV and the Console writes out the file cursor position (buf.PlayPosition) and then the method exits when the sound is over. Under debug (when I just hit F5) there is no audio output, however the file cursor position is still increased in the console window and the method exit...
Back again with yet another DirectSound question, this one regarding the ways DirectSound Buffers can be used:
I have packets coming in over the network at approximately 30ms intervals containing audio data that is decoded into raw wav data by other parts of the application.
When the Indata event is triggered by these other pieces of c...
I want to transcode a lot of audio from its source format to PCM without resampling or messing with the sample size. I figure if Windows Media Player can play the file and it doesn't use a legacy ACM codecs it must be using DirectSound to do so (this is on Windows XP and Windows Server 2k3). So is it possible to access DirectSound from C...
Hi, first of all, I'm just a hobbyist, so I'm sorry if this is dumb question or if I'm being too naive. (It also means that I can't buy expensive libraries)
This is the situation: I'm building a simple voice chat application in C#.NET (something like Ventrilo or TeamSpeak but only for about 15 or 20 people, and running on 100Mbps LAN). ...
I want to build a .Net application for processing audio, and distribute it using ClickOnce deployment. I need access to a raw audio pipeline. Which audio library should I be using? I've heard the managed libraries for DirectSound are a dead end. I need as little as possible to be installed on the client's machine. Anything outside of the...