Playing Wave Files Directly From The Res - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
The CDirectSound class makes it easy to play a WAVE file directly from the resource (without copying it into a temporary file) via Microsoft's DirectX component DirectSound. The class is designed to play small sounds, that can be placed completely into memory.   One can use the class to play WAVE files, too. In this case you have to load the entire file into memory and to pass the pointer to the beginning of the buffer to the Create() method. To use this class you need at least DirectX version 3.
用资源里的directsound直接播放wave文件
cdirectsound类使由resource里的microsoft's directx组件directsound来播放wave文件变的很简单。这个类用来播放可以完全放在缓存里的小声音文件。也可以用它来播放wave文件。这时候你需要把整个文件下栽到内存并且将指针知道缓冲头部的create()方法。
你至少要在directx ersion3里才可以使用这个类。
来源: http://www.codeguru.com/multimedia/DSound.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
DSound |
 1.0  |
2004-04-19 |
下载 |
|
|