08 2014 档案

摘要:这一篇文章同上一篇《使用WindowsAPI获取录音音频》原理具有相似之处,不再详细介绍函数与结构体的参数 1. waveOutGetNumDevs 2. waveOutGetDevCaps 3. waveOutOpen 回调函数 4. waveOutPrepareHeader 5. waveOut 阅读全文

posted @ 2014-08-17 16:29 峰入云 阅读(798) 评论(1) 推荐(0)

摘要:介绍使用winmm.h进行音频流的获取 首先需要包含以下引用对象 #include <Windows.h>#include "mmsystem.h"#pragma comment(lib, "winmm.lib") 音频的获取需要调用7个函数 1. waveInGetNumDevs:返回系统中就绪的 阅读全文

posted @ 2014-08-17 14:11 峰入云 阅读(2651) 评论(0) 推荐(1)

摘要:lpcwstr类型问题 在使用VS2010开发C++程序时,由于系统默认字符集是unicode字符集,造成与早期的字符串格式不兼容问题 ①Properties — Configuration Properties — General,如下,右边有个Character Set,将其由“Unicode 阅读全文

posted @ 2014-08-16 15:41 峰入云 阅读(381) 评论(0) 推荐(0)

摘要:介绍如何通过winmm.dll播放声音 首先导入两个函数 示例代码 可以通过以下语句进行播放控制 mciSendString("play myDivece", null, 0, new IntPtr(0)); //播放mciSendString("pause myDivece", null, 0, 阅读全文

posted @ 2014-08-16 10:05 峰入云 阅读(1059) 评论(0) 推荐(1)

导航