Feature request - alternative sample rates

Mumble about Mumble

Feature request - alternative sample rates

Postby weegeez » Tue Jan 10, 2017 2:37 am

Dear devs,

First of all thank-you for making mumble happen, it's great.

I've signed up to the forum to make a suggestion to allow mumble to operate at sample rates other than the current 48 khz.

My favorite game is not 48khz and so windows SRC affects it's output and quality suffers as a result.
This is a XP specific problem, on Windows 7 you can force the output to 44.1.


Is it too much to add 44.1 support to mumble in the near future?
It's just that the sound team of the game in question spent considerable time field recording ambience and sounds and for the windows SRC to trash that is would be a shame.
According to Microsoft knowledge base article, if all outgoing rates are the same then no SRC takes place, the stream is simply mixed, not resampled.

Keep in min it's inevitable newer games too will probably play at 96khz soon if they do not already.

Mumble should be more game friendly in this respect I feel.

Hope you understand, I'm passionate about the game.

Thanks in advance.
weegeez
 
Posts: 4
Joined: Tue Jan 10, 2017 2:18 am

Re: Feature request - alternative sample rates

Postby kissaki » Sat Jan 21, 2017 10:47 am

Are you saying using Mumble changes the systems audio output setting?
MumPI: Your Mumble Web Interface in PHP
User avatar
kissaki
Team member
Team member
 
Posts: 1234
Joined: Sat Jan 09, 2010 12:15 pm

Re: Feature request - alternative sample rates

Postby weegeez » Sat Jan 21, 2017 11:54 am

Hi
The game is 44.1 and mumble (from what I've been told) works at 48k internally.
Because these do not match, the 44.1 stream will be re sampled to 48khz by default according to the windows direct sound sound layer (Kmixer). It usually rounds up butis dependent on sample rates supported by sound card, i.e. in rare case sound card is 44.1 only, mumble is re sampled instead, no problem here.

I will take back what I said about 96khz support because newer games will only supported on Win 7+ and that OS is more customizable.

So is 44.1 support a quick fix?
weegeez
 
Posts: 4
Joined: Tue Jan 10, 2017 2:18 am

Re: Feature request - alternative sample rates

Postby weegeez » Fri Jan 27, 2017 7:12 am

Any idea?
weegeez
 
Posts: 4
Joined: Tue Jan 10, 2017 2:18 am

Re: Feature request - alternative sample rates

Postby kissaki » Tue Jan 31, 2017 3:58 pm

There is a constant SAMPLE_RATE in Audio.h, which is set to 48000.

This is used in several places to initialize sound input and output systems and codecs.

Maybe setting it to a different value would work, I don’t know.
MumPI: Your Mumble Web Interface in PHP
User avatar
kissaki
Team member
Team member
 
Posts: 1234
Joined: Sat Jan 09, 2010 12:15 pm

Re: Feature request - alternative sample rates

Postby weegeez » Fri Feb 03, 2017 6:59 am

Interesting, I'd do some tests thanks!
weegeez
 
Posts: 4
Joined: Tue Jan 10, 2017 2:18 am

Re: Feature request - alternative sample rates

Postby mkrautz » Fri Mar 24, 2017 10:50 pm

There is nothing that really forces the WASAPI backend to use 48KHz. We could run it at something else, if there are compatibility issues.

For many other audio backends, we let the system choose. If it deems 44.1KHz a better fit, we will use that and resample to 48KHz on the fly for internal use.
mkrautz
Team member
Team member
 
Posts: 186
Joined: Wed Sep 23, 2009 4:57 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron