Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More accurate/consistent blip rate functionality + punctuation slowdown fixes #305

Merged
merged 3 commits into from
Nov 10, 2020

Conversation

Crystalwarrior
Copy link
Contributor

Inspired by https://youtu.be/Min0hkwO43g
Here's what happens before this PR:

I am you
! ! ! !

The third blip sound was skipped entirely because it landed on a whitespace, leading to blip sounds feeling slower than they actually are.
This fixes it by delaying the blip until the whitespace has been passed, leading to this result:

I am you
! !  ! !

Meaning you hear 4 blips as intended, and removing the illusion of "slower text" caused by the difference.

Snapshots from the video used as reference:
изображение
изображение
изображение

Labelled as bug due to unintended consequence of a shoddy implementation.

@Crystalwarrior Crystalwarrior added bug Confirmed bug engine/audio Issues related to music and sound effect playback labels Sep 11, 2020
Remove qElapsedTimer method of blip earrape protection due to major inconsistency issues with this method (the same message would produce wildly different blip sounds - consistency is preferred)
More sophisticated blip earrape prevention is calculated in the chat ticker function itself, it also properly adjusts itself depending on the blip_rate used.
Instant text using }}} is not only meme-worthy in how limited it is in practice, it also makes the blip ticker completely confused how and when to play the blips (to make instant text possible, the entire system needs rewriting (again)
@Crystalwarrior Crystalwarrior changed the title More accurate/consistent blip rate functionality More accurate/consistent blip rate functionality + punctuation slowdown fixes Sep 11, 2020
@Crystalwarrior
Copy link
Contributor Author

Crystalwarrior commented Sep 11, 2020

As per recent commits, this PR also fixes punctuation slowdown-related shenanigans resulting in fixing a worse user experience.

@Crystalwarrior Crystalwarrior added this to the 2.8.6 milestone Sep 11, 2020
@Crystalwarrior
Copy link
Contributor Author

ok PLEASE

Copy link
Member

@in1tiate in1tiate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well-commented, good change, very epic

// where ! is the blip sound
int b_rate = blip_rate;
// Earrape prevention without using timers, this method is more consistent.
if (msg_delay != 0 && msg_delay <= 25) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this arbitrary number 25? Is it just message_display_speed[2]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like that, it's a fine-tuned number I got to obtain the least earrapey result

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Epic.

Copy link
Member

@oldmud0 oldmud0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like this is trying to be even more faithful. That's pretty ebin.

@oldmud0 oldmud0 merged commit 4eb45ef into AttorneyOnline:master Nov 10, 2020
lambdcalculus pushed a commit to lambdcalculus/AO2-Client that referenced this pull request Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug engine/audio Issues related to music and sound effect playback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants