Re: help!!! problem with DirectSoundFullDuplexCreate,it always fail,why
- From: "Chris P. [MVP]" <msdn@xxxxxxxxxxxx>
- Date: Thu, 8 Jun 2006 10:29:56 -0400
On 7 Jun 2006 19:52:42 -0700, zhyuwang wrote:
hi,everybody
I want to create a duplex buffer.But DirectSoundFullDuplexCreate
often fail ! it is exhuasting me now! I appreciate your help.
This is My source code:
What it the error code returned? Error codes are you friend, look it up
with DXErr.exe.
Not that it should make a difference, but I always use Instance values of
GUID_DSCFX_MS_AEC, GUID_DSCFX_MS_NS instead of the system default.
Remove the DSBCAPS_CTRLVOLUME flag, I don't believe this is supported.
It's not necessary to pass the DSBCAPS_CTRLPOSITIONNOTIFY flag, you can
still set notifications.
Use 1 channel, 16000Hz @ 16 bit. This system will use that rate
internally.
--
http://www.chrisnet.net/code.htm
http://www.avdevforum.com/AV
.
- References:
- Prev by Date: Re: Getting Started with DirectX Audio
- Next by Date: Re: IBasicAudio::put_Volume cutting of sound at -2000
- Previous by thread: help!!! problem with DirectSoundFullDuplexCreate,it always fail,why
- Next by thread: Re: CPullPin::Receive() being called too early.
- Index(es):
Relevant Pages
|