Skip to content

Conversation

leleZeng
Copy link
Contributor

Description

Brief description of what this PR is about

  • This PR fixes the incorrect normalization of 16-bit PCM samples.
  • Previously, samples were divided by Short.MAX_VALUE (32767), causing -32768 to map slightly below -1.
  • Now, division by 32768.0 ensures all values remain within [-1,1].

@xyang16 xyang16 merged commit a5443b1 into deepjavalibrary:master Mar 19, 2025
5 checks passed
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.

3 participants