diff options
Diffstat (limited to 'src/aoblipplayer.h')
| -rw-r--r-- | src/aoblipplayer.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/aoblipplayer.h b/src/aoblipplayer.h index 92b43d2..d85cc36 100644 --- a/src/aoblipplayer.h +++ b/src/aoblipplayer.h @@ -2,9 +2,6 @@ #include "aoapplication.h" -#include <bass.h> -#include <bassopus.h> - #include <QDebug> #include <QElapsedTimer> #include <QWidget> @@ -17,6 +14,7 @@ public: static constexpr int STREAM_COUNT = 5; AOBlipPlayer(AOApplication *ao_app); + ~AOBlipPlayer(); void setVolume(int value); void setMuted(bool enabled); @@ -25,13 +23,13 @@ public: void playBlip(); + void updateInternalVolume(); + private: AOApplication *ao_app; - int m_volume = 0; + float m_volume = 0.0f; bool m_muted = false; - HSTREAM m_stream[STREAM_COUNT]{}; - int m_cycle = 0; - - void updateInternalVolume(); + bool m_initialized = false; + ma_sound m_stream[STREAM_COUNT]{}; }; |
