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

A bunch of small fixes and improvements #29

Closed
wants to merge 4 commits into from

Conversation

Keithcat1
Copy link
Contributor

This pull request:
Upgrades to Miniaudio v0.10.42
Makes Malgo a Go module
Uses unsafe.Slice to create slices pointing to C memory in the device data callback. Unsafe.Slice was introduced in Go 1.17, but we should really use it since it's likely more safe / reliable / understandable than what we were using.
Changes DeviceInfo.Name to not return a string with null bytes.

Fixes #28

@gen2brain
Copy link
Owner

I am not sure about that unsafe.Slice, is nice, and probably is safer but it is too early for that. Not even all CI systems got support for 1.17. I am for that change, but not since day one I guess.

@Keithcat1 Keithcat1 closed this Sep 16, 2021
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.

DeviceInfo.Name function returns a string with null bytes in it
2 participants