-
Notifications
You must be signed in to change notification settings - Fork 290
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
Add some prefabricated sound effects #1590
Comments
See https://www.fmod.com/docs/2.00/api/effects-reference.html for some inspiration. |
Ooh ✨. This would be nice, but I feel like this is getting into game/asset content and engine design. Right now we have a builtin font and that's it. No sine wave generators, texture generators, shader effects off-the-shelf, or things like this. It would be great to have as a sort-of standardized implementation, or an open source implementation that can be referenced somewhere and works with Allegro. (It would actually be amazing to start some kind of resource like this), but I'm not sure it should go in core? |
Also, this should plug in nicely into the simple subset of the audio API, which does not expose mixers directly. This part can be figured out later. |
I have wanted something like this too, but I don't know how to come up with an API for this, since many real effects require multiple passes. Unlike the audio effects here, it'd be very complicated. |
Shader effects are also dependent on the vertex format too. A lot of 3D effects are dependent on having a normal, which isn't present in any standard implementation in Allegro. I have this |
I do really like the idea of the "Allegro product" somehow providing another layer of features, candy if you will, that can work out of the box. For example, some standard effects like audio reverb, delay... some shaders like flat color (not tint) or gradients or wobbles. Clarifying some path forward for these things could be good. Is there an implementation somewhere ... omg I just realized I actually do have an implementation for delay.... hahah! include/AllegroFlare/AudioProcessing/Filters/Delay.hpp |
Well, if we're upset about adding non-minimal features (I will invite those upset to take a look at Allegro 4's API), there's always the option to add it to the |
If Allegro already supports OpenAL by default, and OpenAL already has some effects built in, could we have some kind of simplified access to those effects through the Allegro API? Also, could those effects be implemented into the SoundFont player in a way that you could have, let's say, custom levels of reverb on different instruments on each music track? |
That could be done for OpenAL, but OpenAL is not a commonly enabled dependency: none of the pre-built binaries have it. |
The mixer has
al_set_mixer_postprocess_callback
function. We should provide a bunch of pre-made effects. An API could be:And then you use it as:
The text was updated successfully, but these errors were encountered: