Triode,
I'm trying to replicate the "rate -v -s -M" I'm using for the back-end
resampling with the sox binary, using squeezelite and libsoxr. (For the
moment, my quick hack is in the flac decoder, in the callback, running
the decoded flac->PCM data through libsoxr before writing it to the
output stream). The thing is, that although I have it working, the
re-sampled output from libsoxr doesn't sound as good as when the
decoding is done on the back-end with sox. Now trying to figure out
why......
Have you started looking at this yet?
Code:
--------------------
soxr_io_spec_t io_spec = soxr_io_spec(SOXR_INT32_I, SOXR_INT32_I);
io_spec.scale = 0.9;
soxr_quality_spec_t q_spec = soxr_quality_spec(SOXR_VHQ | SOXR_MINIMUM_PHASE
| SOXR_STEEP_FILTER, 0);
soxr_runtime_spec_t const runtime_spec = soxr_runtime_spec(1);
soxr = soxr_create(
frame->header.sample_rate,
output_rate,
frame->header.channels, // channels
&error,
&io_spec, &q_spec, &runtime_spec);
--------------------
------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98544
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix