HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: Odar on 2012-04-17 07:40:00

Title: Upsampling with SoX for all programs
Post by: Odar on 2012-04-17 07:40:00
Hello.

I am new here. I want to ask, if it is any possibility to resample audio through WASAPI in all programs. I am finding some software like SoX which could be running in background (probably as "fiter" or some service). When I run any application (Foobar2000, J River, XBMC for movies) it could resample audio to specified frequency sampling.

Any idea? Thank you.
Title: Upsampling with SoX for all programs
Post by: Kohlrabi on 2012-04-17 12:28:21
I am new here. I want to ask, if it is any possibility to resample audio through WASAPI in all programs. I am finding some software like SoX which could be running in background (probably as "fiter" or some service).

foobar2000 at least offers a built-in resampler (PPHS) DSP, which you can simply add to your DSP playback chain. lvqcl also created a SoX-based resampler for foobar2000 (http://www.hydrogenaudio.org/forums/index.php?showtopic=67373), which should perform slightly better than the built-in one, though arguably both perform well enough for actual music playback.

I guess other players offer similar built-in solutions.
Title: Upsampling with SoX for all programs
Post by: [JAZ] on 2012-04-17 19:37:54
The first thing you need to use your solution is, obviously, that the software supports WASAPI output.

The second thing you need is that it supports SHARED mode WASAPI (why would you need to resample in exclusive mode?)

And if you have these two things... Why isn't the samplerate/bitrate option in the properties of the playback device of windows enough?
That setting is even used for programs that output using the legacy "Waveout" and Directsound APIs.

(Don't start with "it's buggy", "it's low quality" bla bla bla. The only problem it existed was with the legacy waveout API resamping to/from high samplerates. Two things a bit opposed).