mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Add filtering tests.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user