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

Higher supported sample rates? #14

Closed
Aerocatia opened this issue Jul 3, 2018 · 3 comments
Closed

Higher supported sample rates? #14

Aerocatia opened this issue Jul 3, 2018 · 3 comments

Comments

@Aerocatia
Copy link

Would it be possible to support higher sample rates, like 48000 or 96000kHz?

@duncanthrax
Copy link
Owner

duncanthrax commented Jul 3, 2018

A higher static sample rate is trivial, if you want to build yourself, just look for

#define MIN_SAMPLE_RATE             44100   // Min Sample Rate
#define MAX_SAMPLE_RATE             44100   // Max Sample Rate

in scream.h. The Windows audio subsystem will resample as required. You might also want to modify CHUNK_SIZE in savedata.cpp so that an even number of samples fits in exactly one packet. Dynamic sample rates aren't possible with the current "protocol" (in quotes, because there isn't any :) ).

Making the static rate configurable might be possible, I'll check that out next time I do a build.

@Teteros
Copy link

Teteros commented Jul 21, 2018

I'd like to add to the above that the receivers also need to be modified and rebuild or you will get sped up or slowed down playback on Linux if there's a sample rate mismatch between the receiver/scream.

Alsa / Pulse lines to change.

@duncanthrax
Copy link
Owner

It took a while, but this has now been added. See the front page.

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

3 participants