carta
al_play_audio_stream(3alleg5)

al_play_audio_stream3alleg5

Allegro 5 api

Overview

Loads and plays an audio file, streaming from disk as it is needed. This API can only play one audio stream at a time. This requires a default mixer to be set, which is typically done via al_reserve_samples(3alleg5), but can also be done via al_set_default_mixer(3alleg5).

Returns the stream on success, NULL on failure. You must not destroy the returned stream, it will be automatically destroyed when the addon is shut down.

Note: the allegro_audio library does not support any audio file formats by default. You must use the allegro_acodec addon, or register your own format handler.

Since

5.2.8

[Unstable API]: New API.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.