diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-09-14 00:46:46 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-14 00:46:46 +0300 |
| commit | 4645d9dd080964560477e48d99812bc494c1965b (patch) | |
| tree | 7a0fb1318ada5b95ebac3fed37bba8e1d74c4a33 /include | |
| parent | 1139bf5cd0473817ba223ac8a9fe9d193575206a (diff) | |
Add a blip sound QElapsedTimer so blipsounds don't play more frequently than 60ms to preserve all of our ears.
Adjust the message display speeds to feel more accurate to AA, with }}} speed displaying text instantly for that section
Diffstat (limited to 'include')
| -rw-r--r-- | include/aoblipplayer.h | 4 | ||||
| -rw-r--r-- | include/courtroom.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/aoblipplayer.h b/include/aoblipplayer.h index 44ca48bb..9a428371 100644 --- a/include/aoblipplayer.h +++ b/include/aoblipplayer.h @@ -11,6 +11,7 @@ #include <QWidget> #include <string.h> +#include <QElapsedTimer> #include <QDebug> @@ -26,9 +27,12 @@ public: int m_cycle = 0; private: + const int max_blip_ms = 60; + QWidget *m_parent; AOApplication *ao_app; qreal m_volume; + QElapsedTimer delay; void set_volume_internal(qreal p_volume); diff --git a/include/courtroom.h b/include/courtroom.h index 682e12a1..9c79a3e3 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -259,7 +259,7 @@ private: bool message_is_centered = false; int current_display_speed = 3; - int message_display_speed[7] = {10, 20, 30, 40, 50, 60, 75}; + int message_display_speed[7] = {0, 10, 25, 40, 50, 70, 90}; // This is for checking if the character should start talking again // when an inline blue text ends. |
