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

attempt to improve crackling in audio #18

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

Conversation

XenuIsWatching
Copy link
Contributor

@XenuIsWatching XenuIsWatching commented Sep 27, 2023

the issue here was that the destination buffer was using the same length as the source buffer and the destination buffer needs to be longer or shorter based on ratio between the input and output sample rates. This is still not a perfect solution and needs to be revisited for further improvement. [Draft PR for now]

Fixes #6

the issue here was that the destination buffer was using the same length as the
source buffer and the destination buffer needs to be longer or shorter based on
ratio between the input and output sample rates. This is still not a perfect
solution, and needs to be revisited for further improvement.
@Skurdt
Copy link
Owner

Skurdt commented May 28, 2024

I reworked some of the audio processing. The job used before did do the resampling, or at least tried... Audio stuff is not really something I understand fully.
The current state of the unity AudioProcessor do seem to work alright now.
I used a unity provided container instead of a custom CircularBuffer class, but also removed/skipped the existing NativeArray used for the samples processing (avoiding copies I guess...).

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.

Crackling sound on some cores
2 participants