1adjust_sample(3)                Allegro manual                adjust_sample(3)
2
3
4

NAME

6       adjust_sample  - Alters the parameters of a sample while it is playing.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void adjust_sample(const SAMPLE *spl, int vol, int pan, int  freq,  int
14       loop);
15

DESCRIPTION

17       Alters  the  parameters  of  a  sample  while it is playing (useful for
18       manipulating looped sounds). You can alter the volume,  pan,  and  fre‐
19       quency,  and  can  also clear the loop flag, which will stop the sample
20       when it next reaches the end of its loop. The values of the  parameters
21       are  just  like  those of play_sample(). If there are several copies of
22       the same sample playing, this  will  adjust  the  first  one  it  comes
23       across. If the sample is not playing it has no effect.
24
25

SEE ALSO

27       play_sample(3), exsample(3)
28
29
30
31Allegro                          version 4.4.2                adjust_sample(3)
Impressum