THSound is a module (with documentation) to allow you to easily play samples from memory.
THSound provides an easy API to play WAV and ARMovie sound files using the Replay codecs, opening up the ability to use 16-bit sound.