Etterna 0.74.4
Loading...
Searching...
No Matches
SoundEffectControl.h
1#ifndef SOUND_EFFECT_CONTROL_H
2#define SOUND_EFFECT_CONTROL_H
3
4#include "ThemeMetric.h"
5
7class PlayerState;
8class NoteData;
11{
12 public:
14 void Load(const std::string& sType,
15 PlayerState* pPlayerState,
16 const NoteData* pNoteData);
17
18 void SetSoundReader(RageSoundReader* pPlayer);
19 void ReleaseSound() { SetSoundReader(nullptr); }
20
21 void Update(float fDeltaTime);
22
23 private:
24 void HoldsBeingHeld(int iRow, int& iHoldsHeld, int& iHoldsLetGo) const;
25
26 ThemeMetric<std::string> SOUND_PROPERTY;
27 ThemeMetric<bool> LOCK_TO_HOLD;
28 ThemeMetric<float> PROPERTY_MIN;
29 ThemeMetric<float> PROPERTY_CENTER;
30 ThemeMetric<float> PROPERTY_MAX;
31
32 PlayerState* m_pPlayerState;
33
34 bool m_bLocked;
35
36 float m_fSample;
37 float m_fLastLevel;
38
39 const NoteData* m_pNoteData;
40 RageSoundReader* m_pSoundReader;
41};
42
43#endif
Holds data about the notes that the player is supposed to hit.
Definition NoteData.h:43
The player's indivdual state.
Definition PlayerState.h:30
Definition RageSoundReader.h:7
Control a sound property through user input.
Definition SoundEffectControl.h:11
The theme specific data.
Definition ThemeMetric.h:52