Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

newSound

Description

Load a new sound from the specified path.

Arguments

1 string path

the path to the sound file.

2 string soundType

the sound type. Refer to the love2d documentation for this.

3 number volume

the volume level for the sound.

4 bool loop

whether the sound should play on loop.

Returns

1 Sound

the created sound.