Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8671473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:57:33+00:00 2026-06-12T18:57:33+00:00

I’ve stumbled through some code to enumerate my microphone devices ( with some help

  • 0

I’ve stumbled through some code to enumerate my microphone devices (with some help), and am able to grab the “friendly name” and “clsid” information from each device.

I’ve done some tinkering with GraphEd.exe to try and figure out how I can take audio from directshow and write it to a file (I’m not currently concerned about the format, wav should be fine), and can’t seem to find the right combination.

One of the articles I’ve read linked to this Windows SDK sample, but when I examined the code, I ended up getting pretty confused at how to use that code, ie. setting the output file, or specifying which audio capture device to use.

I also came across a codeguru article that has a nicely featured audio recorder, but it does not have an interface for selecting the audio device, and I can’t seem to find where it statically picks which recording device to use.

I think I’d be most interested in figuring out how to use the Windows SDK sample, but any explanation on either of the two approaches would be fantastic.

Edit: I should mention my knowledge and ability as a win32 COM programmer is very low on the scale, so if this is easy, just explain it to me like I’m five, please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T18:57:34+00:00Added an answer on June 12, 2026 at 6:57 pm

    Recording audio into file with DirectShow needs you to build the right filter graph, as you should have figured out already. The parts include:

    1. The device itself, which you instantiate via moniker (not CLSID!), it is typically PCM format
    2. Multiplexer component that converts streams into container format
    3. File Writer Filter that takes file-compatible stream and writes into a file

    The tricky moment is #2 since there is not standard component available. Windows SDK samples however contains the missing part – WavDest Filter Sample. Building it and making it ready for use, you can build a graph that records from device into .WAV file.

    Your graph will look like this, and it’s built easily programmatically as well:

    enter image description here

    I noticed that I have a variation of WavDest installed with Google Earth – for the case you have troubles building it yourself and you will be looking for prebuilt binary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a view passing on information from a database: def serve_article(request, id): served_article
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to loop through a bunch of documents I have to put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.