DirectSound is a software component of the multimedia API collection known as Microsoft DirectX. It is geared to play audio.
Questions tagged [directsound]
168 questions
0
votes
1 answer
Directsound stream synchronisation
I have a question regarding the synchronization of 2 Directsound streams.
To record and play sound I currently use Portaudio to open 2 Directsound streams.
There are 2 callback functions which are called every time the input buffer is filled and the…

Vincent Bruinink
- 11
- 2
0
votes
1 answer
How to select sound device to play sounds?
I have a webbrowser in my form, I want to choose where I want to listen the sounds.
I have 2 playback devices, Speakers and Headphones.
I want to make a combobox to select the output of the sounds of my form/app.
I was reading about NAudio and…

dkapa
- 267
- 1
- 5
- 15
0
votes
1 answer
Two questions about DirectSoundFullDuplexCreate8
I'm using DirectSoundFullDuplexCreate8 for recording and, under certain circumstances, playback under Win 7. I have a couple of questions.
One is very simple- will FullDuplex work with all audio hardware? In some cases we'll be using different…

TomJeffries
- 558
- 1
- 8
- 25
0
votes
1 answer
Exception on Resampling
When I using ResamplerDmoStream and selecting Anything except WaveOutput (e.g. WASAPI, DirectSound) I've getting below exception:
Unable to cast COM Object NAudio.DMO.ResamplerMediaComObject to interface type Naudio.Dmo.IMediaObject ...
Exception…

Deviser
- 95
- 1
- 9
0
votes
0 answers
Removing and attaching USB audio Jabra headset on Windows 7 SP1 can cause problems with network. How to investigate it?
I work on specialized voip application.
It uses TLS as signalling channel and (S)RTP as media channel in calls.
There is a audio output module written that uses DirectSound to play & capture.
Audio module is resistant to audio errors. If it detects…

Dmytro
- 530
- 4
- 18
0
votes
0 answers
Synchronize sound stream with video stream
I'm working on a video/audio conference project and i have the next problem:
I record sound with DirectSound and send through the network(multicast) everytime the audio buffer is full(aprox. 200 milliseconds) of pcm raw format.
Using the…

Mihaescu Florin
- 31
- 9
0
votes
1 answer
How to extract an MP3 from a SWF in ActionScript 2.0
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…

Todd Moses
- 10,969
- 10
- 47
- 65
0
votes
1 answer
Will DirectSound run on Windows 8?
I'm referring to DirectSound, a component of DirectX 9.0c.
I know the MediaElement is the preferred audio class but it does not provide some of the DirectSound audio function that my app needs, specifically ability to specify audio output device…

LT Dan
- 241
- 4
- 16
0
votes
1 answer
occasional new LPDIRECTSOUNDBUFFER8 bad_alloc
I am getting an occasional "C++ exception: std::bad_alloc at memory location" with the following code.
LPDIRECTSOUNDBUFFER8* ppDirectSoundBuffer;
ppDirectSoundBuffer = new LPDIRECTSOUNDBUFFER8[1];
This code is called on boot/init. I can run the app…

FunnerSoft
- 77
- 8
0
votes
3 answers
Program crashes when using Managed DirectX with .Net Framework 4.0
We are having a problem using DirectSound with the Managed DirectX dlls and the .Net Framework 4.0
The program works fine with .Net Framework 2.0 - but we have a requirement to upgrade to 4.0 to use some other components.
When the program invokes…

Mike
- 31
- 4
0
votes
1 answer
C# DirectSound DirectSoundBuffer.SetVolume E_NOINTERFACE
I am writing a DirectSound wrapper for my audio libary.
I came across directsound and it works very well. That means audio playbacks works perfectly much better than waveout and so on.
But now i have a problem.
I am trying to set the volume of the…

Florian
- 5,918
- 3
- 47
- 86
0
votes
2 answers
Does DirectSound usually support echo cancellation and noise reduction?
I'm currently using the waveInOpen set of Windows API functions to record audio for a VOIP application. I'm now being asked to add echo cancellation, and possibly noise reduction, and gain control. I know nothing about DirectSound, but while…

eselk
- 6,764
- 7
- 60
- 93
-1
votes
1 answer
Storing sounds on Python
I have been trying to get my python code to store sounds based on inputs. i am struggling to develop the code and all resources I've found online haven't been helpful. Can anyone give me some suggesttions?
I am trying to create a program that stores…

Tlhogi Dube
- 23
- 2
-1
votes
1 answer
DirectSound Wave format not being set
I have been trying to set the wave format in my program for quite some time now with no success...
it always returns false at the directsound->setFormat method... can someone pls help me out?
Posted below is the code im working on
bool…

J.Praveen Benjamin
- 141
- 1
- 1
- 7
-1
votes
1 answer
How to configure DirectSound's MaxSampleRate above 20000
I'm programming small program to output generated sound.
My sound card is capable of a 48000 or even 192000 sample rate. Its a Realtek ALC883 7.1+2 Channel High Definition Audio, and the specs can be found here.
However, DirectSound's MaxSampleRate…

Hooch
- 28,817
- 29
- 102
- 161