Skip to content

Fix soundplayer assertion failure #62323

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

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

danmoseley
Copy link
Member

Fix #62305

Recent nullable annotations inadvertently added an invalid assert.
Removed assert. Verified that if loadSync is true, then _stream is non null, and add null forgiving operator.
Verified all tests now pass including. outer loop

@danmoseley danmoseley requested a review from buyaa-n December 3, 2021 05:44
@ghost
Copy link

ghost commented Dec 3, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

Removed assert. Verified that if loadSync is true, then _stream is non null, and add null forgiving operator.

Makes sense, thanks!

@stephentoub stephentoub merged commit 7f4ff34 into dotnet:main Dec 3, 2021
@danmoseley danmoseley deleted the fix.soundplayer2 branch December 3, 2021 17:39
@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.Windows.Extensions outerloop test SoundPlayerTests.LoadAsync_SourceLocationFromNetwork_Success failing
3 participants