Homepage > Man Pages > Category > Subroutines
Homepage > Man Pages > Name > A

allocate_voice

man page of allocate_voice

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

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 sample, 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 manage up to 256 simultaneous voices, but that limit may be lower due to hardware reasons.
RETURN VALUE
Returns the voice number, or -1 if no voices are available.

SEE ALSO

deallocate_voice(3alleg), reallocate_voice(3alleg), release_voice(3alleg), load_sample(3alleg) ALLOCATE_VOICE(3)
 
 
 

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.
Contact · Imprint · Privacy

Page generated in 25.57ms.

holzspalter.name | backbar.es | www.daelim-forum.com