1al_set_sample_instance_length(3)              al_set_sample_instance_length(3)
2
3
4

NAME

6       al_set_sample_instance_length - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              bool al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE *spl,
12                 unsigned int val)
13

DESCRIPTION

15       Set  the  length  of the sample instance in sample values.  This can be
16       used to play only parts of the underlying sample.  Be  careful  not  to
17       exceed the actual length of the sample data, though.
18
19       Return  true  on  success,  false  on failure.  Will fail if the sample
20       instance is currently playing.
21

SEE ALSO

23       al_get_sample_instance_length(3)
24
25
26
27Allegro reference manual                      al_set_sample_instance_length(3)
Impressum