Description

Audio is a ZSharp library derived from Revive Engine’s Audio Library. It easy and convenient to play Sound on the fly.

Properties

Type Key Default Value
No available properties    

Methods

Return Type Name
Sound Play (soundName: string)
Sound New (soundName: string)
table Find (pattern: string?)

Property Descriptions


Method Descriptions

Sound Play(soundName: string)

  • Plays the specified sound with default values.
  • Function returns a Sound.

Examples:

local sound = Audio:Play("Boombox:Stepping Up");	-- Plays the sound;
sound.PlaybackSpeed = 2;	-- Change to play the audio at twice the speed.

Sound New(soundName: string)

  • Spawns a new sound, similarly to Audio:Play but it won’t auto play the sound.

table Find(pattern: string?)

  • pattern & search works the same as List
  • Returns a table of sound names that string.match the pattern.