Exemplo n.º 1
0
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();
    }
    */
}
Exemplo n.º 2
0
 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);
 }