ALLEGRO_AUDIO_DEPTH
enum ALLEGRO_AUDIO_DEPTH
Introduced in 5.0.0
Sample depth and type, and signedness. Mixers only use 32-bit signed float (-1..+1), or 16-bit signed integers. The unsigned value is a bit-flag applied to the depth value.
- ALLEGRO_AUDIO_DEPTH_INT8
- ALLEGRO_AUDIO_DEPTH_INT16
- ALLEGRO_AUDIO_DEPTH_INT24
- ALLEGRO_AUDIO_DEPTH_FLOAT32
- ALLEGRO_AUDIO_DEPTH_UNSIGNED
For convenience:
- ALLEGRO_AUDIO_DEPTH_UINT8
- ALLEGRO_AUDIO_DEPTH_UINT16
- ALLEGRO_AUDIO_DEPTH_UINT24
Examples: ex_kcm_direct, ex_synth
Most helpful discussions:
- Audio waveform with unexpected frequency behavior
- Audio seems overly complicated :(
- How to get raw sample frequencies
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- Possible thread deadlock/hang in al_detach_voice() ?
- allegro audio stream improvements
- get sample instance actual amplitude (volume)