Skip to content

Conversation

lourendotco
Copy link

there seems to be some confusion in the previous comment.

there seems to be some confusion in the previous comment.
Copy link
Collaborator

@mjwilson-google mjwilson-google left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I think you're right, and this is much more clear.

I have a couple of nits/questions; please let me know what you think.

Comment on lines +83 to +84
startByteOffset >> 2,
endByteOffset >> 2);
Copy link
Collaborator

Choose a reason for hiding this comment

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

For even more clarity, what do you think about either of these options?

  1. Make the 2 a named constant like FLOAT32_INDEX_SHIFT

or

  1. Use division by BYTES_PER_SAMPLE along with Math.floor()

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.

2 participants