22 #ifndef STARK_RESOURCES_SOUND_H 23 #define STARK_RESOURCES_SOUND_H 25 #include "audio/mixer.h" 27 #include "common/path.h" 28 #include "common/str.h" 30 #include "engines/stark/resources/object.h" 33 class RewindableAudioStream;
49 static const Type::ResourceType TYPE = Type::kSoundItem;
67 void onPreDestroy()
override;
68 void onGameLoop()
override;
70 void onEnginePause(
bool pause)
override;
82 uint32 getStockSoundType()
const;
85 void changeVolumePan(int32 volume, int32 pan, int32 duration);
94 void setStopOnDestroy(
bool stopOnDestroy);
97 void printData()
override;
107 bool _loopIndefinitely;
110 uint32 _stockSoundType;
116 bool _shouldStopOnDestroy;
118 int32 _fadeDurationRemaining;
119 float _fadeTargetVolume;
120 float _fadeTargetPan;
128 #endif // STARK_RESOURCES_SOUND_H
void setLooping(bool looping)
Definition: sound.h:88
SoundType
Definition: mixer.h:62
Definition: audiostream.h:109
Definition: stateprovider.h:51