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

CPU intensity of resampling #239

Open
geoffw64 opened this issue Dec 17, 2024 · 0 comments
Open

CPU intensity of resampling #239

geoffw64 opened this issue Dec 17, 2024 · 0 comments

Comments

@geoffw64
Copy link

Hey Dan,
I have a question about resampling, as it seems to be expensive in terms of CPU.

Declarations:
univector audio_resampled(2229);
univector audio(2048);
samplerate_converter resampler = samplerate_converter(resample_quality::draft, 48000, 44100);

For each chunk of 2048 samples:
resampler.process(audio_resampled, audio);

This consumes approx. 40 sec CPU to process 4.9 million samples, on my 2018 Mac Mini (2.7GHz Core i5 with 6 cores). Is there are less CPU intensive way to do this?

Appreciate your help.

Thanks in advance,
Geoff.

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