all groups > vj# > february 2005 >
You're in the

vj#

group:

Need help with DirectSound.


Need help with DirectSound. Avid J# Programmer
2/25/2005 6:55:06 PM
vj#:
I'm having trouble accessing the DSoundHelper object. I need to access the
Guid variable
Microsoft.DirectX.DirectSound.DSoundHelper.DefaultVoiceCaptureDevice When i
try to compile, i get this error: 'D:\My Documents\Visual J# .NET
Projects\test\Class1.jsl(149): Cannot resolve name
'DSoundHelper.DefaultVoiceCaptureDevice''. its as if the compiler doesn't
even recognize it =(

I do have the Microsoft.DirectX.DirectSound referenced in the solution
explorer, and i can seem to access everything else inside the
Microsoft.DirectX.DirectSound package just fine. It seems as if there is a
bug in the library, or in VS 2k3 even...

The version of DirectSound dll that i have is 1.0.900.0.

And if you havn't already guessed, i'm trying to get input from the
microphone into the computer... if there is an easier way to do this, i would
very much appreciate some help, or atleast a reason why i can't seem to
access Microsoft.DirectX.DirectSound.DSoundHelper.DefaultVoiceCaptureDevice,
or anything else inside DSoundHelper, for that matter. Thanks for your help
--
Re: Need help with DirectSound. Avid J# Programmer
2/26/2005 12:21:01 PM
Thanks for the heads up Lars-Inge, its a shame i have to go through C# though
=( hopefully this is a recognized bug, and will be fixed in a future version
of J#/Managed DX. I'd like full Managed DX capabilities in J#, if thats even
possible (which it should).

As for writing a C# library for this function, could you give me a simple
walkthrough as to how it could be done? Also, if i need to use a C# library,
can it be possible to merge it with my J# code, and therefore just have the
one exe file when compiling (no satillite DLLs)?

Also, would there be another way to record someone's voice through the
microphone, other then DirectSound? I know DX would be the way to go, but
i've heard of people making dll calls to the winmm dll file... anyone know
how that would work? Thanks for all your help

[quoted text, click to view]
Re: Need help with DirectSound. Lars-Inge Tønnessen [VJ# MVP]
2/26/2005 8:25:48 PM

Me too, Avid.


I have never been able to access anything in the
Microsoft.DirectX.DirectSound.DSoundHelper namespace with J# (version
1.0.2902.0).


Works fine in C#.

Make a C# library with the DirectX calls.


Regards,
Lars-Inge Tønnessen

Re: Need help with DirectSound. Avid J# Programmer
3/10/2005 11:37:12 AM
I finally got it to work, i can now use the winmm dll calls to record voice
through the microphone, and more!

[quoted text, click to view]
AddThis Social Bookmark Button