Win32 Capture problems (was Re: [Openal] Message Sent to stdout)
Daniel PEACOCK
dpeacock at creativelabs.com
Tue Jul 31 18:27:40 PDT 2007
Hi All,
I've found and fixed a couple of Capture related bugs that I think may have
been causing the failure to find a match for the default capture device
(reported by Christopher), and also why on some machines capture failed to
work at all (reported by Laszlo).
I think the inability to match the default capture device name to one of
the enumerated capture device names is caused by a failure of the
waveInMessage call used to get the default waveIn device identifier. That
code is only used when the dsound.dll on the system does NOT support
Capture Enumeration (i.e a fairly old dsound.dll - quite likely on a
Win98SE machine!). If that call failed, the result would be garbage in the
default string name - which wouldn't match anything!
The failure to open a capture device on some soundcards is, I think,
related to the use of the WAVE_FORMAT_DIRECT flag being passed to the
waveInOpen call. If the waveInOpen calls fails the first time, I call it
again without the WAVE_FORMAT_DIRECT flag (meaning that the ACM will be
used to convert the format between what ever the device does support and
the requested format).
If anyone wants to try out an interim build with these fixes then send me a
private email.
Thanks,
Dan
Creative Labs, Inc.
Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message, or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete it
and contact the sender immediately. Thank you.
"Christopher
Fitzgerald"
<solaryn at hotmail. To
com> dpeacock at creativelabs.com
cc
07/30/2007 04:19 openal at opensource.creative.com
PM Subject
Re: [Openal] Message Sent to stdout
>Hi Christopher,
Greetings,
>Thanks for the message. I've removed the rogue printf statement (I think
>it must been put their while debugging something) and checked it in.
No problem.
>The BuildDeviceList function tries to find out about your system's audio
>input and output devices so that it can respond to queries about the
>available playback and capture devices, and the calls to open a device.
>In theory the list of capture devices (pointed to by g_pCaptureDeviceList)
>should contain the name of the 'default capture device' as determined by
>the function GetDefaultCaptureDeviceName - but for some reason that isn't
>the case on your machine - hence the warning.
While it has yet to be a show stopper, I think the issue warrants some
investigation. Let me know what I can do to aid you in determining the
cause of the problem.
For starters, the systems that produced the message are running Windows 98
SE using Creative SB Live! Value audio boards. Chances are it has to do
with the use of Windows 98 SE.
>Dan
>Creative Labs, Inc.
Regards,
- Christopher Fitzgerald
_________________________________________________________________
See Fireworks On Live Image Search
http://search.live.com/images/results.aspx?q=Fireworks&mkt=en-ca&FORM=SERNEP
ForwardSourceID:NT000450D6
More information about the Openal
mailing list