al_set_sample_instance_gain
bool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
Introduced in 5.0.0
Set the playback gain.
Returns true on success, false on failure. Will fail if the sample instance is attached directly to a voice.
Examples: ex_acodec, ex_audio_props, ex_mixer_chain
Most helpful discussions:
- Finding zero crossings in a sample (to eliminate clicking)
- Sound
- Audio seems overly complicated :(
- Confused by Allegro 5's sound routines
- [A5] Repeating audio samples
- How to initialize multiple(over 200) Allegro bitmaps in a for loop?
- [Allegro 5][Mac OS X]invalid fullscreen drawable
- When to flip display/ backbuffer/ unresponsive events