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

实用录音程序

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

代码说明:

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

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

发表评论

0 个回复

  • 用LabVIEW实现分析输入频的谐波成分
    用LabVIEW实现分析输入音频的谐波成分-LabVIEW program to analysis audio
    2022-06-22 02:18:14下载
    积分:1
  • pt2033 2.1
    PT2033 2.1-Channel Audio Processor with Subwoofer DATASHEET
    2022-10-18 06:55:03下载
    积分:1
  • 本程序是用MATLAB设计并实现一个简单的说话人识别系统,其主要功能模块包括信号的输入管模块 ,的鉴别即特征提取块,的认证模块,程序很全....
    本程序是用MATLAB设计并实现一个简单的说话人识别系统,其主要功能模块包括语音信号的输入管理模块 ,语音的鉴别即特征提取块,语音的认证模块,程序很全. -this procedure is used MATLAB design and implement a simple speech recognition system, Its main function modules including voice signal input management module, voice identification or feature extraction block, Voice authentication module, the whole process is.
    2022-01-31 08:47:26下载
    积分:1
  • Wave Audio Free source
    Wave Audio Free source
    2023-04-05 07:00:03下载
    积分:1
  • labview 锁相放大器
    labview 锁相放大器,基于相关检测原理设计了一种数字锁相放大器,重点研究了采样频率与相关运算结果的关系。发现参考信号为方波而采样频率与信号频率成一定关系时,系统相关运算存在固有误差。为减少该误差,首次将动态采样法引入数字锁相放大器设计中,运算发现动态采样的采样频率数越多,奇点产生的误差越少。基于LabVIEW 软件对所设计的检测系统进行了仿真 测试,测试结果表明该数字锁定放大器在信号幅度为5 V、噪声标准差小于等于50 时( SNR = -34. 04 dB) ,能有效地检测出频 率为500 kHz 以下的信号,系统检测结果与理论计算值的相对误差基本不超过2%。可以用于
    2023-05-02 01:05:04下载
    积分:1
  • CD播放器,对mp3等频CD,该程序将播放其中
    CD播放器,对mp3等音频CD,该程序将播放其中音乐-CD player, MP3 and other audio CD, the program will broadcast music which
    2022-11-27 09:25:02下载
    积分:1
  • wave频文件转换成其他格式的编解码程序
    wave音频文件转换成其他格式的编解码程序-wave audio file converted into other formats codec procedures
    2022-03-18 13:51:26下载
    积分:1
  • 我写一个免费的图象频编码器,
    i writing an free losless audio coder, faster on old 486 than flac or ape decoding on pentium 233 MHz !!! the program working, and compression ratio is equal to flac / ape ... On pentium 233 MHz flac decompress time is 26 sec of enya_.wav . ape is more than 45 sec... :) approx 14 sec coding enya.wav with pkzip, and my routines not have completed. My hope is 4 sec compression time, if completing, and decompressing a 16 bit stereo 44100 Hz is real time on 80286 cpu !!! PLEASE HELP ME ! i am an hungarian programmer, and i cannot wrtite in english perfectly. i not have time for write code for incoming 16 bit variable contents ! i want variable bit size putting into 8 bit foam. the 16 bit variable containing e.g. 7 bit valuable data, and 8 of this data must be storing into 8 bit datas. (code need 24 .. 2 bit incoming packing into 8 bit data.)-i writing an free losless audio coder, faster on old 486 than flac or ape dec
    2022-01-24 14:22:51下载
    积分:1
  • 和视频的操作,一个典型的源代码例程,实现…
    有关声音与视频的典型操作例程VC源代码实现,常见有用。-voice and video on the operation of a typical VC source code routines to achieve the commonly useful.
    2023-06-01 17:50:03下载
    积分:1
  • 采样率,帧长,通道等频基础知识介绍;关于CD轨浅显易懂的描述;...
    采样率,帧长,通道等音频基础知识介绍;关于CD音轨浅显易懂的描述;-Sampling rate, frame size, access and other basic knowledge of audio description on the CD tracks easy to understand description of
    2022-11-02 04:55:06下载
    积分:1
  • 696518资源总数
  • 105554会员总数
  • 2今日下载