录制音频文件的应用 [英] Recording audio file application

查看:87
本文介绍了录制音频文件的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我有一个基于Dialog的应用程序,
一个编辑框来获取要播放的wav文件的文件路径.
我可以通过一个名为Browse的按钮获得文件路径.当我单击浏览"时,将打开一个对话框,其中包含计算机上存在的wav文件.通过选择它,然后单击播放"时,它将开始播放wav文件.
到目前为止,我做得很好.
真正的问题是什么
我还有2个用于记录和停止记录的按钮.
当我单击录制"按钮时,正在播放的文件(当我单击播放"按钮时)
应该开始记录到切片时间,并且当我单击停止按钮时,它应该保存在我的计算机中.
仍应关闭应用程序才能播放.
谁能帮我举一个例子解决我的问题?

hi...
I am having a Dialog based application with
one edit box to get the filepath of a wav file that is to be played.
the file path i can get through one button called browse.when i click on browse a dialog will be opened with th wav files that are present on my computer.by select it and when click on play it start playing the wav file.
upto here i did good.
the real problem is what
i am having 2 more buttons for record and record stop.
when i click on record button the file that is palying(when i click on play boutton)
that should start recording to a slice time and it should be save in my computer when i click on stop button.
playing should be done still the application gets closed.
can any one help me with an example for my problem

推荐答案

您可以使用多媒体SDK函数,例如waveOutOpen,waveInOpen,waveInPrepareHeader,waveInAddBuffer,waveInStart ...
波形音频MSDN [
You can use multimedia SDK functions such that waveOutOpen, waveInOpen, waveInPrepareHeader, waveInAddBuffer, waveInStart...
Waveform audio MSDN[^]


这篇关于录制音频文件的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆