CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    55

    Microphone Sound Recording Using DirectX???

    Hi all,


    I want to record sound produced by microphone using Direct X

    I have a dialog based application and want to listen playback sound of microphone .... sort of ECHO

    Can anyone of you guide me how to do it in VC++ ???


    Regards,
    Sarah

  2. #2
    Join Date
    Oct 2002
    Location
    Italy
    Posts
    324

    Re: Microphone Sound Recording Using DirectX???

    Look at the CaptureSound and PlaySound examples in the Direct X SDK.
    Regards,
    Marco Era
    www.marcoera.com

    Latest post on my blog: Back to the Amiga's times

  3. #3
    Join Date
    Aug 2005
    Posts
    55

    Re: Microphone Sound Recording Using DirectX???

    i have checked it but i want different Scenrio

    I dont want to record the voice in a wave file and then play it through a button

    i want an application that includes a button and as i click it, it directly captures the sound of microphone


    Means as i utter the words i am able to hear them after some time delay ... means sort of echo , or as soon as i utter the words i hear them with no delay

    Probably it may use SoundCard directly or Wave Api's

    Can anyone help me how can i proceed?


    Can anyone provide me a code snippet?

  4. #4
    Join Date
    Oct 2005
    Posts
    526

    Re: Microphone Sound Recording Using DirectX???

    using waveIn* (such as waveInOpen) for capture voice from microphone
    may be more complicated than using Dx,but it can run without Dx.
    if you sure want to use that I can give you my sample.

  5. #5
    Join Date
    Aug 2005
    Posts
    55

    Re: Microphone Sound Recording Using DirectX???

    I have browsed many other related areas and now finally have decided to use Wave APIs

    I shall be thankful if provide me code sample

    Moreover one thing more

    I want to play a wave file using Wave API how will i proceed??? how will i load the resource and then play it?

    Regards,
    Sarah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured