free_audio_stream_buffer(3alleg)

free_audio_stream_buffer3alleg

Tells the audio stream player new data can be played. allegro game programming library.

Usage

#include <allegro.h>

void free_audio_stream_buffer(AUDIOSTREAM *stream);

Overview

Call this function after get_audio_stream_buffer() returns a non-NULL address, to indicate that you have loaded a new block of samples to that location and the data is now ready to be played. Example:

   mem_chunk = get_audio_stream_buffer(buffer);
   if (mem_chunk != NULL) {
      /* Refill the stream buffer. */
      ...
      free_audio_stream_buffer(buffer);
   }

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.