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

in-memory resampling #3

Open
mgood7123 opened this issue Apr 24, 2020 · 0 comments
Open

in-memory resampling #3

mgood7123 opened this issue Apr 24, 2020 · 0 comments

Comments

@mgood7123
Copy link

mgood7123 commented Apr 24, 2020

could you provide an in-memory resampling example that works in memory instead of file pointers?

eg

int16_t in = InMemoryAudioFile;
int16_t out = nullptr;
int inSampleRate = 44100;
int outSampleRate = 48000;
int channelCount = 2;

// resample using soxr_process, assume out is allocated

pushToAudioDevice(out, outSampleRate, channelCount);
delete[] out;
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