Is it possible to an app that listens to the Windows audio input to let the system save power?

149 Views Asked by At

From the moment we call Win API's WaveInOpen method the system won't sleep nor hibernate until this stream is closed. Is there any workaround for this?

1

There are 1 best solutions below

2
On BEST ANSWER

Wild guess: try calling SetThreadExecutionState(ES_CONTINUOUS) on the same thread that called WaveInOpen.