Ejemplo n.º 1
0
void terminate_notify()
{
#if defined(SOUND_NOTIFY) || defined(BOX_NOTIFY)
    control_lock();

    if ( !Control.poll_active ) {
        control_unlock();
        return;
    }

    Control.poll_active = 0;
    control_unlock();

    graceful_clear();
#endif

#ifdef SOUND_NOTIFY
    int i = 0;
    for (; i < SOUNDS_SIZE; i ++) free(Control.sounds[i]);
    alutExit();
#endif /* SOUND_NOTIFY */

#ifdef BOX_NOTIFY
    notify_uninit();
#endif
}
Ejemplo n.º 2
0
void terminate_notify()
{    
#if defined(_SOUND_NOTIFY) || defined(_BOX_NOTIFY)    
    if ( !Control.poll_active ) return;    
    Control.poll_active = 0;
    
    graceful_clear();
#endif

#ifdef _SOUND_NOTIFY
    int i = 0;
    for (; i < SOUNDS_SIZE; i ++) free(Control.sounds[i]);
    close_device(output, Control.device_idx);
    alutExit();
#endif /* _SOUND_NOTIFY */
    
#ifdef _BOX_NOTIFY
    notify_uninit();
#endif
}