登录
首页 » 语音处理 » 实用录音程序

实用录音程序

于 2022-01-31 发布 文件大小:6.33 kB
0 109
下载积分: 2 下载次数: 1

代码说明:

在开始工作之前,要先介绍DirectSound录音用到的三个非常重要的对象,IDirectSoundCapture8 ,设备对象,根据你录音的设备创建的设备对象,利用该对象可以获取设备的属性。IDirectSoundCaptureBuffer8,缓冲区对象,该对象由设备对象创建,主要用来操作音频数据IDirectSoundNotify8 ,事件通知对象,该对象用来通知应用程序从缓冲区中将数据取走,写入文件保存起来。利用DirectSound录音的主要思路,就是先根据选择的录音设备创建设备对象,然后通过设备对象创建辅助缓冲区对象,开始录音的时候,设备将数据写入缓冲区,应用程序主动的从缓冲区将数据读出来写文件即可,就实现了录音功能。这里简单介绍一下dsound的通知功能,应用程序会创建一个通知对象,然后将通知对象邦定,然后设定通知位置(position),什么是通知位置呢,比如缓冲区的大小为4000字节,如果你想当数据达到缓冲区一半的时候能得到通知开始copy数据,那么此时你就可以将通知位置设定为2000,通知位置可以任意的设定,当缓冲区的数据达到你设定的位置时,就会通知应用程序将缓冲区的数据copy到文件中,缓冲区是循环利用的,当缓冲区填充满了以后,就会从头开始充填数据,所以,缓冲区就是一边读,一边写的过程。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • acm.pdf 类型: Adobe Acrobat Document 标题: 编程实现对频压缩管器(ACM)的调用
    acm.pdf 类型: Adobe Acrobat Document 标题: 编程实现对音频压缩管理器(ACM)的调用-acm.pdf type: Adobe Acrobat Document Title: Programming of Audio Compression Manager (ACM) call
    2022-02-28 18:36:16下载
    积分:1
  • Microphone recording source program
    Microphone recording source program
    2022-10-27 10:20:04下载
    积分:1
  • labview正弦扫频信号发生器
    应用背景用于产生一个正弦扫频信号,我是用来测量声音在粮食中的衰减程度,扫频信号它与噪声的相关程度比较小,接收到的波形不易失真,所以设计了这个声音发射器。关键技术产生一个正弦扫频信号,并且扫频信号的幅值,发声时间以及起始频率和终止频率可以在前面板中进行设置,通过适当的调整便可以得到一个你所需要的声音发声器
    2022-12-07 21:45:08下载
    积分:1
  • 在信号中,通常需要收集真实的
    在信号处理中,通常需要把采集信号的实时波形显示出来。 如果直接在屏幕上动态绘图的话,会出现闪烁现象,为了克服这个问题,本文采用的就是先在内存绘图,然后再拷贝到屏幕,从而实现动态绘图而不闪烁。-In signal processing, usually need to collect real-time waveform signal is displayed. If the direct dynamic graphics on the screen, then there will be blinking phenomenon, in order to overcome this problem, this paper is the first graphics memory, and then copied to the screen in order to achieve dynamic graphics without blinking.
    2023-09-08 00:40:02下载
    积分:1
  • DirectShow频采集
    DirectShow音频采集:采用DirectShow库进行音频采集/录制,很好的代码,可以很方便的当成一个单独模块移植 到其他项目中,拿出来与大家分享。
    2022-05-15 16:54:46下载
    积分:1
  • FLASHMX游戏一个。
    FLASHMX游戏一个。-FLASHMX a game.
    2022-10-25 06:55:03下载
    积分:1
  • convolution of the image with a bank of even
    convolution of the image with a bank of even-symmetric linear filters followed by half-wave rectification to give a set of responses
    2022-01-28 15:20:02下载
    积分:1
  • libdca是解码DTS相干声学流免费图书馆。代码我..
    libdca is a free library for decoding DTS Coherent Acoustics streams. The code is written by Gildas Bazin and was based on the a52dec project. It is released under the terms of the GPL license. The DTS Coherent Acoustics standard (ETSI 102 114 v1.2.1), as published by the ETSI, is available here (http://pda.etsi.org/pda/queryform.asp).-libdca is a free library for decoding DTS Co. Herent Acoustics streams. The code is written b Gildas y Bazin and was based on the a52dec projec t. It is released under the terms of the GPL licen se. The DTS Coherent Acoustics standard (ETSI 1 02,114 v1.2.1), as published by the ETSI, is available here (http :// pda.etsi.org/pda/queryform.asp).
    2022-06-28 19:20:21下载
    积分:1
  • flashmx计算器一个
    flashmx计算器一个-flashmx a calculator
    2023-02-13 02:30:03下载
    积分:1
  • 利用Visual C++实现了频数据信号采集,可以显示波形、可采集传感器等非频信号,能够实时显示等。对于数字媒体专业利用VC学习有很大的入门引导作用。...
    利用Visual C++实现了音频数据信号采集,可以显示波形、可采集传感器等非音频信号,能够实时显示等。对于数字媒体专业利用VC学习有很大的入门引导作用。-The use of Visual C++ implementation of the audio data signal acquisition, can be displayed waveform can be collected sensors and other non-audio signals, real-time displays. For digital media professionals to learn the use of VC has a great entry-guiding role.
    2022-10-16 17:35:03下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载