41 #ifndef INCLUDED_DISTI_SOUND_H
42 #define INCLUDED_DISTI_SOUND_H
63 DISTI_EXPORT
bool IsValid()
const;
68 DISTI_EXPORT
void Play(
int which );
75 DISTI_EXPORT
void Play(
int which,
float volumeOrDistance );
82 DISTI_EXPORT
void LoadSound(
const char* fn,
int index );
89 DISTI_EXPORT
void LoadSounds(
const char* firstArg, ... );
111 DISTI_EXPORT
virtual bool IsValid()
const = 0;
112 DISTI_EXPORT
virtual void LoadSound(
const char* fileName,
int index ) = 0;
113 DISTI_EXPORT
virtual void ClearSound(
int index ) = 0;
114 DISTI_EXPORT
virtual void SetMasterVolume(
float volume ) = 0;
115 DISTI_EXPORT
virtual float GetMasterVolume()
const = 0;
116 DISTI_EXPORT
virtual void Play(
int index ) = 0;
117 DISTI_EXPORT
virtual void Play(
int index,
float volume ) = 0;
139 static const char*
const s_errorMsg;
142 SoundSystem(
const SoundSystem& ) DISTI_SPECIAL_MEM_FUN_DELETE;
143 void operator=( const SoundSystem& ) DISTI_SPECIAL_MEM_FUN_DELETE;
Base class for all platform-specific implementations of the sound system.
Definition: sound.h:108
SoundSystem(int maxSounds)
void LoadSounds(const char *firstArg,...)
Definition: scoped_ptr.h:53
void LoadSound(const char *fn, int index)
void SetMasterVolume(float volume)
float GetMasterVolume() const
A smart pointer with unique ownership – poor man's std::unique_ptr.
Macros and helper code to determine what subset of C++11/14/17 is available.
void ClearSound(int index)
Definition: bmpimage.h:46