Methods
Music:fade(to: number?, speed: number?, callback: fun( Music)?)
Arguments:
to: number? | |
speed: number? | |
callback: fun( Music)? |
Music:play(music: string?, volume: number?, pitch: number?)
Arguments:
music: string? | |
volume: number? | |
pitch: number? |
Music:playFile(path: string?, volume: number?, pitch: number?, name: string?)
Arguments:
path: string? | |
volume: number? | |
pitch: number? | |
name: string? |
Fields
Music.source: love.Source|nil
A Source represents audio you can play back.
You can do interesting things with Sources, like set the volume, pitch, and its position relative to the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources.
The Source controls (play/pause/stop) act according to the following state table.