Skip to content
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
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rbxphogen
Copy link
Contributor

@rbxphogen rbxphogen commented Oct 17, 2024

Changes

Adds a description for SoundService.DefaultListenerLocation

Checks

By submitting your pull request for review, you agree to the following:

  • This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses.
  • I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses.
  • To the best of my knowledge, all proposed changes are accurate.

Adds a description for SoundService.DefaultListenerLocation
@github-actions github-actions bot added the engine reference Changes the Engine API Reference documentation label Oct 17, 2024
- 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`
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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

- 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`
Copy link
Contributor

Choose a reason for hiding this comment

The 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

Co-authored-by: matthewzhang-rbx <[email protected]>
@IgnisRBX
Copy link
Contributor

Since this is controlled by a Enum.ListenerLocation, it's best to put a very brief description of this property here, then fill out the options on the Enum.ListenerLocation page.

@rbxphogen
Copy link
Contributor Author

Since this is controlled by a Enum.ListenerLocation, it's best to put a very brief description of this property here, then fill out the options on the Enum.ListenerLocation page.

Makes sense; I'll submit a followup for that page

@rbxphogen
Copy link
Contributor Author

@IgnisRBX I created a PR for those docs here

Copy link

github-actions bot commented Nov 7, 2024

This pull request has been inactive for 14 days. If it remains inactive for another 7 days, it will close. Please update or comment on this pull request to keep it open. 🙏

@github-actions github-actions bot added the stale label Nov 7, 2024
@aetter aetter removed the stale label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine reference Changes the Engine API Reference documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants