Dynamically generated sound, like stuff from Ken's Adlib emulator or a
module player, return a file with a PCM disposition, but with MIDI type
(in the Adlib case) or module type (for a module player). Calls to the
PCM functions synthesise enough sound and return it like a WAV file
would.



streaming mode is disabled
playsound sees if a sound is loaded for the audio in question.
if so,
  the audio buffer is fetched
if not,
  it opens the file and checks the disposition. midi files or cda can't be played as sounds.
  the length of the file is tested to see whether streaming should be used.
  if streaming isn't to be used,
    the file is decoded into a buffer and submitted for management.
    the file is closed.
if the file should be streamed,
  a channel is requested for streaming mode. the channel is supplied with the file handle.
otherwise,
  a channel is requested for regular mode and the audio buffer is supplied.
  


streaming mode does not keep any buffers persistant for any longer than they are queued for
playback.


a channel has an optional data source (used only for streamed sources) and a chain of playback
buffers (which is one link long for non-streamed sources)


OpenAL does not manage the buffer sharing as much anymore. It allocates the buffers and loads them
but bufferdata will distribute the correct data to the source, whether it be shared or not.


allocating an openal source in streaming mode means that the source handles freeing the streamed
buffers on its own when they finish playing. Freeing the channel doesn't do anything.
A non-streaming source doesn't free anything, rather when the channel is freed, the data is
released in the manager.