Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

Description

       Alters  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 playing it has no effect.

Name

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

See Also

play_sample(3alleg4), exsample(3alleg4)

Allegro                                           version 4.4.3                           adjust_sample(3alleg4)

Synopsis

#include<allegro.h>voidadjust_sample(constSAMPLE*spl,intvol,intpan,intfreq,intloop);

See Also