Fix audio module: add NOMINMAX, include WASAPIBackend.h, add AudioClip and TransformComponent includes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <XCEngine/Audio/AudioSystem.h>
|
||||
#include <XCEngine/Audio/WASAPI/WASAPIBackend.h>
|
||||
#include <XCEngine/Components/AudioSourceComponent.h>
|
||||
#include <iostream>
|
||||
|
||||
@@ -15,7 +16,7 @@ void AudioSystem::Initialize(const AudioConfig& config) {
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
m_backend = std::make_unique<WASAPI::WASAPIBackend>();
|
||||
m_backend = std::make_unique<Audio::WASAPI::WASAPIBackend>();
|
||||
if (m_backend->Initialize(config)) {
|
||||
m_backend->Start();
|
||||
std::cout << "AudioSystem initialized successfully" << std::endl;
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#ifdef _WIN32
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
|
||||
#include <XCEngine/Audio/WASAPI/WASAPIBackend.h>
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
namespace XCEngine {
|
||||
namespace Audio {
|
||||
|
||||
Reference in New Issue
Block a user