voice_set_playmode man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

voice_set_playmode(3)		Allegro manual		 voice_set_playmode(3)

NAME
       voice_set_playmode  -  Adjusts  the loop status of the specified voice.
       Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       void voice_set_playmode(int voice, int playmode);

DESCRIPTION
       Adjusts the loop status of the specified voice. This can be done	 while
       the  voice is playing, so you can start a sample in looped mode (having
       set the loop start and end positions to the  appropriate	 values),  and
       then  clear  the	 loop  flag when you want to end the sound, which will
       cause it to continue past the loop end, play the subsequent part of the
       sample,	and finish in the normal way. The mode parameter is a bitfield
       containing the following values:

       PLAYMODE_PLAY

       Plays the sample a single time. This is the default if  you  don't  set
       the loop flag.

       PLAYMODE_LOOP

       Loops  repeatedly  through  the	sample, jumping back to the loop start
       position upon reaching the loop end.

       PLAYMODE_FORWARD

       Plays the sample from beginning to end. This  is	 the  default  if  you
       don't set the backward flag.

       PLAYMODE_BACKWARD

       Reverses the direction of the sample. If you combine this with the loop
       flag, the sample jumps to the loop end position upon reaching the  loop
       start  (ie.  you	 do  not need to reverse the loop start and end values
       when you play the sample in reverse).

       PLAYMODE_BIDIR

       When used in combination with the  loop	flag,  causes  the  sample  to
       change  direction  each	time  it reaches one of the loop points, so it
       alternates between playing forwards and in reverse.

SEE ALSO
Allegro				 version 4.4.2		 voice_set_playmode(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net