-
Notifications
You must be signed in to change notification settings - Fork 126
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
Return early when the length of incoming data is zero #597
base: master
Are you sure you want to change the base?
Conversation
On debug builds zero data length was crashing in PodMove/Zero/Copy() methods used by auto_array.
This is the fix for the following crash in firefox:
|
Is I guess the cause hitting that assertion is because the If If we should avoid using resampler when
I am not sure if it's proper to allow for giving a |
The
My opinion is that we must continue using resampler when the Now if we want to avoid calling the |
Does the output callback come before the input callback so there is no data in the input buffer (e.g., the output callback is the first callback, before input callback, for a duplex stream)? Should silent frames be appended in this case? I wonder if we would hear some noise without appending some silent frames. IIRC, https://github.com/ChunMinChang/cubeb-coreaudio-rs/pull/79 dealt with a similar issue: there is a glitch when output callback comes before input callback. @padenot: Do you remember what happened in that PR? From the perspective of |
Yes, that's why
Regarding passthrough resampler, I would expect that silence will be added right after, here |
Cool. I have nothing to worry if the silent frames would be appended automatically. |
On debug builds zero data length was crashing in PodMove/Zero/Copy() methods used by auto_array.