Click here to Skip to main content
Click here to Skip to main content

recording and play using Waveform audio interface

, 10 Jun 2005
Rate this:
Please Sign up or sign in to vote.
This article allow you to recording and replay.


At first time,this is update.This project introduces how to use waveInopen and waveOutopen to recording and play the waveform audio.This is MFC application using VC++.The purpose is to help to understand waveform audio function,so that i don't build completely a program recording.

What will you find in my demo:

1. I use C to write some function:

    DoRecord(): to begin record.

    DoRecord_end(): to end record

    DoPlay(): to play the recording voice.

2. In function DoRecord():

    I show you how to use WaveInOpen with CALLBACK_FUNCTION waveInproc. I also show you how to use waveInPrepareHeader,waveInAddBuffer and waveInStart to begin recording your voice.Specially, i introduce how to use waveInproc.

3. In fucntion DoPlay():

    I show you how to use WaveOutOpen,waveOutPrepareHeader,waveOutWrite.


  1) Click Record to begin recording your voice.

  2) Click Record_end when you finish your recording.

  3) Click Play to hear your voice.


  I will add some function to allow to save your recording to a file wav. And some other function to allow to choose the format of wave audio.

  I will show some other technique to use CALLBACK like CALLBACK_EVENT,CALLBACK_WINDOW or CALLBACK_THREAD to process the voice recording.

  I will add some other function socket or rtp so you can transfer your recording or to voice chat with other.



This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Vietnam Vietnam
No Biography provided

Comments and Discussions

QuestionCrashed on Windows7 [modified] Pinmemberusb_usb24-Apr-12 21:03 
GeneralBuffer length Pinmembermohitagandotra7-Dec-10 5:03 
GeneralMy vote of 4 Pinmemberdeexian20-Oct-10 7:02 
Generalvery nice PinmemberBearAl19-Apr-09 17:25 
QuestionCan i Play the Audio Directly. PinmemberEakalavya10-Apr-08 22:50 
GeneralIssue with 8000 sample per second PinmemberEakalavya2-Apr-08 7:57 
QuestionSave problem Pinmemberkeggy8531-Jul-07 7:14 
Questionface problem to run Pinmemberamit chatter23-Feb-07 19:11 
Generalrecord voice on a website PinmemberJanang29-Jan-07 16:59 
GeneralAudio saving PinmemberNewbee0724-Jan-07 4:46 
GeneralRe: Audio saving PinmemberGustavo_Cruz18-May-07 8:29 
GeneralRe: Audio saving Pinmemberburgales25-Jun-07 15:47 
GeneralRe: Audio saving Pinmembergeneral_era18-May-08 23:09 
Generalhi ! i saw ur code it was excellent !!! PinmemberMember #349259217-Jan-07 23:08 
GeneralExcellent Code Pinmemberpgien27-Aug-06 12:57 
Generalrecording and sending .WAV FILE PinmemberREU22-Sep-05 6:36 
Generalsaving n sending a .wav file PinmemberNilegna29-Jul-05 1:27 
GeneralRe: saving n sending a .wav file PinsussAnonymous29-Jul-05 5:12 
GeneralRe: saving n sending a .wav file Pinmemberhobin092023-Mar-06 19:46 
GeneralNot work on PocketPC Pinmemberbeichuang21-Jun-05 5:53 
GeneralRe: Not work on PocketPC Pinmembernghiath21-Jun-05 11:45 
GeneralRe: Not work on PocketPC Pinmemberbeichuang23-Jun-05 1:11 
GeneralRe: Not work on PocketPC Pinmembercherrychia15-Jun-06 21:37 
GeneralRe: Not work on PocketPC Pinmemberzhumanli19-Jun-07 12:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150414.1 | Last Updated 10 Jun 2005
Article Copyright 2005 by nghiath
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid