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

#include <SoundCard.h>

Inheritance diagram for SoundCard:
SoundCardD3D

List of all members.

Public Types

enum  SoundStatus { SC_UNINITIALIZED, SC_OK, SC_ERROR, SC_BAD_PARAM }

Public Member Functions

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

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

bool shutdown
HANDLE hthread
SoundStatus status
List< Soundsounds
ThreadSync sync

Detailed Description

Definition at line 30 of file SoundCard.h.


Member Enumeration Documentation

Enumerator:
SC_UNINITIALIZED 
SC_OK 
SC_ERROR 
SC_BAD_PARAM 

Definition at line 38 of file SoundCard.h.


Constructor & Destructor Documentation

SoundCard::SoundCard ( )

Definition at line 25 of file SoundCard.cpp.

SoundCard::~SoundCard ( )
virtual

Definition at line 35 of file SoundCard.cpp.


Member Function Documentation

void SoundCard::AddSound ( Sound s)
virtual

Definition at line 96 of file SoundCard.cpp.

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

Reimplemented in SoundCardD3D.

Definition at line 53 of file SoundCard.h.

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

Reimplemented in SoundCardD3D.

Definition at line 56 of file SoundCard.h.

virtual bool SoundCard::GetFormat ( LPWAVEFORMATEX  format)
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 45 of file SoundCard.h.

virtual bool SoundCard::Pause ( )
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 48 of file SoundCard.h.

virtual bool SoundCard::Resume ( )
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 49 of file SoundCard.h.

virtual bool SoundCard::SetFormat ( LPWAVEFORMATEX  format)
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 46 of file SoundCard.h.

virtual bool SoundCard::SetFormat ( int  bits,
int  channels,
int  hertz 
)
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 47 of file SoundCard.h.

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

Reimplemented in SoundCardD3D.

Definition at line 62 of file SoundCard.h.

SoundStatus SoundCard::Status ( ) const
inline

Definition at line 42 of file SoundCard.h.

virtual bool SoundCard::StopSoundEffects ( )
inlinevirtual

Reimplemented in SoundCardD3D.

Definition at line 50 of file SoundCard.h.

static const char* SoundCard::TYPENAME ( )
inlinestatic

Reimplemented in SoundCardD3D.

Definition at line 33 of file SoundCard.h.

void SoundCard::Update ( )
virtual

Definition at line 75 of file SoundCard.cpp.

DWORD SoundCard::UpdateThread ( )
virtual

Definition at line 62 of file SoundCard.cpp.


Member Data Documentation

HANDLE SoundCard::hthread
protected

Definition at line 69 of file SoundCard.h.

bool SoundCard::shutdown
protected

Definition at line 68 of file SoundCard.h.

List<Sound> SoundCard::sounds
protected

Definition at line 71 of file SoundCard.h.

SoundStatus SoundCard::status
protected

Definition at line 70 of file SoundCard.h.

ThreadSync SoundCard::sync
protected

Definition at line 72 of file SoundCard.h.


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