Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SoundCardD3D Class Reference

#include <SoundD3D.h>

Inheritance diagram for SoundCardD3D:
SoundCard

List of all members.

Public Member Functions

 SoundCardD3D (HWND hwnd)
virtual ~SoundCardD3D ()
virtual bool GetFormat (LPWAVEFORMATEX format)
virtual bool SetFormat (LPWAVEFORMATEX format)
virtual bool SetFormat (int bits, int channels, int hertz)
virtual void ShowFormat ()
virtual SoundCreateSound (DWORD flags, LPWAVEFORMATEX format)
virtual SoundCreateSound (DWORD flags, LPWAVEFORMATEX format, DWORD len, LPBYTE data)
virtual void SetListener (const Camera &cam, const Vec3 &vel)
virtual bool Pause ()
virtual bool Resume ()
virtual bool StopSoundEffects ()
- Public Member Functions inherited from SoundCard
 SoundCard ()
virtual ~SoundCard ()
SoundStatus Status () const
virtual void Update ()
virtual DWORD UpdateThread ()
virtual void AddSound (Sound *s)

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

LPDIRECTSOUND soundcard
LPDIRECTSOUNDBUFFER primary
Camera listener
Vec3 velocity
WAVEFORMATEX wfex
DSBUFFERDESC dsbd
- Protected Attributes inherited from SoundCard
bool shutdown
HANDLE hthread
SoundStatus status
List< Soundsounds
ThreadSync sync

Friends

class SoundD3D

Additional Inherited Members

- Public Types inherited from SoundCard
enum  SoundStatus { SC_UNINITIALIZED, SC_OK, SC_ERROR, SC_BAD_PARAM }

Detailed Description

Definition at line 118 of file SoundD3D.h.


Constructor & Destructor Documentation

SoundCardD3D::SoundCardD3D ( HWND  hwnd)

Definition at line 46 of file SoundD3D.cpp.

SoundCardD3D::~SoundCardD3D ( )
virtual

Definition at line 167 of file SoundD3D.cpp.


Member Function Documentation

Sound * SoundCardD3D::CreateSound ( DWORD  flags,
LPWAVEFORMATEX  format 
)
virtual

Reimplemented from SoundCard.

Definition at line 258 of file SoundD3D.cpp.

Sound * SoundCardD3D::CreateSound ( DWORD  flags,
LPWAVEFORMATEX  format,
DWORD  len,
LPBYTE  data 
)
virtual

Reimplemented from SoundCard.

Definition at line 270 of file SoundD3D.cpp.

bool SoundCardD3D::GetFormat ( LPWAVEFORMATEX  format)
virtual

Reimplemented from SoundCard.

Definition at line 232 of file SoundD3D.cpp.

bool SoundCardD3D::Pause ( )
virtual

Reimplemented from SoundCard.

Definition at line 306 of file SoundD3D.cpp.

bool SoundCardD3D::Resume ( )
virtual

Reimplemented from SoundCard.

Definition at line 324 of file SoundD3D.cpp.

bool SoundCardD3D::SetFormat ( LPWAVEFORMATEX  format)
virtual

Reimplemented from SoundCard.

Definition at line 219 of file SoundD3D.cpp.

bool SoundCardD3D::SetFormat ( int  bits,
int  channels,
int  hertz 
)
virtual

Reimplemented from SoundCard.

Definition at line 192 of file SoundD3D.cpp.

void SoundCardD3D::SetListener ( const Camera cam,
const Vec3 vel 
)
virtual

Reimplemented from SoundCard.

Definition at line 286 of file SoundD3D.cpp.

void SoundCardD3D::ShowFormat ( )
virtual

Definition at line 247 of file SoundD3D.cpp.

bool SoundCardD3D::StopSoundEffects ( )
virtual

Reimplemented from SoundCard.

Definition at line 342 of file SoundD3D.cpp.

static const char* SoundCardD3D::TYPENAME ( )
inlinestatic

Reimplemented from SoundCard.

Definition at line 123 of file SoundD3D.h.


Friends And Related Function Documentation

friend class SoundD3D
friend

Definition at line 120 of file SoundD3D.h.


Member Data Documentation

DSBUFFERDESC SoundCardD3D::dsbd
protected

Definition at line 158 of file SoundD3D.h.

Camera SoundCardD3D::listener
protected

Definition at line 153 of file SoundD3D.h.

LPDIRECTSOUNDBUFFER SoundCardD3D::primary
protected

Definition at line 148 of file SoundD3D.h.

LPDIRECTSOUND SoundCardD3D::soundcard
protected

Definition at line 147 of file SoundD3D.h.

Vec3 SoundCardD3D::velocity
protected

Definition at line 154 of file SoundD3D.h.

WAVEFORMATEX SoundCardD3D::wfex
protected

Definition at line 157 of file SoundD3D.h.


The documentation for this class was generated from the following files: