//
// Created by sebastian on 04.08.26.
//

#ifndef COLORRACE_AUDIOLAYER_H
#define COLORRACE_AUDIOLAYER_H
#include "core/audio/SoundSource.h"
#include "layer/Layer.h"
#include "loader/assets/AssetManager.h"


namespace ludo {
    class AudioLayer :public engine::Layer {
    public:
        AudioLayer(engine::AssetManager& assetManager, engine::Keyboard &keyboard, engine::Mouse &mouse): Layer(keyboard, mouse), m_assetManager(assetManager)  {
        }

        void onUpdate(float deltaTime) override;

    protected:
        void onAttachImpl() override;
    private:
        engine::AssetManager& m_assetManager;
        std::vector<engine::audio::SoundSource> soundSources;
    };

}

#endif //COLORRACE_AUDIOLAYER_H
