#pragma once

#include <vector>
#include <string>

namespace NSound
{
	extern std::string strResult;

	typedef struct SSoundData
	{
		float fTime;
		std::string strSoundFileName;
	} TSoundData;
	typedef struct SSoundInstance
	{
		uint32_t dwFrame;
		std::string strSoundFileName;
	} TSoundInstance;
	typedef std::vector<TSoundData> TSoundDataVector;
	typedef std::vector<TSoundInstance> TSoundInstanceVector;

	bool			LoadSoundInformationPiece(const char* c_szFileName, TSoundDataVector& rSoundDataVector, const char* c_szPathHeader = NULL);
	bool			SaveSoundInformationPiece(const char* c_szFileName, TSoundDataVector& rSoundDataVector);
	void			DataToInstance(const TSoundDataVector& c_rSoundDataVector, TSoundInstanceVector* pSoundInstanceVector);

	const char* GetResultString();
	void			SetResultString(const char* c_pszStr);
};
