al_attach_sample_instance_to_mixer
bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,
ALLEGRO_MIXER *mixer)
Introduced in 5.0.0
Attach a sample instance to a mixer. The instance must not already be attached to anything.
Returns true on success, false on failure.
See also: al_detach_sample_instance.
Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_mixer_chain
Most helpful discussions:
- Creating Voice, Mixer and Sample Instance (1)
- Finding zero crossings in a sample (to eliminate clicking)
- Setting stream mixers
- Sound
- Audio seems overly complicated :(
- Bitmap behind mappy map
- Audio addon: pause sample
- Successful but silent audio playback
- How to get raw sample frequencies
- [A5] troubles with Ogg
Other recent discussions:
- Passing objects via functions
- Blank Screen
- [A4/A5] Homemade Audio Primer
- Allegro needs your help!
- SAMPLE_INSTANCE vs a beginner (me)
- How would you fade audio
- SpeedHack 2014 is this weekend!
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- [A5] Repeating audio samples
- Sample Instances and Mixers