-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improving data types. #6
Comments
If others agree, it would make sense to rename |
In fact,
This opens up the package to support new PCM encoded types like |
👍, looks good to me! |
I agree, this is definitely a step in the right direction as it simplifies the API and makes integration with independent backends easier. And, I also like that this brings it closer to the behaviour of the |
Something that struck me just recently is that if another package defines a function like this:
We can't directly convert
[]uint8
toaudio.PCM8Samples
because it is defined astype PCM8Samples []PCM8
instead oftype PCM8Samples []uint8
. This is in fact different from theimage
package which doesn't do this sort of custom type definition for individual pixels.I think it would make sense to remove the
PCM8
type and instead directly useuint8
(this goes for other types likePCM16
,F64
,ALaw
etc).The text was updated successfully, but these errors were encountered: