Exemple #1
0
	void playSound(const string& mId)
	{
		if(getNoSound()) return;
		auto soundPtr(getSoundPtr(mId));
		if(soundPtr == nullptr) return;
		soundPtr->play();
	}
Exemple #2
0
	void playSound(string mId) { if(!getNoSound()) getSoundPtr(mId)->play(); }