stuff-from-scratch/test/audio/unit/TestAudioWriter.cpp

18 lines
373 B
C++
Raw Normal View History

2022-12-01 10:52:48 +00:00
#include "TestFramework.h"
#include "TestUtils.h"
#include "AudioSample.h"
#include "AudioSynth.h"
#include "AudioWriter.h"
TEST_CASE(TestAudioWriterWav, "audio")
{
AudioWriter writer;
writer.setPath(TestUtils::getTestOutputDir() / "TestAudioWriterWav.wav");
AudioSynth synth;
const auto sample = synth.getSineWave(240, 5);
writer.write(sample);
};