Starshatter_Open
Open source Starshatter engine
|
#include <SoundD3D.h>
Public Member Functions | |
SoundD3D (LPDIRECTSOUND card, DWORD flags, LPWAVEFORMATEX format) | |
SoundD3D (LPDIRECTSOUND card, DWORD flags, LPWAVEFORMATEX format, DWORD len, LPBYTE data) | |
virtual | ~SoundD3D () |
virtual void | Update () |
virtual HRESULT | StreamFile (const char *name, DWORD offset) |
virtual HRESULT | Load (DWORD bytes, BYTE *data) |
virtual HRESULT | Play () |
virtual HRESULT | Rewind () |
virtual HRESULT | Pause () |
virtual HRESULT | Stop () |
virtual Sound * | Duplicate () |
virtual double | GetTotalTime () const |
virtual double | GetTimeRemaining () const |
virtual double | GetTimeElapsed () const |
virtual void | SetVolume (long v) |
virtual long | GetPan () const |
virtual void | SetPan (long p) |
virtual void | SetLocation (const Vec3 &l) |
virtual void | SetVelocity (const Vec3 &v) |
virtual float | GetMinDistance () const |
virtual void | SetMinDistance (float f) |
virtual float | GetMaxDistance () const |
virtual void | SetMaxDistance (float f) |
Public Member Functions inherited from Sound | |
Sound () | |
virtual | ~Sound () |
int | operator== (const Sound &rhs) const |
virtual void | Release () |
int | IsReady () const |
int | IsPlaying () const |
int | IsDone () const |
int | LoopCount () const |
virtual DWORD | GetFlags () const |
virtual void | SetFlags (DWORD f) |
virtual DWORD | GetStatus () const |
virtual long | GetVolume () const |
virtual const Vec3 & | GetLocation () const |
virtual const Vec3 & | GetVelocity () const |
virtual void | SetSoundCheck (SoundCheck *s) |
virtual void | AddToSoundCard () |
const char * | GetFilename () const |
void | SetFilename (const char *s) |
Static Public Member Functions | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from Sound | |
static Sound * | CreateStream (const char *filename) |
static Sound * | CreateOggStream (const char *filename) |
static Sound * | Create (DWORD flags, LPWAVEFORMATEX format) |
static Sound * | Create (DWORD flags, LPWAVEFORMATEX format, DWORD len, LPBYTE data) |
static void | SetListener (const Camera &cam, const Vec3 &vel) |
static void | UseSoundCard (SoundCard *s) |
Protected Member Functions | |
void | Localize () |
HRESULT | AllocateBuffer (DWORD bytes) |
HRESULT | StreamOggFile () |
void | StreamBlock () |
void | StreamOggBlock () |
void | RewindStream () |
void | RewindOggStream () |
Protected Attributes | |
LPDIRECTSOUND | soundcard |
WAVEFORMATEX | wfex |
DSBUFFERDESC | dsbd |
LPDIRECTSOUNDBUFFER | buffer |
DWORD | data_len |
LPBYTE | data |
float | min_dist |
float | max_dist |
FILE * | stream |
DWORD | stream_left |
double | total_time |
DWORD | min_safety |
DWORD | read_size |
BYTE * | transfer |
DWORD | w |
DWORD | r |
DWORD | stream_offset |
bool | eos_written |
BYTE | eos_latch |
bool | moved |
ThreadSync | sync |
OggVorbis_File * | ov_file |
Protected Attributes inherited from Sound | |
DWORD | flags |
DWORD | status |
long | volume |
int | looped |
Vec3 | location |
Vec3 | velocity |
SoundCheck * | sound_check |
char | filename [64] |
Additional Inherited Members | |
Public Types inherited from Sound | |
enum | FlagEnum { AMBIENT = 0x0000, LOCALIZED = 0x0001, LOC_3D = 0x0002, MEMORY = 0x0000, STREAMED = 0x0004, ONCE = 0x0000, LOOP = 0x0008, FREE = 0x0000, LOCKED = 0x0010, DOPPLER = 0x0020, INTERFACE = 0x0040, OGGVORBIS = 0x4000, RESOURCE = 0x8000 } |
enum | StatusEnum { UNINITIALIZED, INITIALIZING, READY, PLAYING, DONE } |
Static Protected Attributes inherited from Sound | |
static SoundCard * | creator = 0 |
Definition at line 35 of file SoundD3D.h.
SoundD3D::SoundD3D | ( | LPDIRECTSOUND | card, |
DWORD | flags, | ||
LPWAVEFORMATEX | format | ||
) |
Definition at line 363 of file SoundD3D.cpp.
SoundD3D::SoundD3D | ( | LPDIRECTSOUND | card, |
DWORD | flags, | ||
LPWAVEFORMATEX | format, | ||
DWORD | len, | ||
LPBYTE | data | ||
) |
Definition at line 398 of file SoundD3D.cpp.
|
virtual |
Definition at line 456 of file SoundD3D.cpp.
|
protected |
Definition at line 992 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 789 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1215 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1200 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1158 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1132 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1119 of file SoundD3D.cpp.
|
inlinevirtual |
Reimplemented from Sound.
Definition at line 56 of file SoundD3D.h.
|
virtual |
Reimplemented from Sound.
Definition at line 939 of file SoundD3D.cpp.
|
protected |
Definition at line 666 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1086 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1028 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1057 of file SoundD3D.cpp.
|
protected |
Definition at line 639 of file SoundD3D.cpp.
|
protected |
Definition at line 609 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1184 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1220 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1206 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1170 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1191 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1146 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 1102 of file SoundD3D.cpp.
|
protected |
Definition at line 549 of file SoundD3D.cpp.
|
virtual |
Reimplemented from Sound.
Definition at line 818 of file SoundD3D.cpp.
|
protected |
Definition at line 577 of file SoundD3D.cpp.
|
protected |
Definition at line 884 of file SoundD3D.cpp.
|
inlinestatic |
Reimplemented from Sound.
Definition at line 38 of file SoundD3D.h.
|
virtual |
Reimplemented from Sound.
Definition at line 480 of file SoundD3D.cpp.
|
protected |
Definition at line 86 of file SoundD3D.h.
|
protected |
Definition at line 89 of file SoundD3D.h.
|
protected |
Definition at line 88 of file SoundD3D.h.
|
protected |
Definition at line 85 of file SoundD3D.h.
|
protected |
Definition at line 108 of file SoundD3D.h.
|
protected |
Definition at line 107 of file SoundD3D.h.
|
protected |
Definition at line 96 of file SoundD3D.h.
|
protected |
Definition at line 95 of file SoundD3D.h.
|
protected |
Definition at line 102 of file SoundD3D.h.
|
protected |
Definition at line 109 of file SoundD3D.h.
|
protected |
Definition at line 112 of file SoundD3D.h.
|
protected |
Definition at line 105 of file SoundD3D.h.
|
protected |
Definition at line 103 of file SoundD3D.h.
|
protected |
Definition at line 83 of file SoundD3D.h.
|
protected |
Definition at line 99 of file SoundD3D.h.
|
protected |
Definition at line 100 of file SoundD3D.h.
|
protected |
Definition at line 106 of file SoundD3D.h.
|
protected |
Definition at line 111 of file SoundD3D.h.
|
protected |
Definition at line 101 of file SoundD3D.h.
|
protected |
Definition at line 104 of file SoundD3D.h.
|
protected |
Definition at line 105 of file SoundD3D.h.
|
protected |
Definition at line 84 of file SoundD3D.h.