Open Asterune
SoundService

SoundService

Controls global audio settings, listeners, and audio streams.

Service
game:GetService("SoundService")
Inherits
Instance
Replication
Never

Behavior

SoundService controls global audio settings, listeners, and audio streams.

Summary

Members12
Properties8
Methods4

Properties

AmbientReverb

SoundService.AmbientReverb: Enum.ReverbType = Enum.ReverbType.NoReverb

The global room-reverb preset.

DistanceFactor

SoundService.DistanceFactor: number = 10

The conversion factor used for spatial audio distances.

DopplerScale

SoundService.DopplerScale: number = 1

The multiplier applied to Doppler pitch shifts.

ListenerObject

SoundService.ListenerObject: Instance? = nil

The Instance used as the spatial audio listener.

ListenerType

SoundService.ListenerType: Enum.ListenerType = Enum.ListenerType.Camera

The transform source used for spatial audio listening.

MasterVolume

SoundService.MasterVolume: number = 1

The global audio volume multiplier.

RespectFilteringEnabled

SoundService.RespectFilteringEnabled: boolean = true

Whether the audio service respects sound filtering settings.

RolloffScale

SoundService.RolloffScale: number = 1

The multiplier applied to distance attenuation.

Methods

GetAudioTime

SoundService:GetAudioTime(): number

Returns the audio playback clock, in seconds.

GetExecutionGroup

SoundService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetListener

SoundService:GetListener(): (EnumItem, (Instance | CFrame)?)

Returns the current listener mode and source.

SetListener

SoundService:SetListener(listenerType: EnumItem, listener: (Instance | CFrame)?): ()

Selects the spatial audio listener mode and transform source.

Inherited members

Inherited47

Instance