Unix and Linux Discussions Tagged with loop |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
75,034 |
Shell Programming and Scripting |
|
|
|
4 |
10,845 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
9,704 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
13,480 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,881 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,923 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,807 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
16,566 |
Shell Programming and Scripting |
|
|
|
2 |
6,861 |
UNIX for Beginners Questions & Answers |
|
|
|
18 |
8,770 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
7,929 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,502 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
16,876 |
Shell Programming and Scripting |
|
|
|
5 |
9,695 |
Shell Programming and Scripting |
|
|
|
2 |
4,527 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,345 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,045 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
16,252 |
Shell Programming and Scripting |
|
|
|
6 |
10,070 |
Shell Programming and Scripting |
|
|
|
2 |
7,082 |
Shell Programming and Scripting |
|
|
|
1 |
3,624 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,433 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
9,457 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,711 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,218 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,761 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
17,330 |
Homework & Coursework Questions |
|
|
|
24 |
13,952 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,905 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
12,115 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,661 |
Shell Programming and Scripting |
|
|
|
7 |
9,338 |
Shell Programming and Scripting |
|
|
|
4 |
6,238 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
13,956 |
Shell Programming and Scripting |
|
|
|
0 |
20,892 |
Programming |
|
|
|
6 |
7,569 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
14,347 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
25,590 |
Solaris |
|
|
|
3 |
2,628 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,076 |
UNIX for Beginners Questions & Answers |
voice_set_playmode(3alleg4) Allegro manual voice_set_playmode(3alleg4)
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 (hav-
ing 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(3alleg4)