Skip to content

Conversation

hiroshihorie
Copy link
Member

No description provided.

Copy link

github-actions bot commented Jul 15, 2025

⚠️ This PR does not contain any files in the .changes directory.

@hiroshihorie hiroshihorie requested a review from pblazej July 22, 2025 14:13

// Reference to mainMixerNode
weak var mainMixerNode: AVAudioMixerNode?
var outputVolume: Float = 1.0
Copy link
Contributor

@pblazej pblazej Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hypothetically we could just read it from mainMixerNode defaulting ?? to 0 (as a computed prop). Less state, fewer errors.

Copy link
Member Author

@hiroshihorie hiroshihorie Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing that, but my intention was that the user might want to mutate outputVolume before mainMixerNode is assigned to that variable, since it’s only first assigned when audio is used.

Copy link
Contributor

@pblazej pblazej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, works 👍

@hiroshihorie hiroshihorie merged commit d59536a into main Jul 23, 2025
13 of 20 checks passed
@hiroshihorie hiroshihorie deleted the hiroshi/audio-output-volume branch July 23, 2025 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants