Load at least two prerecorded sounds, and demonstrate as many of these features as you can:

 playing them individually and simultaneously
 stopping before the end of the sound
 looping (preferably glitch-free)
 setting the volume of each sound
 stereo or 3D positional mixing
 performing other actions when marked times in the sound arrive
Describe:

 The supported audio formats, briefly.
 Whether it is suitable for game sound effects (low-latency start, resource efficiency, supports many simultaneous sounds, etc.)
 Whether it is suitable for playing music (long duration ).
[Note: If it seems to be a good idea, this task may be revised to specify a particular timeline rather than just 'demonstrate these features'.]

Where applicable, please categorize examples primarily by the audio facility used (library/API/program/platform) rather than the language if the language is incidental (e.g. "Mac OS X CoreAudio" or "mplayer" rather than "C" or "bash").

integer xPlaySound = 0
 
procedure play_sound()--string filename)
    if platform()=WINDOWS then
        string filename = join_path({getenv("SYSTEMROOT"),"Media","chord.wav"})
        if xPlaySound=0 then
            atom winmm = open_dll("winmm.dll")
            xPlaySound = define_c_proc(winmm,"sndPlaySoundA",{C_PTR,C_INT})
        end if
        c_proc(xPlaySound,{filename,1})
    elsif platform()=LINUX then
        system("paplay chimes.wav")
        system("paplay chord.wav")
    end if
end procedure
play_sound()