CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old August 1st, 2005, 04:01 AM
    elaine_loo elaine_loo is offline
    Junior Member
     
    Join Date: Aug 2005
    Posts: 14
    elaine_loo is an unknown quantity at this point (<10)
    Question How to control the microphone volume using DirectX C++?

    Hi everyone,

    I am using Visual C++.net to write a program to control the microphone. I do not know which interfaces to use and how to go about doing it.

    Can anyone help me by giving me a headstart? Looking forward for your reply. Thank you.

    Best Regards,
    Elaine
    Reply With Quote
      #2    
    Old August 1st, 2005, 04:05 AM
    philkr philkr is offline
    Senior Member
     
    Join Date: Jul 2005
    Location: Germany
    Posts: 1,194
    philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)
    Re: How to control the microphone volume using DirectX C++?

    What do you mean by 'control the microphone'. If you want to record something, in windows API you would use the waveIn... functions.
    __________________
    Please don't forget to rate users who helped you!
    Reply With Quote
      #3    
    Old August 1st, 2005, 04:16 AM
    elaine_loo elaine_loo is offline
    Junior Member
     
    Join Date: Aug 2005
    Posts: 14
    elaine_loo is an unknown quantity at this point (<10)
    Red face Re: How to control the microphone volume using DirectX C++?

    Hi philkr,

    What i mean is controlling the volume of the microphone. Can i use DirectX? How do I record the voice from the microphone?

    Thank you.

    Best Regards,
    Elaine
    Reply With Quote
      #4    
    Old August 1st, 2005, 05:22 AM
    philkr philkr is offline
    Senior Member
     
    Join Date: Jul 2005
    Location: Germany
    Posts: 1,194
    philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)philkr is a splendid one to behold (750+)
    Re: How to control the microphone volume using DirectX C++?

    To set the playback volume you can use waveOutSetVolume(). Unfortunately there is no waveInSetVolume() function, so in order to set recording volume you will have to use the mixer... API. http://msdn.microsoft.com/library/en..._functions.asp
    __________________
    Please don't forget to rate users who helped you!
    Reply With Quote
      #5    
    Old October 24th, 2008, 02:00 AM
    Shilpa15jain Shilpa15jain is offline
    Junior Member
     
    Join Date: Oct 2008
    Posts: 1
    Shilpa15jain is an unknown quantity at this point (<10)
    Re: How to control the microphone volume using DirectX C++?

    Quote:
    Originally Posted by philkr
    To set the playback volume you can use waveOutSetVolume(). Unfortunately there is no waveInSetVolume() function, so in order to set recording volume you will have to use the mixer... API. http://msdn.microsoft.com/library/en..._functions.asp

    Thanks for you all. I can set the volume of my microphone , using mixer api.
    But I want to show the volume level of captured audio in slider.As if captured audio is loud this slider will be at high automatically, and if
    captured audio is low this slider will go at low automatically and slider will go up and down according to volume level of capturing audio during speaking in microphone.

    Can anybody please tell me which apis I have to use to implement it.I am unable to find it out.

    Thank u very much in advance.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 06:16 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009