|
// CMAIN LIB - APPLICATION AND DIRECT WRAPPER
//
// Written by Mauricio Teichmann Ritter
//
// Copyright (C) 2002, Brazil. All rights reserved.
//
//
// cSoundInterface.h: interface for the cSoundInterface class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_)
#define AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <mmsystem.h>
#include <dxerr8.h>
#include <dsound.h>
class cSoundInterface
{
protected:
static LPDIRECTSOUND8 m_pDS;
static LPDIRECTSOUNDBUFFER m_pDSBPrimary;
public:
void SetListernerPosition(float fX, float fY, float fZ);
void Destroy();
LPDIRECTSOUND8 GetDirectSound();
cSoundInterface();
HRESULT Initialize( HWND hWnd, DWORD dwCoopLevel, DWORD dwPrimaryChannels = 2, DWORD dwPrimaryFreq = 22050, DWORD dwPrimaryBitRate = 16);
HRESULT SetPrimaryBufferFormat( DWORD dwPrimaryChannels, DWORD dwPrimaryFreq, DWORD dwPrimaryBitRate );
virtual ~cSoundInterface();
};
#endif // !defined(AFX_CSOUNDINTERFACE_H__4ED24258_B172_4F98_86AD_DCA753E2E6E7__INCLUDED_)
|
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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Mauricio Ritter lives in Brazil, in the city of Porto Alegre. He is working with software development for about 8 years, and most of his work was done at a bank, within a home and office banking system.
Mauricio also holds MCSD, MCSE, MCDBA, MCAD and MCT Microsoft certifications and work as a trainer/consultant in some MS CTEC in his city.
Mauricio also works in his own programming site, aimed to Brazilian Developers: http://www.dotnetmaniacs.com.br
In his spare time he studys korean language...