1ALLEGRO_SAMPLE_INSTANCE(3) Library Functions Manual ALLEGRO_SAMPLE_INSTANCE(3)
2
3
4

NAME

6       ALLEGRO_SAMPLE_INSTANCE
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              typedef struct ALLEGRO_SAMPLE_INSTANCE ALLEGRO_SAMPLE_INSTANCE;
12

DESCRIPTION

14       An  ALLEGRO_SAMPLE_INSTANCE  object represents a playable instance of a
15       predefined sound effect.  It holds information pertaining to the  loop‐
16       ing  mode,  loop  start/end points, playing position, etc.  An instance
17       uses the data from an ALLEGRO_SAMPLE(3) object.  Multiple instances may
18       be created from the same ALLEGRO_SAMPLE.  An ALLEGRO_SAMPLE must not be
19       destroyed while there are instances which reference it.
20
21       To be played, an ALLEGRO_SAMPLE_INSTANCE object must be attached to  an
22       ALLEGRO_VOICE(3)  object,  or  to  an  ALLEGRO_MIXER(3) object which is
23       itself attached to an ALLEGRO_VOICE object (or to another ALLEGRO_MIXER
24       object which is attached to an ALLEGRO_VOICE object, etc).
25
26
27
28Allegro reference manual                            ALLEGRO_SAMPLE_INSTANCE(3)
Impressum