Playing audio streams. allegro game programming library.
#include <allegro.h>
Example exstream
This program shows how to use the audio stream functions to transfer large blocks of sample data to the sound card. In this case, the sample data is generated during runtime, and the resulting sound reminds of a car engine when you are accelerating.
AUDIOSTREAM(3alleg4), END_OF_MAIN(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), clear_to_color(3alleg4), desktop_palette(3alleg4), font(3alleg4), free_audio_stream_buffer(3alleg4), get_audio_stream_buffer(3alleg4), install_keyboard(3alleg4), install_sound(3alleg4), install_timer(3alleg4), keypressed(3alleg4), makecol(3alleg4), play_audio_stream(3alleg4), readkey(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), stop_audio_stream(3alleg4), textprintf_centre_ex(3alleg4), voice_start(3alleg4), voice_stop(3alleg4)