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

Expose footsteps sounds #14650

Open
Zughy opened this issue May 13, 2024 · 4 comments
Open

Expose footsteps sounds #14650

Zughy opened this issue May 13, 2024 · 4 comments
Labels
Feature request Issues that request the addition or enhancement of a feature @ Script API Sounds

Comments

@Zughy
Copy link
Member

Zughy commented May 13, 2024

Problem

I'm working on an audio library mod that features accessibility options. In order to display a text saying "Footsteps" that appears whilst footsteps are heard, I need a way to track them. Footsteps, as stated also here #14326 (comment), do not use minetest.sound_play, contrary to e.g. digging sounds. There's no way for me to know when such a sound is played

Solutions

Expose it somehow (?)

Alternatives

Implement audio accessibility options engine-side so I don't have to (#10666)

Additional context

No response

@Zughy Zughy added @ Script API Feature request Issues that request the addition or enhancement of a feature Sounds labels May 13, 2024
@cx384
Copy link
Contributor

cx384 commented May 14, 2024

Footstep callbacks would also be useful for many other things, such as changing the node when a player walks on it, showing custom particles as a graphic effect, or for a teleporting node.

@sfan5
Copy link
Member

sfan5 commented May 14, 2024

btw: footsteps are client-side so this another of those requests that isn't as easy as it sounds (did someone say CSM?).

Implement audio accessibility options engine-side

This is also a good idea.

@Zughy
Copy link
Member Author

Zughy commented May 14, 2024

This is also a good idea

Not according to the discussion in the issue linked in "Alternatives". I've made my mod also because that issue wasn't going anywhere: hearing that now might be a good idea is... tiring. Wouldn't be easier to espose footsteps rather than designing an accessibility API where just the idea of creating something generic enough yet effective gives me a headache?

@cx384
Copy link
Contributor

cx384 commented May 14, 2024

Related: #13639

For footstep callbacks, this old issue already exists: #247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Issues that request the addition or enhancement of a feature @ Script API Sounds
Projects
None yet
Development

No branches or pull requests

3 participants