Capturing microphone in Managed DirectX 10 (2.0.0.0)

Hi all,

I was wondering if anyone has been able to record microphone input with managed directx 10 (i'm using c# but any language will help!).

Previously it was done in DirectSound, using a CaptureBuffer and an elusive "Read()" function (now missing in 2.0.0.0). I have read a number of times that DirectSound is to be replaced by Xact but it's strange that everything I need to record sounds is available except this Read() function..

So my question is, is this now done through Xact or still through CaptureBuffer but without the use of Read(). If it's done via Xact, does anyone have any good tutorials on recording through Xact (i have searched, but haven't found anything at all yet)? If it's done via the CaptureBuffer still, does anyone have any hints?

cheers!
trav

[799 byte] By [travio_peth] at [2008-2-4]
# 1

First thing to note is that XACT is not a replacement for DirectSound in most senses - it only supports some of dsound's functionality; in fact it works at a much higher level than dsound, parsing and streaming complex content files automatically, whereas dsound focuses more on actually processing audio and sending it to a driver. XACT has no support for audio capture.

I'm not sure what the status of dsound capture is in MDX 10; I'll pass on the question to the appropriate people.

For what it's worth, in unmanaged DirectX you can use the C++ method IDirectSoundCaptureBuffer::Start to capture audio.

Dugan Porter - Game Audio Team - Microsoft
This posting is provided "as is" with no warranties, and confers no rights

DuganPorter-Microsoft at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...
# 2

travio_peth wrote:
Hi all,

I was wondering if anyone has been able to record microphone input with managed directx 10 (i'm using c# but any language will help!).

Microsoft has not released a "Managed DIrectX 10" library, so I'm not sure what you're referring to.

DavidWeller-MSFT at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: Audio / XACT...