Closed liamappelbe closed 1 year ago
The nice thing about using those sine waves as tests was they were generated by audacity. So it was verification that my implementation matched an external source.
The simplest way to switch from the sine waves to the noise generator would be to change the write tests first, which would fail, then take the generated file and replace the goldens so that the write tests pass, then migrate the read tests. But this would essentially be duplicating the bijective tests. So instead I'll generate a golden for the raw float64 test, then open that in audacity, manually verify a few of the sample values, then save it to all the other formats.
The float64 bits of wav_write_test and raw_write_test produce different results on arm vs intel. Might be better to use a noise generator like this: