Posts

Showing posts from January 17, 2019

Allow computer to sleep while playing audio from a Windows application

Image
0 1 I am working on a Windows 10 application that plays audio in the background. What I would like to be able to do is allow the computer to still go in to Sleep Mode while the audio is playing (as in, Power & Sleep Settings, Sleep after XX minutes). And by this, I mean stop playing the audio and go to Sleep (not continue playing while in Sleep). Is this even possible? Searching online hasn't been fruitful, as I can pretty much only find information on how to prevent Sleep, not enable it. Running powercfg.exe /requests shows the audio playback is indeed preventing sleep: SYSTEM: [DRIVER] Realtek High Definition Audio (...) An audio stream is currently in use. I am currently using the IAudioClient and IAudioRenderClient interfaces for playback, via client->Start(), renderClient->GetBuffer(). I could switch to a different API if necessary. However, whatever I use needs to allow other applications (VLC, YouTube, Windows sounds, etc.) to play audio as normal at

Can a US citizen with a criminal record travel to the UK?

Image
11 1 I have a friend with a criminal record who wants to go to London with me and I'm trying to determine if that is actually a possibility. This friend was convicted of a class A misdemeanor on Dec 14, 2011 for theft. The court disposition was deferred so they weren't sentenced to any jail time (although they were in jail shortly following their initial arrest and prior to their being bonded out). They were, however, placed on probation for two years. Since they were never actually sentenced to jail time it seems like, per TheInformationHub, that their visiting the UK shouldn't be a problem. uk us-citizens share | improve this question edited Jan 1 '17 at 4:47 Giorgio 31.8k 9 64 177 asked Jan 1 '17 at 4:15 neubert neubert 5,252 11 40 87 add a comment  |  11 1 I have a friend with a criminal record who wants to go to London with me and I'm trying to determine if that is actually a po