Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

newSoundNamed

Description

Load a sound object from the specified path with the specified name.

Arguments

1 string name

the name to give to the sound.

2 string path

the path to the sound file.

3 string soundType

the sound type. Refer to love2d documentation for this.

4 number volume

the volume level for this sound.

5 bool loop

whether the sound should play on loop.

Returns

1 Sound

the newly created sound object.