Jump to content

  • Log In with Google      Sign In   
  • Create Account

IDirectSoundCaptureBuffer8::Start Makes Everything Quiet


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Orangeatang   Members   -  Reputation: 532

Like
0Likes
Like

Posted 06 March 2013 - 07:42 AM

Hi there,

 

I'm using DirectSound to read in data from the default microphone and hand it off to Wwise (AudioKinetic's sound engine).

 

HRESULT result = DirectSoundCaptureCreate8(&DSDEVID_DefaultVoiceCapture, &myDirectSoundCapture, NULL);

...

// Generate the capture buffer description
DSCBUFFERDESC bufferDescription;
bufferDescription.dwSize	= sizeof( DSCBUFFERDESC );
bufferDescription.dwFlags	= 0;
bufferDescription.dwBufferBytes = myWaveFormat.nAvgBytesPerSec;
bufferDescription.dwReserved	= 0;
bufferDescription.lpwfxFormat	= &myWaveFormat;
bufferDescription.dwFXCount	= 0;
bufferDescription.lpDSCFXDesc	= NULL;

LPDIRECTSOUNDCAPTUREBUFFER captureBuffer;

HRESULT result = myDirectSoundCapture->CreateCaptureBuffer( &bufferDescription, &captureBuffer, NULL );
if( SUCCEEDED(result) )
{
  result = captureBuffer->QueryInterface( IID_IDirectSoundCaptureBuffer8, (LPVOID*)&myCaptureBuffer )
}
 

 

 

After initialization, when I actually start reading in data from the microphone the sound levels in Windows (everything in windows) drops by about 15db... you can barely hear anything. At the moment I call myCaptureBuffer->Start( DSCBSTART_LOOPING )

 

Anyone experienced this before or know of a solution?


Edited by Orangeatang, 06 March 2013 - 07:43 AM.


Sponsor:

#2 Orangeatang   Members   -  Reputation: 532

Like
0Likes
Like

Posted 06 March 2013 - 09:01 AM

I've tried changing the device that I'm connecting to:

 

DSDEVID_DefaultCapture the sound levels are fine but I'm getting feedback coming through the headset (despite the fact I'm not outputting any audio)

* GUID_NULL the same thing as DSDEVID_DefaultCapture



#3 Orangeatang   Members   -  Reputation: 532

Like
0Likes
Like

Posted 06 March 2013 - 09:42 AM

Ah - when you connect to DefaultVoiceCapture, there is a setting in Windows that reduces all other audio by 80%






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS