Re: help!!! problem with DirectSoundFullDuplexCreate,it always fail,why



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
.



Relevant Pages

  • Re: Creating Custom Printer Banner Page in DCPS?
    ... > source code which I would hope is human readable) would not add a lot ... was to make it hard for people to customize their flag pages. ... Paul Anderson ...
    (comp.os.vms)
  • Re: CryptUnprotectData in DPAPI returning 0x8009000b - undocumented
    ... The "machine" flag is ignored by CryptUnprotectData. ... problem with the user password such as the user password has changed ... since the CryptProtectData function was called and the automatic recovery ... This error code is not typically returned when the "machine" flag was passed ...
    (microsoft.public.platformsdk.security)
  • Re: Favorites Problem
    ... If you set that registry flag, I think it will just work for registry ... If you search the IESample folder for instances of "favorites" ... > or do I need to change my IE sample source code? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: media may have changed error
    ... system will send an error code to the calling process, ... After ejecting the disk and then re-inserting ... sort of global flag is being set to let me know ...
    (microsoft.public.win32.programmer.kernel)
  • Re: 4X4 matrix keypad-74c922- source code
    ... im trying to interface a 4x4 matrix keypad using a 74c922 decoder to an ... i would appreciate some pointers in how to create d source code that will ... happens at least twice during the component-selected debounce period. ... Don't read data while the flag is set. ...
    (sci.electronics.basics)