recording and play using Waveform audio interface
2008-02-21 11:04
381 查看
Download demo project - 5358 Kb
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.
2) Click Record_end when you finish your recording.
3) Click Play to hear your voice.
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.
A list of licenses authors might use can be found here
Introduction
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.
Demo:
1) Click Record to begin recording your voice.2) Click Record_end when you finish your recording.
3) Click Play to hear your voice.
Future:
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.
License
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
相关文章推荐
- iOS Programming 101: Record and Play Audio using AVFoundation Framework
- 论文笔记[8] Seismic Waveform Classification and First-Break Picking Using CNN
- P Laguna/ A database for evaluation of algorithms for measurement of QT and other waveform interval
- Using DirectSound to Play Audio Stream Data
- CETK Waveform Audio Driver Test测试Case描述
- [Angular2 Form] Create and Submit an Angular 2 Form using ngForm
- Waveform Audio 驱动(Wavedev2)之:WAV API模拟
- Printing out your W2 Form using C# and .NET
- Waveform Audio
- 音乐频谱显示 FFT of waveIn audio signals. Free source code and programming help
- Waveform Audio 驱动(Wavedev2)之:WAV API模拟
- Using HTML5 audio and video
- Waveform Audio[译]
- Waveform Audio 驱动(Wavedev2)之:WAV 驱动解析
- Waveform Audio 驱动(Wavedev2)之:WAV API模拟
- Waveform Audio 驱动(Wavedev2)之:WAV 驱动解析
- PCM Audio and Wave Files
- Screen Capturing a Form in .NET - Using GDI and GDI+
- DirectX Audio and DirectShow to play the music
- Printing out your W2 Form using C# and .NET