#pragma once
#include <string>
#include <map>
#include "DxLib.h"
using namespace std;
///////////////////////////////////////////////
// 音を流すためのクラス。どこからでも鳴らせるようにするためシングルトンにする
//
//////////////////////////////////////////////
class SoundManager
{
public:
static SoundManager* instance()
{
static SoundManager thesound;
return &thesound;
}
bool loadFile(string filename);
bool play(string filename, int playType);
bool releaseFile(string filename);
bool releaseAll();
private:
//ファイルとハンドルの対応をmapコンテナで保持
map<string, int> SoundList;
private:
SoundManager();
SoundManager(const SoundManager& sound);
SoundManager& operator = (const SoundManager& sound);
~SoundManager();
};
最終更新:2008年11月26日 07:26