void AudioSquall::onStartup(int argc, const char **argv) { if (SQUALL_Init(0) < 0) { SQUALL_Free(); fatal("AudioSquall::init(): can not initialize sound engine."); } }
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(); }
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; }
void HGE_Impl::_SoundDone() { SQUALL_Free(); }