Skip to content

care.temp.audio.newSource

Function

Creates an audio source. (This is temporary and just here to test the API docs.)

Syntax

source = care.temp.audio.newSource(path)

Arguments

Name Type Description
path string Path to an audio file.

Returns

Name Type Description
source care.temp.audio.Source new audio source.

Example

local music = care.temp.audio.newSource('music.mp3')