Closed jamen closed 7 years ago
looks like i might have done the configs wrong on a few? some say ruby. I was using
That is just generate-travis
for them all.audio-shader
, forgot the config.
Interesting what is due way to assert results. Too precise comparison is no good, due to different delays, glitches etc. But too loose neither, in case if channels swapped or noise instead of a sine appeared.
Maybe using loose spectrum estimation would work, with fourier-transform. Or even better - detect N spectral peaks and use almost-equal for magnitudes/frequencies comparison.
Should think about audio-fft component, to convert audio data to frequencies data, maybe. Also some sort of peaks detector.
It is a bit different subject though.
Right now most of the tests don't pass on Travis. Here are the statuses: https://travis-ci.org/audiojs