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

Distortion in ogg encoder after 4 seconds in first recording of several recordings #46

Open
clecap opened this issue Apr 13, 2021 · 0 comments

Comments

@clecap
Copy link

clecap commented Apr 13, 2021

I use the recorder for doing repeated recordings.

In the first recording, at 2-4 seconds after the start of the recording there is a weird distortion of approximately 0.5 seconds. All the subsequent recordings with the same instance of the recorder are fine. My current work-around is to simply throw away the first recording (which in my workflow anyhow is a test of the audio settings of my mic preamp). Nevertheless it is annoying.

It seems to be different from the known issues #23 (comment) and #6 (comment) since I do not connect a destination to the mixer.

My naive suspicion was a bug in the initialization of the ogg code. However, I then realized that the problem is there with the mp3 and wav encoding as well.

I attached 4 samples packed in a zip file. In the wav case, the distortion is barely recognizable and one might have to listen to it several times.
Compressed file.zip

After a few more tests it seems to be connected with the bufferSize setting. I see the problem with a bufferSize of 1024 (which, oddly enough, is the browser default value of the system). I do not see the problem with larger buffer sizes.

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

No branches or pull requests

1 participant