allocate_voice(3alleg4) linux man page | unix.com

Man Page: allocate_voice

Operating Environment: linux

Section: 3alleg4

allocate_voice(3alleg4) 					  Allegro manual					   allocate_voice(3alleg4)

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, cen- tre 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(3alleg4), reallocate_voice(3alleg4), release_voice(3alleg4), load_sample(3alleg4) Allegro version 4.4.2 allocate_voice(3alleg4)
Related Man Pages
play_sample(3alleg4) - debian
exstream(3alleg4) - suse
exstream(3alleg4) - opendarwin
exstream(3alleg4) - php
play_sample(3alleg4) - linux
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
Please Donate to the Red Cross for Earthquake and Tsunami Relief in Japan
Answers to Recently Asked Questions about UNIX.COM
UNIX.com End of Year (EOY) Report (2019)