diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2014-11-11 17:30:17 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2014-11-11 17:30:17 +0000 |
commit | b3b6e6fd6b39e7f2bbbd8e2209302590d6d155eb (patch) | |
tree | 1e6aa9e0feb6ce30749bc9fa52dacb424378ba75 /tests/xttest_util.hpp | |
parent | 25a004e7c9d70ddf16e044536871cba2f818936d (diff) | |
download | LibXtract-b3b6e6fd6b39e7f2bbbd8e2209302590d6d155eb.tar.gz LibXtract-b3b6e6fd6b39e7f2bbbd8e2209302590d6d155eb.tar.bz2 LibXtract-b3b6e6fd6b39e7f2bbbd8e2209302590d6d155eb.zip |
Add sawtooth tests
Diffstat (limited to 'tests/xttest_util.hpp')
-rw-r--r-- | tests/xttest_util.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/xttest_util.hpp b/tests/xttest_util.hpp index 381f2cf..dbf075c 100644 --- a/tests/xttest_util.hpp +++ b/tests/xttest_util.hpp @@ -5,6 +5,9 @@ // Fill table with sine wave at given frequency and amplitude void xttest_gen_sine(double *table, uint32_t tablesize, double samplerate, double frequency, double amplitude); +// Fill table with sawtooth wave at given frequency and amplitude +void xttest_gen_sawtooth(double *table, uint32_t tablesize, double samplerate, double frequency, double amplitude); + // Fill table with noise at given frequency and amplitude // N.B. The implementation actually provides "fake" noise from a table for reproducible testing void xttest_gen_noise(double *table, uint32_t tablesize, double amplitude); |