.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ALLEGRO_PLAYMODE" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP ALLEGRO_PLAYMODE - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include enum ALLEGRO_PLAYMODE \f[R] .fi .SH DESCRIPTION .PP Sample and stream playback mode. .IP \[bu] 2 ALLEGRO_PLAYMODE_ONCE - the sample/stream is played from start to finish an then it stops. .IP \[bu] 2 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. .IP \[bu] 2 ALLEGRO_PLAYMODE_LOOP_ONCE - just like ALLEGRO_PLAYMODE_ONCE, but respects the loop end point. .IP \[bu] 2 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.