Add PDF writer.
This commit is contained in:
parent
c05b7b6315
commit
9c116b1efd
72 changed files with 1819 additions and 114 deletions
|
@ -8,7 +8,9 @@
|
|||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <iostream>
|
||||
|
||||
class TestWriteWav : public TestCase
|
||||
|
@ -32,9 +34,11 @@ class TestAudioRender : public TestCase
|
|||
public:
|
||||
bool Run() override
|
||||
{
|
||||
#ifdef _WIN32
|
||||
WasapiInterface audio_interface;
|
||||
auto device = AudioDevice::Create();
|
||||
audio_interface.Play(device);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
@ -42,8 +46,9 @@ public:
|
|||
//int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
||||
int main()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
|
||||
|
||||
#endif
|
||||
std::cout << "into entry point" << std::endl;
|
||||
TestCaseRunner runner;
|
||||
//runner.AddTestCase("TestWriteNav", std::make_unique<TestWriteWav>());
|
||||
|
@ -51,6 +56,7 @@ int main()
|
|||
|
||||
const auto testsPassed = runner.Run();
|
||||
return testsPassed ? 0 : -1;
|
||||
|
||||
#ifdef _WIN32
|
||||
CoUninitialize();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue