-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a description for SoundService.DefaultListenerLocation #868
Draft
rbxphogen
wants to merge
4
commits into
main
Choose a base branch
from
DefaultListenerLocation-description
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
677b37c
Add a description for SoundService.DefaultListenerLocation
rbxphogen 76a3032
Apply suggestions from code review
rbxphogen 2ee9be3
Apply suggestions from code review
rbxphogen 87cc130
Merge branch 'main' into DefaultListenerLocation-description
aetter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,8 +86,29 @@ properties: | |
capabilities: [] | ||
writeCapabilities: [] | ||
- name: SoundService.DefaultListenerLocation | ||
summary: '' | ||
description: '' | ||
summary: | | ||
Determines where (if anywhere) to place an `Class.AudioListener` by default. | ||
description: | | ||
Determines where to place an `Class.AudioListener` by default. | ||
If `Class.SoundService.DefaultListenerLocation` is `None`, then no `Class.AudioListener` will be created by default, but `Class.AudioListeners` can be created separately by scripts. | ||
If `Class.SoundService.DefaultListenerLocation` is `Camera`, then | ||
- an `Class.AudioListener` will be created and parented to `Class.Workspace.CurrentCamera` | ||
- an `Class.AudioDeviceOutput` will be created and parented to `Class.SoundService` | ||
- a `Class.Wire` will be created and parented to the previously-created `Class.AudioListener` | ||
- `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` | ||
As a result, the world will be heard from the perspective (postition and orientation) of your camera. | ||
|
||
If `Class.SoundService.DefaultListenerLocation` is `Character`, then | ||
- an `Class.Attachment` will be created and parented to your `Class.Players.LocalPlayer`'s `Class.Player.Character`'s `Class.Model.PrimaryPart` | ||
- an `Class.AudioListener` will be created and parented to the `Class.Attachment` | ||
- an `Class.AudioDeviceOutput` will be created and parented to `Class.SoundService` | ||
- a `Class.Wire` will be created and parented to the previously-created `Class.AudioListener` | ||
- `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` | ||
- the previously-created `Class.Attachment` will be updated once-per-frame to face the same direction as `Class.Workspace.CurrentCamera` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could move this line to be indented under the earlier line about the Attachment |
||
As a result, the world will be heard from the position of your character, while matching the orientation of your camera. | ||
|
||
If `Class.SoundService.DefaultListenerLocation` is `Default`, then its behavior depends on the value of `Class.VoiceChatService.EnableDefaultVoice` and `Class.VoiceChatService.UseAudioApi`. | ||
When using the default voice setup with the audio API, this behaves similarly to `Camera`. | ||
code_samples: [] | ||
type: ListenerLocation | ||
tags: [] | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation supports nested lists, right? We could indent this one forward to put it under the previous line about the wire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that need special syntax? I'm not familiar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm I would think you indent the bullet one more time but I don't know how legit that is