Skip to content

Commit 76a3032

Browse files
Apply suggestions from code review
Co-authored-by: matthewzhang-rbx <[email protected]>
1 parent 677b37c commit 76a3032

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/en-us/reference/engine/classes/SoundService.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ properties:
9292
Determines where to place an `Class.AudioListener` by default.
9393
If `Class.SoundService.DefaultListenerLocation` is `None`, then no `Class.AudioListener` will be created by default, but `Class.AudioListeners` can be created separately by scripts.
9494
If `Class.SoundService.DefaultListenerLocation` is `Camera`, then
95-
- an `Class.AudioListener` will be created and parented-to `Class.Workspace.CurrentCamera`
96-
- an `Class.AudioDeviceOutput` will be created and parented-to `Class.SoundService`
97-
- a `Class.Wire` will be created and parented-to the previously-created `Class.AudioListener`
95+
- an `Class.AudioListener` will be created and parented to `Class.Workspace.CurrentCamera`
96+
- an `Class.AudioDeviceOutput` will be created and parented to `Class.SoundService`
97+
- a `Class.Wire` will be created and parented to the previously-created `Class.AudioListener`
9898
- `Class.Wire.SourceInstance` will be set to the previously-created `Class.AudioListener`, and `Class.Wire.TargetInstance` will be set to the previously-created `Class.AudioDeviceOutput`
9999
So, the world will be heard from the perspective (postition and orientation) of your camera.
100100
101101
If `Class.SoundService.DefaultListenerLocation` is `Character`, then
102-
- an `Class.Attachment` will be created and parented-to your `Class.Players.LocalPlayer`'s `Class.Player.Character`'s `Class.Model.PrimaryPart`
103-
- an `Class.AudioListener` will be created and parented-to the `Class.Attachment`
104-
- an `Class.AudioDeviceOutput` will be created and parented-to `Class.SoundService`
105-
- a `Class.Wire` will be created and parented-to the previously-created `Class.AudioListener`
102+
- an `Class.Attachment` will be created and parented to your `Class.Players.LocalPlayer`'s `Class.Player.Character`'s `Class.Model.PrimaryPart`
103+
- an `Class.AudioListener` will be created and parented to the `Class.Attachment`
104+
- an `Class.AudioDeviceOutput` will be created and parented to `Class.SoundService`
105+
- a `Class.Wire` will be created and parented to the previously-created `Class.AudioListener`
106106
- `Class.Wire.SourceInstance` will be set to the previously-created `Class.AudioListener`, and `Class.Wire.TargetInstance` will be set to the previously-created `Class.AudioDeviceOutput`
107107
- the previously-created `Class.Attachment` will be updated once-per-frame to face the same direction as `Class.Workspace.CurrentCamera`
108108
So, the world will be heard from the position of your character, while matching the orientation of your camera.

0 commit comments

Comments
 (0)