Fission FSN
Loading...
Searching...
No Matches
fsCSoundEffectInstance.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCSoundEffectInstance.h
4*
5* Purpose: Empty impl for tools
6*
7*********************************************************************/
8
9#ifndef fsCSoundEffectInstancehdr
10#define fsCSoundEffectInstancehdr
11
12#include <functional>
13#include <string>
14
15#include <fsCore/fsBaseTypes.h>
16
18
20
21
23{
24public:
25
26 fsBool idMatches(fsS32 pId) const { return mImlId == pId; }
27 void callbackSet(std::function<void(int, std::string)> pCallback);
28
29 void volumeSet(fsF32 pVolume) override;
30
31 void stop() override;
32 void resume() override;
33 void pause() override;
34
35 fsBool playing() const override;
36
39
40protected:
41
42private:
43
44 fsS32 mImlId;
45};
46
47#endif
Definition fsCCachedSoundEffect.h:28
Definition fsCSoundEffectInstance.h:23
virtual ~fsCSoundEffectInstance()
fsBool idMatches(fsS32 pId) const
Definition fsCSoundEffectInstance.h:26
void resume() override
void pause() override
fsBool playing() const override
fsCSoundEffectInstance(fsCCachedSoundEffect *pSFX, fsBool pLoop)
void stop() override
void callbackSet(std::function< void(int, std::string_view)> pCallback)
Definition fsCSoundEffectInstance.cpp:8
void volumeSet(fsF32 pVolume) override
Definition fsISoundEffectInstance.h:16
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
float fsF32
Definition fsBaseTypes.h:28