﻿#pragma once

#include <array>

enum class SoundId
{
    TitleBgm,
    PlayingBgm,
    Jump,
    Land,
    GameOver,
    Goal,
    Count
};

class SoundManager
{
public:
    SoundManager();
    ~SoundManager();

    bool LoadAll();
    void PlayBgm(SoundId id);
    void PlaySe(SoundId id) const;
    void StopBgm();
    void Release();

private:
    static const std::size_t soundCount = static_cast<std::size_t>(SoundId::Count);
    std::array<int, soundCount> handles = {};
    SoundId currentBgm = SoundId::Count;
};
