ALLEGRO_PLAYMODE - Man Page
Allegro 5 API
Synopsis
#include <allegro5/allegro_audio.h> enum ALLEGRO_PLAYMODE
Description
Sample and stream playback mode.
- ALLEGRO_PLAYMODE_ONCE - the sample/stream is played from start to finish an then it stops.
- ALLEGRO_PLAYMODE_LOOP - the sample/stream is played from start to finish (or between the two loop points). When it reaches the end, it restarts from the beginning.
- ALLEGRO_PLAYMODE_BIDIR - the sample is played from start to finish (or between the two loop points). When it reaches the end, it reverses the playback direction and plays until it reaches the beginning when it reverses the direction back to normal. This is mode is rarely supported for streams.
Referenced By
al_get_audio_stream_playmode(3), al_get_sample_instance_playmode(3), al_play_sample(3), al_set_audio_stream_playmode(3), al_set_sample_instance_playmode(3).
Allegro reference manual