get_audio_stream_buffer (3) - Linux Manuals
get_audio_stream_buffer: Tells you if you need to fill the audiostream or not. Allegro game programming library.
NAME
get_audio_stream_buffer - Tells you if you need to fill the audiostream or not. Allegro game programming library.SYNOPSIS
#include <allegro.h>
void *get_audio_stream_buffer(AUDIOSTREAM *stream);
DESCRIPTION
You must call this function at regular intervals while an audio stream is playing, to provide the next buffer of sample data (the smaller the stream buffer size, the more often it must be called). This function should not be called from a timer handler. Example:
void *mem_chunk; ... while (TRUE) { ... mem_chunk = get_audio_stream_buffer(buffer); if (mem_chunk != NULL) { /* Refill the stream buffer. */ } }