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

directsound playback breaks with trimming enabled #1191

Open
ispysoftware opened this issue Oct 23, 2024 · 1 comment
Open

directsound playback breaks with trimming enabled #1191

ispysoftware opened this issue Oct 23, 2024 · 1 comment

Comments

@ispysoftware
Copy link

Setting
<PublishTrimmed>false</PublishTrimmed> in the .csproj file of any app using net6.0+ breaks directsound playback.
Seems like it's stripping out com references - needs some annotations in there to prevent stripping.
Adding TrimmerRootAssembly and messing with TrimMode doesn't seem to have any effect.
Disabling trimming fixes it but results in a 200mb file instead of a 50mb file

@ispysoftware
Copy link
Author

I started rewriting things to get it to work but ended up needing to turn WaveFormat into a struct which opened up a whole can of worms.
Workaround is to use SDL via nuget instead of DirectSound

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

No branches or pull requests

1 participant