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

correct sample rate in wave export #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vogler75
Copy link

if the recording is downsampled the new sample rate must also be passed to encodeWAV so that the wave header includes the new/correct sample rate.

*Issue #22

Description of changes:
Extended the encodeWAV function with a argument "sampleRate", this sample rate is now written to the wave header (not using the global variable recordSampleRate anymore). And in the exportBuffer function I pass now the new samplerate to the encodeWAV function.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

if the recording is downsampled the new sample rate must also be passed to encodeWAV so that the wave header includes the new/correct sample rate.
@expatiating
Copy link

@vogler75 👍

@meronz
Copy link

meronz commented Feb 9, 2021

Please merge this one, i also have tested this and wasted time (re) fixing it.

@arteagac
Copy link

This is an important fix that should be merged.

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.

4 participants