You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library by the way, it's been super helpful!
If a file is 8bit, the PCMReader will properly convert to 16bit PCM. However, the PCMReader.getFileDurationMs method is calculating the duration based off the file size of the 8bit file but the frameSize and frameRate of the converted AudioFormat.
That method should use the encoded format instead of the decoded format to get the duration. The result is a final FFT with an incorrect number results by about half.
The text was updated successfully, but these errors were encountered:
Thanks for the library by the way, it's been super helpful!
If a file is 8bit, the PCMReader will properly convert to 16bit PCM. However, the PCMReader.getFileDurationMs method is calculating the duration based off the file size of the 8bit file but the frameSize and frameRate of the converted AudioFormat.
That method should use the encoded format instead of the decoded format to get the duration. The result is a final FFT with an incorrect number results by about half.
The text was updated successfully, but these errors were encountered: