(AGK version: 108.13)
Submitted: 2013-06-16 02:54:13
// load a sound file from an uncompressed wav file
sound = LoadSound("my_sound.wav")

do
    // each time the screen is touched, start playing another instance of the sound
    if GetPointerPressed()
        PlaySound(sound)
    endif
    // display how many instances of the sound are currently playing
    Print("Instances of Sound Playing: " + Str(GetSoundsPlaying(sound)))
    // update the screen
    Sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.