39#ifndef INCLUDED_DISTI_SOUND_H
40#define INCLUDED_DISTI_SOUND_H
66 DISTI_EXPORT
void Play(
int which );
73 DISTI_EXPORT
void Play(
int which,
float volumeOrDistance );
80 DISTI_EXPORT
void LoadSound(
const char* fn,
int index );
87 DISTI_EXPORT
void LoadSounds(
const char* firstArg, ... );
106 class ISoundSystemImpl
109 DISTI_EXPORT
virtual bool IsValid()
const = 0;
110 DISTI_EXPORT
virtual void LoadSound(
const char* fileName,
int index ) = 0;
111 DISTI_EXPORT
virtual void ClearSound(
int index ) = 0;
114 DISTI_EXPORT
virtual void Play(
int index ) = 0;
115 DISTI_EXPORT
virtual void Play(
int index,
float volume ) = 0;
117 DISTI_EXPORT
virtual ~ISoundSystemImpl() {}
120 DISTI_EXPORT ISoundSystemImpl() {}
133 ScopedPtr<ISoundSystemImpl> _impl;
137 static ISoundSystemImpl* CreateSoundSystemImpl(
int maxSounds );
138 static const char*
const s_errorMsg;
SoundSystem(int maxSounds)
float GetMasterVolume() const
void LoadSounds(const char *firstArg,...)
void SetMasterVolume(float volume)
void ClearSound(int index)
void LoadSound(const char *fn, int index)
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:245
Definition: bmpimage.h:46
A smart pointer with unique ownership – poor man's std::unique_ptr.