Opening a preview for the video file in explore mode leaves the audio stream open until you close XnviewMP
Posted: Tue Nov 10, 2020 7:05 am
Version: 0.97.1, win 10 64 version 2004
Steps to reproduce:
- Start Xnview
- Navigate to a folder with a video and an image in explore mode
- Click on a video
- Click on an image
- Audio stream is now open until you close XnviewMP
Why is this important?
When audio stream is open, Windows cannot go to sleep mode on its own, because it thinks that something's trying to play sounds. To see if any audio streams are currently preventing windows from going to sleep, go to command line and type `powercfg -requests`.
It will say something like this:
SYSTEM:
[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0899&SUBSYS_18491898&REV_1000\4&1d2c9eed&0&0001)
An audio stream is currently in use.
What should be happening?
XnView should be immediately closing audio streams after it's done using them.
Could it be related to the issue in explore mode where sometimes the videos don't start in preview when you click from one video to the next?
Example of what it looks like:
https://i.imgur.com/KdKO3yg.png
Steps to reproduce:
- Start Xnview
- Navigate to a folder with a video and an image in explore mode
- Click on a video
- Click on an image
- Audio stream is now open until you close XnviewMP
Why is this important?
When audio stream is open, Windows cannot go to sleep mode on its own, because it thinks that something's trying to play sounds. To see if any audio streams are currently preventing windows from going to sleep, go to command line and type `powercfg -requests`.
It will say something like this:
SYSTEM:
[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0899&SUBSYS_18491898&REV_1000\4&1d2c9eed&0&0001)
An audio stream is currently in use.
What should be happening?
XnView should be immediately closing audio streams after it's done using them.
Could it be related to the issue in explore mode where sometimes the videos don't start in preview when you click from one video to the next?
Example of what it looks like:
https://i.imgur.com/KdKO3yg.png