Click here to Skip to main content
15,881,938 members
Articles / Desktop Programming / Win32

Play Audio Files with DirectSound and Display its Spectrum in Real Time - Part 3

Rate me:
Please Sign up or sign in to vote.
4.93/5 (21 votes)
24 Dec 2008CPOL3 min read 273.5K   17.7K   86  
An article to show how to play audio file with DirectSound and display its spectrum in real time accurately
========================================================================
    WIN32 应用程序:WinDirectAudio 项目概述
========================================================================

应用程序向导已为您创建了此 WinDirectAudio 应用程序。

本文件概要介绍组成 WinDirectAudio 应用程序的
的每个文件的内容。


WinDirectAudio.vcproj
    这是使用应用程序向导生成的 VC++ 项目的主项目文件,
    其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。

WinDirectAudio.cpp
    这是主应用程序源文件。

/////////////////////////////////////////////////////////////////////////////
应用程序向导创建了下列资源:

WinDirectAudio.rc
这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。
此文件可以直接在 Microsoft Visual C++ 中进行编辑。

Resource.h
    这是标准头文件,可用于定义新的资源 ID。
    Microsoft Visual C++ 将读取并更新此文件。

WinDirectAudio.ico
    这是一个图标文件,可用作应用程序的图标 (32x32)。
    此图标包括在主资源文件 WinDirectAudio.rc 中。

small.ico
    这是一个图标文件,其中包含应用程序的图标的较小版本 (16x16)。此图标包括在主资源文件 WinDirectAudio.rc 中。

/////////////////////////////////////////////////////////////////////////////
其他标准文件:

StdAfx.h, StdAfx.cpp
    这些文件用于生成名为 WinDirectAudio.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。

/////////////////////////////////////////////////////////////////////////////
其他注释:

应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。

/////////////////////////////////////////////////////////////////////////////

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer none
China China
To be, or not to be, this is question. That's are all depend on your decision. What do you think?

Comments and Discussions