capture audio

Hi!

REALLY sorry to post this here but didnt know where else!

is there a way to capture audio from the sound card

I am trying to use directX but the sample I have seen is hard to understand unfortuantly :(

How do I capture audio either using DirectX or some other method I want to capture it to a normal wav file

Thanks! :-)




Answer this question

capture audio

  • Dan_Seattle

    yeah

    Tanks i have done same thing

    But problem is On system where DirectX SDK is not installed my programm or dll is not able to run

    what to do



  • bunschoten

    You should be aware that if you use WME and you are planning on distributing your application you need to fill out a license form. Check the licensing center on the Windows Media website for more information.

  • Sans

    they have to install the directX redistributional pack.

  • Chadk

    You should take a look at the Windows Media Encoder SDK.

    http://msdn.microsoft.com/library/en-us/wmencode/htm/usingadeviceasasource.asp

    Good Luck.

  • katarn85

    Thanks mate, ill check it out!

  • someoneontheinternet

    ah! didnt think you could do it with that..

    I will give that a bash! but if there is any other method, please post them!

    Thing is, I will be retrieving the streams of the stuff I want to record... which can be of various formats....wonder if i can still do this using WME

     

    so for example a stream maybe, unfortunatly, a - dare i say it - winamp stream... so that will be played through the soundcard, i wonder if WME can capture any audio playing on the soundcard...



  • MannyH

    Hello

    I m trying same thing do u have done it

    if yse then please help me .

    because i do have same problems as you had.

    Thanks ! :-)



  • Archan Nair

    I don't have a VB.NET example, I code in C# but do some VB.NET stuff to help out here in the forums. Take a look at the directsound examples when you install and run the DirectX Managed SDK. There are examples there of how to capture audio in C# and VB.NET and that was how I managed to capture audio

  • Gad D Lord

    how about posting a vb.net code example of how you captured sound
  • Be_Ta

    Thanks!

     

    well it will be for personal use however if i decide to distribute the app i will fill out the form of course, thank-you for reminding me! :-)

    I also cannot find a way of capturing audio looking at the examples and going through the classes! :(



  • TimBW

    Use the Windows MCI Command Interface. You can easily do playback and recording of sounds and save as a .wav file.

    I have a tutorial on my website to show you how to use the interface and customize to get it to do almost anything you want.

    After the initial learning curve you should pick it up quite easily.

    My site is: http://www.vbcodesource.com or http://www.vbcodesource.info (Beta Version)

    Hope this leads you in the direction you want :)


              Jason


  • Christopher McGinnis

    as I am figuring out the functionality of the application, i think i would not be able to use WME unfortunatly :(

    reason being:

    1) can't find a way to record audio playing

    2) audio must be saved as raw wav format

    is there any other way of recording audio in C# using direct x or something else (preferably MS sdk's/products)



  • Potluri

    yeh I found a way and modified it highly. pretty much followed the example of the directx sound capture and just take the parts I need and modified it to what I need.

  • capture audio