love.sound.newSoundData
Creates new SoundData from a filepath, File, or Decoder. It's also possible to create SoundData with a custom sample rate, channel and bit depth.

The sound data will be decoded to the memory in a raw format. It is recommended to create only short sounds like effects, as a 3 minute song uses 30 MB of memory this way.
soundData = love.sound.newSoundData( filename )
filename string The file name of the file to load.
soundData SoundData A new SoundData object.
soundData = love.sound.newSoundData( file )
file File A File pointing to an audio file.
soundData SoundData A new SoundData object.
soundData = love.sound.newSoundData( decoder )
decoder Decoder Decode data from this Decoder until EOF.
soundData SoundData A new SoundData object.
soundData = love.sound.newSoundData( samples, rate, bits, channels )
samples number Total number of samples.
rate (44100) number Number of samples per second
bits (16) number Bits per sample (8 or 16).
channels (2) number Either 1 for mono or 2 for stereo.
soundData SoundData A new SoundData object.