stuff-from-scratch/test/audio/integration/TestWasapiInterface.cpp

19 lines
413 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"
2023-01-05 13:16:52 +00:00
#include "AudioDevice.h"
2022-12-01 10:52:48 +00:00
#include "WasapiInterface.h"
TEST_CASE(TestWasapiInterface, "audio")
{
WasapiInterface audio_interface;
auto device = AudioDevice::Create();
2023-01-05 13:16:52 +00:00
AudioSynth synth;
const auto sample = synth.getSineWave(240, 5);
audio_interface.play(device.get(), sample.get(), 1000);
2022-12-01 10:52:48 +00:00
};