diff options
| author | iamgoofball <iamgoofball@gmail.com> | 2019-01-19 21:01:19 -0800 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-14 00:28:27 +0300 |
| commit | 1139bf5cd0473817ba223ac8a9fe9d193575206a (patch) | |
| tree | 802acb96d305982e3d550a2e73faf680675ad049 /include | |
| parent | f9b3bd5bb5fdbb739e806d004af09443bdbb2aac (diff) | |
Bass.dll functionality-based clientside music looping system by using channel loopable flags (no use of QTimer required)
Implement Goofball's AOV loopable music server message where any value that's not -1 when the length of the handle_message packet is longer than 3 will not loop the music (still confused about this but w/e)
Diffstat (limited to 'include')
| -rw-r--r-- | include/aomusicplayer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/aomusicplayer.h b/include/aomusicplayer.h index b34267c..da47128 100644 --- a/include/aomusicplayer.h +++ b/include/aomusicplayer.h @@ -17,15 +17,18 @@ class AOMusicPlayer { public: AOMusicPlayer(QWidget *parent, AOApplication *p_ao_app); - ~AOMusicPlayer(); + virtual ~AOMusicPlayer(); void play(QString p_song); + void stop(); void set_volume(int p_value); + void set_looping(bool toggle); private: QWidget *m_parent; AOApplication *ao_app; + bool m_looping = true; int m_volume = 0; HSTREAM m_stream; }; |
