Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can we capture sound using c++?

Can we capture sound using c++?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Markandaiya Harsh
    wrote on last edited by
    #1

    hi, my question is can we capture sound using c++? if yes how do we do that?? please help me!!

    H I 2 Replies Last reply
    0
    • M Markandaiya Harsh

      hi, my question is can we capture sound using c++? if yes how do we do that?? please help me!!

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Yes you can do it with MCI's (MCI_RECORD). A Simple Voice Recording Application Using MCI[^].

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      S M 2 Replies Last reply
      0
      • H Hamid Taebi

        Yes you can do it with MCI's (MCI_RECORD). A Simple Voice Recording Application Using MCI[^].

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        S Offline
        S Offline
        ShiXiangYang
        wrote on last edited by
        #3

        MCI_OPEN_PARMS mciOpen; mciSendCommand(NULL,MCI_OPEN,MCI_OPEN_ELEMENT,(DWORD)(LPVOID&mciOpen); DWORD m_waveID=mciOpen.wDeviceID; MCI_RECORD_PARMS mciRecord; mciRecord.dwFrom=0; mciSendCommand(m_waveID,MCI_RECORD,MCI_FROM,(DWORD)(LPVOID)&mciRecord);

        H 1 Reply Last reply
        0
        • S ShiXiangYang

          MCI_OPEN_PARMS mciOpen; mciSendCommand(NULL,MCI_OPEN,MCI_OPEN_ELEMENT,(DWORD)(LPVOID&mciOpen); DWORD m_waveID=mciOpen.wDeviceID; MCI_RECORD_PARMS mciRecord; mciRecord.dwFrom=0; mciSendCommand(m_waveID,MCI_RECORD,MCI_FROM,(DWORD)(LPVOID)&mciRecord);

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Thank you but I need to use it or see it! :-D

          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

          1 Reply Last reply
          0
          • M Markandaiya Harsh

            hi, my question is can we capture sound using c++? if yes how do we do that?? please help me!!

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            He wrote this reply for you. Please reply to his message, not mine! http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2957301[^] - Iain. ------------------------- MCI_OPEN_PARMS mciOpen; mciSendCommand(NULL,MCI_OPEN,MCI_OPEN_ELEMENT,(DWORD)(LPVOID&mciOpen); DWORD m_waveID=mciOpen.wDeviceID; MCI_RECORD_PARMS mciRecord; mciRecord.dwFrom=0; mciSendCommand(m_waveID,MCI_RECORD,MCI_FROM,(DWORD)(LPVOID)&mciRecord); Reply·Email·View Thread·PermaLink·Bookmark

            Codeproject MVP for C++, I can't believe it's for my lounge posts...

            1 Reply Last reply
            0
            • H Hamid Taebi

              Yes you can do it with MCI's (MCI_RECORD). A Simple Voice Recording Application Using MCI[^].

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              M Offline
              M Offline
              Markandaiya Harsh
              wrote on last edited by
              #6

              Sir I wasn't able to understand the code u proposed to me can u please give me a simpler code or can u explain me that code (mci)....sir please guide me. thank you .

              H 1 Reply Last reply
              0
              • M Markandaiya Harsh

                Sir I wasn't able to understand the code u proposed to me can u please give me a simpler code or can u explain me that code (mci)....sir please guide me. thank you .

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                That code was easy first you need to set your device (waveaudio) and then you need to open it for use then you need to set MilliSeconds that you want to record and then you send MCI_RECORD to your device and finaly you need to save ypur file with set its name(MCI_SAVE).

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups