Changeset 4393

Show
Ignore:
Timestamp:
02/18/09 13:43:03 (5 years ago)
Author:
piers
Message:

A hack to delay (by 1100ms) audio reconfigure when changing from PulseAudio? - which seems to take that long to release other devices e.g. ALSA,OSS

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/audio.c

    r3642 r4393  
    270270                if (sp->audio_device) { 
    271271                        audio_device_release(sp, sp->audio_device); 
     272                        if (strcasestr(audio_get_dev_name(prev_config.device),"PulseAudio")){ 
     273                            debug_msg("Sleeping for PulseAudio release.\n"); 
     274                            usleep(1100000); 
     275                        } 
    272276                } 
    273277