al_create_sample_instance
ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data)
Introduced in 5.0.0
Creates a sample stream, using the supplied data. This must be attached to a voice or mixer before it can be played. The argument may be NULL. You can then set the data later with al_set_sample.
Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_kcm_direct, ex_mixer_chain
Most helpful discussions:
- [A5] Checking if a sample is playing? (1)
- Finding zero crossings in a sample (to eliminate clicking)
- al_attach_mixer_to_voice failure
- 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)
- SpeedHack 2014 is this weekend!
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- [A5] Repeating audio samples
- Sample Instances and Mixers
- My game bugs out when in release mode?