<p dir="ltr">Hi Chris, thank you for your answer. </p>
<p dir="ltr">In your opinion the api exposed by my old creative version are the same api exposed by the newer openal soft? I mean is there a chance for me to update the libraries only, without working on the source code?</p>
<p dir="ltr">Thanks<br>
Alberto</p>
<div class="gmail_quote">Il 02/lug/2016 06:52, "Chris Robinson" <<a href="mailto:chris.kcat@gmail.com">chris.kcat@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 07/01/2016 12:37 AM, alberto box wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My implementation receive telephony quality audio streams from the network<br>
and uses OpenAL to merge and play them on the speakers. OpenAL audio input<br>
is 8KHz 16 bits.<br>
<br>
The final result on the speakers seems a bit distorted, a sort of metallic<br>
sound, thus I investigated further the problem using audacity to record the<br>
PC audio output (using Windows WASAPI loopback interface).<br>
<br>
It becames clear that the upsampling from 8KHz to the 44.1KHz (the rate<br>
requested by the final audio device) introduces distortion, because the<br>
added samples are computed as a linear interpolation between the adiacent<br>
original samples. Trying to upsamples the original audio using audacity<br>
produces a better audio and the samples are really smooth (it uses a<br>
different kind of interpolation).<br>
<br>
I guess the upsampling is internally performed by OpenAL (am I wrong?); I'm<br>
using a old version of the library (oalinst.exe properties shows version<br>
2.0.3.0 / 2007).<br>
</blockquote>
<br>
Creative's software driver only does linear resampling, unfortunately. OpenAL Soft defaults to linear, but has options for 4- or 8-point sinc resampling, and also has a variable 12- to 24-point sinc with antialiasing.<br>
<br>
Another option is to resample it manually, using a high quality resampler to increase it to 44.1khz before giving it to OpenAL, then the linear resampling noise will be less noticeable.<br>
_______________________________________________<br>
openal mailing list<br>
<a href="mailto:openal@openal.org" target="_blank">openal@openal.org</a><br>
<a href="http://openal.org/mailman/listinfo/openal" rel="noreferrer" target="_blank">http://openal.org/mailman/listinfo/openal</a></blockquote></div>