.\" Generated by the Allegro makedoc utility .TH voice_check 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME voice_check \- Checks whether a voice is currently allocated. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B SAMPLE *voice_check(int voice); .SH DESCRIPTION Checks whether a voice is currently allocated. .SH "RETURN VALUE" Returns a pointer to the sample that the voice is using, or NULL if the voice is inactive (ie. it has been deallocated, or the release_voice() function has been called and the sample has then finished playing). .SH SEE ALSO .BR allocate_voice (3alleg4), .BR voice_start (3alleg4), .BR voice_get_position (3alleg4)