Exemple #1
0
	void AudioSquall::onStartup(int argc, const char **argv) {

		if (SQUALL_Init(0) < 0) {
			SQUALL_Free();
			fatal("AudioSquall::init(): can not initialize sound engine.");
		}

	}
Exemple #2
0
	void AudioSquall::onShutdown() {

		ResourceMan <Sound> *man = SoundRef::getManager();
		if (man == NULL) return;
		for (int i=0; i<man->getItemsCount(); i++) {
			man->getItem(i).data->stop();
		}
		SQUALL_Free();
	}
Exemple #3
0
bool HGE_Impl::_SoundInit()
{
    squall_parameters_t parameters;
    parameters.Window = this->System_GetState(HGE_HWND);
    if (SQUALL_Init(0) < 0)
    {
        SQUALL_Free();
        return false;
    }
    return true;
}
Exemple #4
0
void HGE_Impl::_SoundDone()
{
    SQUALL_Free();
}