2 Replies - 746 Views - Last Post: 10 July 2009 - 01:14 AM Rate Topic: -----

#1 OMG  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 09-July 09

Wav Recording in C++

Posted 09 July 2009 - 07:36 AM

Hi,

I'm trying to write a C++ app (as it needs to be intefrated into a bigger program late on) that will start recording from the microphone when the user clicks a button, stop when the user clicks a button, and then export this recording as a .wav file.

I have something similar written in C#(which I can post if you want), using SAPI 5.3, but unfortunately, their documentation doesn't really deal with C++.

What I'm looking for is a point in the right direction, a puch to get me going, or even to be told that I'm barking up the wrong tree completely.

Thanks,

Richard

Is This A Good Question/Topic? 0
  • +

Replies To: Wav Recording in C++

#2 mblazek  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 19
  • Joined: 05-March 09

Re: Wav Recording in C++

Posted 09 July 2009 - 08:37 AM

This depends on your skill set and what you are willing to learn.

Sounds like you will eventually have to use one of the following: win32 API, MFC, Visual C++

Once you have figured those out for your base GUI then you can communicate with the microphone. Is the Microphone assumed to be already connected to the computer or do you need to have a driver for it? Are you creating the mirophone? If you are assuming that one is already on the computer then I am sure you can use the win32 API.

Start looking at those places to start and begin writting the code.
Was This Post Helpful? 0
  • +
  • -

#3 jeff666  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 193
  • Joined: 30-December 08

Re: Wav Recording in C++

Posted 10 July 2009 - 01:14 AM

You don't need SAPI.
Just use Win32 MM (Multimedia) apis, see MSDN.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1