Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Sound.h
Package: directx8中文教程.zip [view]
Upload User: whgydz
Upload Date: 2007-01-12
Package Size: 2259k
Code Size: 1k
Category:
Other Books
Development Platform:
HTML/CSS
- // Sound.h: interface for the CSound class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SOUND_H__C89CE19D_7C1D_4741_BE61_5AD0836FCF3A__INCLUDED_)
- #define AFX_SOUND_H__C89CE19D_7C1D_4741_BE61_5AD0836FCF3A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Base.h"
- class CSound : public CBase
- {
- public:
- bool IsPlaying();
- bool Stop();
- bool Play(DWORD dwNumOfRepeats = 0);
- bool LoadSound(const char* szSoundFilePath);
- void InitialiseForWavMidi(IDirectMusicPerformance8* pDirectAudioPerformance, IDirectMusicLoader8* pDirectAudioLoader);
- void InitialiseForMP3();
- CSound(); //Use this constructor for mp3 files
- virtual ~CSound();
- private:
- enum Format {Unknown, MP3, WavMidi};
- IDirectMusicSegment8* m_pSegment;
- IDirectMusicPerformance8* m_pDirectAudioPerformance;
- IDirectMusicLoader8* m_pDirectAudioLoader;
- IGraphBuilder* m_pGraph;
- IMediaControl* m_pMediaControl;
- IMediaPosition* m_pMediaPosition;
- Format m_enumFormat;
- };
- #endif // !defined(AFX_SOUND_H__C89CE19D_7C1D_4741_BE61_5AD0836FCF3A__INCLUDED_)