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

BassMix.ChannelSetMatrix() does not work when targeting .NET Core 3.0 #66

Closed
olitee opened this issue Nov 13, 2019 · 1 comment
Closed

Comments

@olitee
Copy link
Contributor

olitee commented Nov 13, 2019

Hi,

I've done some initial investigation, and logged the findings on the Bass Forums:
http://www.un4seen.com/forum/?topic=18712.msg131029#msg131029

But there appears to be an issue with both Bass.NET and ManagedBass when PInvoking the:

  • BASS_Mixer_ChannelSetMatrix
  • BASS_Mixer_ChannelGetMatrix

methods on the BassMix library.

Under .NET Framework/Core 2.0-2.2 the method works as expected, and you're able to set a float[,] matrix.

Under .NET Core 3.0, the same call using the same float[,] appears to succeed (returns true), but if you immediately GET the matrix to check it's state, it appears to be zeroed out - and the audio playback is silenced.

Might be worth checking to see what response (if any) we get from Ian@Un4Seen or Radio42 before we propose a fix.

In my post of the Bass Forum above, I have a proposed a workaround - but it requires a breaking change, so it's not ideal.

@olitee
Copy link
Contributor Author

olitee commented Apr 19, 2020

I'm going to close this issue, as it appears the issue has been resolved now in later versions of the .Net Core 3.0 and 3.1 SDKs. I'm going to assume the issue was an undocumented bug in the SDK that has now been fixed.

@olitee olitee closed this as completed Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant