ADJUST_SAMPLE(3ALLEG4) - Linux man page online | Library functions
Alters the parameters of a sample while it is playing. Allegro game programming library.
adjust_sample(3alleg4) Allegro manual adjust_sample(3alleg4)
Allegro version 4.4.2 adjust_sample(3alleg4)
NAMEadjust_sample - Alters the parameters of a sample while it is playing. Allegro game pro‐ gramming library.
SYNOPSIS#include <allegro.h> void adjust_sample(const SAMPLE *spl, int vol, int pan, int freq, int loop);
DESCRIPTIONAlters the parameters of a sample while it is playing (useful for manipulating looped sounds). You can alter the volume, pan, and frequency, and can also clear the loop flag, which will stop the sample when it next reaches the end of its loop. The values of the parameters are just like those of play_sample(). If there are several copies of the same sample playing, this will adjust the first one it comes across. If the sample is not play‐ ing it has no effect.
SEE ALSOplay_sample(3alleg4), exsample(3alleg4)
|This manual||Reference||Other manuals|
|refer to||exsample(3alleg4) | play_sample(3alleg4)|