Example #1
0
/**
 * @brief Pauses all sounds.
 */
void sound_al_pause (void)
{
   soundLock();
   al_pausev( source_ntotal, source_total );
   /* Check for errors. */
   al_checkErr();
   soundUnlock();
}
Example #2
0
/**
 * @brief Pauses a group.
 */
void sound_al_pauseGroup( int group )
{
   alGroup_t *g;
   g = sound_al_getGroup( group );
   if (g == NULL)
      return;

   soundLock();
   al_pausev( g->nsources, g->sources );
   soundUnlock();
}
Example #3
0
/**
 * @brief Pauses a group.
 */
void sound_al_pauseGroup( int group )
{
   int i;
   alGroup_t *g;

   for (i=0; i<al_ngroups; i++) {
      if (al_groups[i].id == group) {
         g = &al_groups[i];
         soundLock();
         al_pausev( g->nsources, g->sources );
         soundUnlock();
         break;
      }
   }

   if (i>=al_ngroups)
      WARN("Group '%d' not found.", group);
}