recording and play using Waveform audio interface
来源:互联网 发布:win10动态壁纸软件 编辑:程序博客网 时间:2024/05/16 02:44
- Download demo project - 5358 Kb
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
- recording and play using Waveform audio interface
- Managing Waveform-Audio Recording
- How to Draw Waveform While Recording Using NAudio and WPF
- Recording with a Waveform-Audio Device
- Waveform Audio
- iOS Programming 101: Record and Play Audio using AVFoundation Framework
- Audio Recording
- Waveform Audio[译]
- Waveform Audio[译]
- Waveform Audio[译]
- Simple audio recording program
- Recording MP3 Using Only HTML5 and JavaScript (Recordmp3.js)
- Transmitting Audio and Video using RTP
- DirectX Audio and DirectShow to play the music
- Audio streaming and caching in iOS using AVAssetResourceLoader and AVPlayer
- Core Audio I/O File Recording
- Recording and Performance testing Android
- Recording and playing back data
- 去掉flash载入时的虚线框
- Sound recording and encoding in MP3 format.
- Simple audio recording program
- 网络驱动程序接口规范NDIS
- CSS文本样式
- recording and play using Waveform audio interface
- StretchBlt用法
- How to play and record sounds
- 海南英语111——Part 5: Sentences about Language 谈论语言
- NetBeans vs Eclipse 之性能参数对比
- SUSE10.3安装总结
- 在IE7 中遇到的几个小问题,有解决方案(转)
- 网页文字竖排显示有办法
- DirectShow系统概述