void SoundSystemOAL::resume() { log::messageln("SoundSystemOAL::resume"); #if defined(__ANDROID__) alcResume(); #endif #if defined(__S3E__) alcMakeContextCurrent(_context); alcProcessContext(_context); #endif /* for (channels::iterator i = _channels.begin(); i != _channels.end(); ++i) { ChannelOAL& channel = *i; channel.resume(); } */ }
void Sound::Resume() { //Always check if openal is initialized if (!OpenALInit()) return; #ifdef ANDROID alcResume(); #endif alcMakeContextCurrent(sgContext); OpenALChannel* channel = 0; for (int i = 0; i < sgOpenChannels.size(); i++) { channel = (OpenALChannel*)(sgOpenChannels[i]); if (channel) { channel->resume(); } } alcProcessContext(sgContext); }