Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
allocate_voice(3)		 Allegro manual 	       allocate_voice(3)

NAME
     allocate_voice  -	Allocates  a sound card voice for a sample. Allegro game
     programming library.

SYNOPSIS
     #include <allegro.h>

     int allocate_voice(const SAMPLE *spl);

DESCRIPTION
     Allocates a sound card voice and prepares it for playing the specified sam-
     ple, setting up sensible default parameters (maximum volume, centre pan, no
     change of pitch, no looping). When you are finished with the voice you must
     free it by calling deallocate_voice() or release_voice().	Allegro can man-
     age up to 256 simultaneous voices, but that limit may be lower due to hard-
     ware reasons.

RETURN VALUE
     Returns the voice number, or -1 if no voices are available.

SEE ALSO
     deallocate_voice(3), reallocate_voice(3), release_voice(3), load_sample(3)

Allegro 			  version 4.4.3 	       allocate_voice(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=allocate_voice&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help