音频播放器和录音机 [英] Audio Player and recorder
本文介绍了音频播放器和录音机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用C ++构建音频播放器和记录器.一个音频设备可以同时播放和记录波形数据吗?
I am building an audio player and recorder in C++. Can one audio device simultaneously play and record wave data??
推荐答案
检查此源: ^ ]
通过这些类,可以同时记录和播放声音.可以监视连续的声音,并且可以在适当的队列中播放声音.例如,也可以将简单的声音识别功能放入CRecordSound中.多线程处理允许在进行录音和播放时执行其他操作.同样,可以将录制的声音保存到WAV文件中并进行播放."
Check this source: VC++ Example: Classes to Record, Play, and Save WAV File to disk[^]
"With these classes, sound can be both recorded and played at the same time. Continuous sound can be monitored and, upon appropriate queues, sound can be played back. Simple sound recognition could also, for instance, be put into CRecordSound. The multithreading allows other actions to take place while sound recording and playback go on. As well, recorded sound can be saved to WAV files and played back."
如果您是指硬件,则可以.
If you mean the hardware, then yes.
这篇关于音频播放器和录音机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文