Add filtering tests.

This commit is contained in:
David Reid
2020-02-22 16:47:42 +10:00
parent e5aaffc299
commit 673dce1978
7 changed files with 393 additions and 22 deletions
@@ -1,26 +1,5 @@
#include "../test_common/ma_test_common.c"
#define DR_WAV_IMPLEMENTATION
#include "../../extras/dr_wav.h"
static drwav_data_format drwav_data_format_from_minaudio_format(ma_format format, ma_uint32 channels, ma_uint32 sampleRate)
{
drwav_data_format wavFormat;
wavFormat.container = drwav_container_riff;
wavFormat.channels = channels;
wavFormat.sampleRate = sampleRate;
wavFormat.bitsPerSample = ma_get_bytes_per_sample(format) * 8;
if (format == ma_format_f32) {
wavFormat.format = DR_WAVE_FORMAT_IEEE_FLOAT;
} else {
wavFormat.format = DR_WAVE_FORMAT_PCM;
}
return wavFormat;
}
#include "ma_test_generation_noise.c"
#include "ma_test_generation_waveform.c"