Exemplo n.º 1
0
	void Sound::stop()
	{
		if (!m_Playing)
			return;

#ifdef SPARKY_EMSCRIPTEN
		SoundManagerStop(m_Name.c_str());
#else
		ga_handle_stop(m_Handle);
#endif
		m_Playing = false;
	}
Exemplo n.º 2
0
	void Sound::Stop()
	{
		if (!m_Playing)
			return;

#ifdef SPARKY_PLATFORM_WEB
		SoundManagerStop(m_Name.c_str());
#else
		ga_handle_stop(m_Handle);
#endif
		m_Playing = false;
	}
Exemplo n.º 3
0
	void Sound::pause()
	{
		if (m_Playing)
		{
#ifdef SPARKY_EMSCRIPTEN
			SoundManagerPause(m_Name.c_str());
#else
			ga_handle_stop(m_Handle);
#endif
			m_Playing = false;
		}
		else
		{
#ifdef SPARKY_EMSCRIPTEN
			SoundManagerPlay(m_Name.c_str());
#else
			ga_handle_play(m_Handle);
#endif
			m_Playing = true;
		}
	}