Phil Leigh;502906 Wrote:
> Michael - I'll have a listen to the filters. First I need to understand
> this issue around resampling of 96k files!
>
> Perhaps you could kindly explain how you changed the logic to
> selectively upsample?
> Thanks
> Phil
I added few lines to the Sox source code, that if certain parameter is
passed on command line, all effects will be disabled (including rate) if
the source file is high-rez (but not above 96KHz)
Code:
--------------------
//
// Michael
// Detect high-rez and skip effects
//
has_highrez = sox_false;
has_over_96KHz_rate = sox_false;
for (i = 0; i < input_count; i++) {
if (files[i]->ft->signal.precision > 16)
has_highrez = sox_true;
if (files[i]->ft->signal.rate > 96000)
has_over_96KHz_rate = sox_true;
}
// downsample all files with bitrate higher than 96KHz
//
if (has_over_96KHz_rate)
has_highrez = sox_false;
if (!has_highrez || !no_effects_highrez)
parse_effects(argc, argv);
--------------------
--
michael123
------------------------------------------------------------------------
michael123's Profile: http://forums.slimdevices.com/member.php?userid=23745
View this thread: http://forums.slimdevices.com/showthread.php?t=69145
_______________________________________________
audiophiles mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/audiophiles