1ALLEGRO_PLAYMODE(3) ALLEGRO_PLAYMODE(3)
2
3
4
6 ALLEGRO_PLAYMODE - Allegro 5 API
7
9 #include <allegro5/allegro_audio.h>
10
11 enum ALLEGRO_PLAYMODE
12
14 Sample and stream playback mode.
15
16 • ALLEGRO_PLAYMODE_ONCE - the sample/stream is played from start to
17 finish an then it stops.
18
19 • ALLEGRO_PLAYMODE_LOOP - the sample/stream is played from start to
20 finish (or between the two loop points). When it reaches the end, it
21 restarts from the beginning.
22
23 • ALLEGRO_PLAYMODE_BIDIR - the sample is played from start to finish
24 (or between the two loop points). When it reaches the end, it re‐
25 verses the playback direction and plays until it reaches the begin‐
26 ning when it reverses the direction back to normal. This is mode is
27 rarely supported for streams.
28
29
30
31Allegro reference manual ALLEGRO_PLAYMODE(3)