/***************************************************************
                           stream.h
 ***************************************************************/

module allegro.stream;

import allegro.digi;


struct AUDIOSTREAM
{
   int voice;                          /* the voice we are playing on */
   SAMPLE *samp;                       /* the sample we are using */
   int len;                            /* buffer length */
   int bufcount;                       /* number of buffers per sample half */
   int bufnum;                         /* current refill buffer */
   int active;                         /* which half is currently playing */
   void *locked;                       /* the locked buffer */
}

extern (C) {
AUDIOSTREAM* play_audio_stream (int len, int bits, int stereo, int freq, int vol, int pan);
void stop_audio_stream (AUDIOSTREAM *stream);
void* get_audio_stream_buffer (AUDIOSTREAM *stream);
void free_audio_stream_buffer (AUDIOSTREAM *stream);
}
