DirectSound示例的配置
最近开始研究音视频处理 买了本书《VC 音频/视频处理技术及工程实践》 那本书完全是照搬Direct X的帮助文档 而且还抄袭了网友“智慧的鱼“发表的博文《DirectSound开发指南》(名字可能有出入) 而且还是东拼西揍 看得人云里雾里 很不爽让我伤透了心
于是我开始研究Direct X帮助文档 还好英语过得去 都看的懂 上面有很多具有实际参考价值的示例 于是开始研究。
用VC6.0打开 编译 却怎么都不通过 提示”Cannot open include file: dxerr9.h : No such file or directory“
很明显 没有找到该文件的路径 我搜索了一下 在X:/Program Files/DirectX/Include路径下 X代表Direct X安装盘符
于是在Tool-- Options-- Directories-- Include files下添加X:/Program Files/DirectX/Include files 如上图 编译 结果出现如下错误
Compiling...
playsound.cpp
../../common/include/DSUtil.h(50) : error C2146: syntax error : missing before identifier m_pDS
../../common/include/DSUtil.h(50) : error C2501: LPDIRECTSOUND8 : missing storage-class or type specifiers
../../common/include/DSUtil.h(50) : error C2501: m_pDS : missing storage-class or type specifiers
../../common/include/DSUtil.h(57) : error C2146: syntax error : missing before identifier GetDirectSound
../../common/include/DSUtil.h(57) : error C2433: LPDIRECTSOUND8 : inline not permitted on data declarations
../../common/include/DSUtil.h(57) : error C2501: LPDIRECTSOUND8 : missing storage-class or type specifiers
.................................
E:/Program Files/DirectX/Samples/C /common/src/dsutil.cpp(438) : error C2039: guid3DAlgorithm : is not a member of _DSBUFFERDESC
E:/Program Files/Microsoft Visual Studio/VC98/INCLUDE/dsound.h(96) : see declaration of _DSBUFFERDESC
E:/Program Files/DirectX/Samples/C /common/src/dsutil.cpp(441) : error C2227: left of - CreateSoundBuffer must point to class/struct/union
Error executing cl.exe.
playsound.exe - 32 error(s), 2 warning(s)
继续研究发现有个路径没有包含进去X:/PROGRAM FILES/DIRECTX/SAMPLES/C /COMMON/INCLUDE 于是继续添加 编译 还是出错 内容同上。
后来在网上查找 发现要将插入的路径条目提到最上面去 提上去后 发现编译通过 OK!
补充 后来发现不需要X:/PROGRAM FILES/DIRECTX/SAMPLES/C /COMMON/INCLUDE
如图
但是链接出错 错误如下
Compiling...
playsound.cpp
dsutil.cpp
Linking...
LINK : fatal error LNK1104: cannot open file dxerr9.lib
Error executing link.exe.
playsound.exe - 1 error(s), 0 warning(s)
看来应该是没有包含Lib库的路径 再次研究 发现要添加X:/PROGRAM FILES/DIRECTX/LIB 到Tool-- Options-- Directories-- Include files下添加X:/Program Files/DirectX/Librarys files下 好 添加 结果连接出错 Compiling resources... Compiling... playsound.cpp dsutil.cpp dxutil.cpp Linking... dsutil.obj : error LNK2001: unresolved external symbol _DirectSoundCreate8 12 Debug/playsound.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. playsound.exe - 2 error(s), 0 warning(s) 记住 此路径也要提到最上面 如下图
![](http://hi.csdn.net/attachment/201101/23/94099_1295805933VGXd.jpg)
![](http://hi.csdn.net/attachment/201101/23/94099_1295806306RJ4O.jpg)
SpringMyBatis解析1-使用示例 MyBatis使用介绍 MyBatis的详细使用介绍 http://www.cnblogs.com/xrq730/category/796495.html 建立PO public class Person { private String id; private String name; //set get 方法、、、 建立Mapper mapper是数据库操作的映射文件,也就是我们常说的dao文件。
SpringHttpInvoker解析1-使用示例 HTTP invoker是一个新的远程调用模型,作为Spring框架的一部分,来执行基于HTTP的远程调用(让防火墙可以接受),并使用Java的序列化机制。 定义服务接口UserService import java.
SpringRMI解析1-使用示例 Java远程方法调用,即JavaRMI(Java Remote Method Invocation),是Java编程语言里一种用于实现远程过程调用的应用程序编程接口。它使客户机上的运行的程序可以调用远程服务器上的对象。
相关文章
- SpringBoot全局配置long转String 丢失精度[通俗易懂]
- vscode 简单配置使用LESS
- VS配置管理器
- Spring-Security 简介、入门案例详解、安全框架、权限验证 SSM项目 使用 JavaConfig配置
- Spring Boot基础配置之属性配置
- Flutter 环境配置及运行示例程序
- Windows Server故障转移集群配置示例
- 好的流程可视化和配置化是什么样的?
- 配置OAuth2认证服务器和资源服务器-完整示例
- Spring Cloud Security配置JWT和OAuth2的集成实现单点登录-示例
- 配置Spring Cloud Bus并集成消息代理示例
- 配置 Spring Cloud Bus 的消息代理示例
- https域名配置
- Django REST Framework-配置路由示例
- 系统配置:Linux安装apache服务器的配置过程记录
- springmvc 项目完整示例06 日志–log4j 参数详细解析 log4j如何配置详解编程语言
- springcloud之配置中心svn示例和refresh详解编程语言
- 配置SAP服务器外网登陆以及网络故障解决示例详解编程语言
- 快速搭建Linux网桥,一步到位(linux网桥配置)
- Linux下搭建FTP服务器的步骤与技巧(linux配置ftp服务器)
- Redis配置实现性能优化(redis配置性能优化)
- mysql主从服务器的简单配置
- phpmyadminconfig.inc.php配置示例
- python连接mongodb操作数据示例(mongodb数据库配置类)
- yii框架配置默认controller和action示例
- 提升PHP安全:8个必须修改的PHP默认配置
- XAMPP下使用顶级域名绑定虚拟主机的配置方法和示例
- nginx中配置pathinfo模式示例
- Nginx搭建流媒体FLV视频服务器配置示例
- Apache中启用ServerStatus配置示例
- 前端开发用得着的nginx配置(场景)