LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
18.18k stars 877 forks source link

Remote session defaults to Audio sink after minimising Stream? #2913

Open Azuriye opened 1 month ago

Azuriye commented 1 month ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Hello, I have an issue with a specific game's audio capture.

When I use Virtual Sink (Steam Streaming Speaker) and launch the game all is fine until I decide to just minimise (not quit remote session) from Moonlight and then later remote back in there's no audio from the game only but audio still plays everywhere else (tested on a Youtube video).

What's odd is that when I do the above and enable "Play audio on PC" it uses my default speaker and when I do the exact scenario as described above, I don't have any of the above issue and audio plays in properly from the game to my Moonlight client (Android device).

After a bit more thorough testing I found out that when I minimise the stream it defaults to Audio sink but when I resume the remote session from where I left it switches back to Virtual sink. I think this switching of Audio devices is what's causing an issue in the first place with the game. Is there a way to possibly force it to use Virtual Sink at all times until the client decides to Quit remote session from Moonlight and then switch over to Audio sink?

To reproduce this bug,

1) Verify that "Play audio on PC" is unticked from Moonlight 2) Remote into Sunshine PC from Moonlight 3) Open Sound from Control Panel 4) Verify that the Virtual Sink is the default device 5) In Moonlight client do the back button hand gesture, or the button. 6) Verify that in Moonlight client there is a white play sign on top of whatever app you've launched for testing (Or just hold on the app and verify that Quit Session is present) 7) Check the host PC and the default device is switched back to Audio Sink 8) Now remote back again into the same app and as expected it reverts back to Virtual Sink

Expected Behavior

7a) Force it to use the Virtual Sink unless the Moonlight client instructs to Quit Session at which you revert back to Audio Sink.

Additional Context

I did the same test but with "Play audio on PC" ticked on Moonlight and despite me minimising the remote session and resuming it back the audio from the game doesn't cut off because the audio output doesn't change. But this isn't the case with Virtual Sink.

On Moonlight client when doing the back button gesture the logs say that the client disconnected and I am assuming that because of this behaviour Sunshine is reverting it back to Audio Sink while in reality the user did not Quit the Session but instead pause?

P.S: - Capture Method is set to None as I have left "Force a Specific Capture Method" to Autodetect (Recommended)

Host Operating System

Windows

Operating System Version

Windows 11 IoT Enterprise LTSC 10.0.26100 Build 26100

Architecture

64 bit

Sunshine commit or version

v2024.724.84421

Package

Windows - installer

GPU Type

Nvidia

GPU Model

GTX 1080

GPU Driver/Mesa Version

560.70

Capture Method

None

Config

resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1440
]
sunshine_name = azuriyePC
address_family = both
encoder = nvenc
nvenc_preset = 4

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "auto-detach": "true",
      "wait-all": "true",
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[2024:07:25:13:07:07]: Info: Sunshine version: v0.23.1
[2024:07:25:13:07:07]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:07:07]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:07:25:13:07:07]: Info: Compiling shaders...
[2024:07:25:13:07:07]: Info: Compiled shaders
[2024:07:25:13:07:08]: Info: System tray created
[2024:07:25:13:07:08]: Info: Trying encoder [nvenc]
[2024:07:25:13:07:08]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:07:25:13:07:08]: Info: Set GPU preference: 1
[2024:07:25:13:07:08]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:08]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:08]: Info: Using realtime GPU priority
[2024:07:25:13:07:08]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:08]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:08]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:08]: Info: Color depth: 8-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:07:08]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:08]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:08]: Info: Using realtime GPU priority
[2024:07:25:13:07:08]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:08]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:08]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:08]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:08]: Info: Color depth: 10-bit
[2024:07:25:13:07:08]: Info: Color range: [JPEG]
[2024:07:25:13:07:08]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:07:08]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:07:08]: Info: 
[2024:07:25:13:07:08]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:07:08]: Info: 
[2024:07:25:13:07:08]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:07:08]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:07:08]: Info: Configuration UI available at [https://localhost:47990]
[2024:07:25:13:07:09]: Info: Registered Sunshine mDNS service
[2024:07:25:13:07:33]: Info: Encoder reenumeration is required
[2024:07:25:13:07:33]: Info: Trying encoder [nvenc]
[2024:07:25:13:07:33]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:33]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:33]: Info: Using realtime GPU priority
[2024:07:25:13:07:33]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:33]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:33]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:33]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:33]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:07:33]: Info: Color depth: 8-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:07:33]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:33]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:33]: Info: Using realtime GPU priority
[2024:07:25:13:07:33]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:33]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:33]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:33]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:33]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:33]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:33]: Info: Color depth: 10-bit
[2024:07:25:13:07:33]: Info: Color range: [JPEG]
[2024:07:25:13:07:33]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:07:33]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:07:33]: Info: 
[2024:07:25:13:07:33]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:07:33]: Info: 
[2024:07:25:13:07:33]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:07:33]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:07:33]: Info: Executing: [steam://open/bigpicture] in [""]
[2024:07:25:13:07:33]: Info: Resolved user-provided command 'steam://open/bigpicture' to '"C:\Program Files (x86)\Steam\steam.exe" -- "steam://open/bigpicture"'
[2024:07:25:13:07:33]: Info: steam://open/bigpicture running with PID 24388
[2024:07:25:13:07:33]: Info: App exited gracefully within 5 seconds of launch. Treating the app as a detached command.
[2024:07:25:13:07:33]: Info: Adjust this behavior in the Applications tab or apps.json if this is not what you want.
[2024:07:25:13:07:34]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:07:34]: Info: nvprefs: No need to modify global profile settings
[2024:07:25:13:07:34]: Info: CLIENT CONNECTED
[2024:07:25:13:07:34]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:34]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:34]: Info: Using realtime GPU priority
[2024:07:25:13:07:34]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:34]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:34]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:34]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:34]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:34]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:07:34]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:34]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:34]: Info: Color depth: 8-bit
[2024:07:25:13:07:34]: Info: Color range: [MPEG]
[2024:07:25:13:07:34]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:07:44]: Info: Gamepad 0 will be Xbox 360 controller (default)
[2024:07:25:13:07:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:07:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:07:53]: Info: Using realtime GPU priority
[2024:07:25:13:07:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:07:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:07:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:07:53]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:07:53]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:07:53]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:07:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:07:53]: Info: Color depth: 8-bit
[2024:07:25:13:07:53]: Info: Color range: [MPEG]
[2024:07:25:13:07:53]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:19]: Info: CLIENT DISCONNECTED
[2024:07:25:13:08:52]: Info: Encoder reenumeration is required
[2024:07:25:13:08:52]: Info: Trying encoder [nvenc]
[2024:07:25:13:08:52]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:52]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:52]: Info: Using realtime GPU priority
[2024:07:25:13:08:52]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:52]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:52]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:52]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:52]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:52]: Info: SDR color coding [Rec. 601]
[2024:07:25:13:08:52]: Info: Color depth: 8-bit
[2024:07:25:13:08:52]: Info: Color range: [JPEG]
[2024:07:25:13:08:52]: Error: NvEnc: encoding format is not supported by the gpu
[2024:07:25:13:08:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:53]: Info: Using realtime GPU priority
[2024:07:25:13:08:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:53]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:08:53]: Info: Color depth: 10-bit
[2024:07:25:13:08:53]: Info: Color range: [JPEG]
[2024:07:25:13:08:53]: Info: NvEnc: created encoder P4 10-bit two-pass
[2024:07:25:13:08:53]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:13:08:53]: Info: 
[2024:07:25:13:08:53]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:13:08:53]: Info: 
[2024:07:25:13:08:53]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:07:25:13:08:53]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:07:25:13:08:53]: Info: nvprefs: No need to modify application profile settings
[2024:07:25:13:08:53]: Info: nvprefs: No need to modify global profile settings
[2024:07:25:13:08:53]: Info: CLIENT CONNECTED
[2024:07:25:13:08:53]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:08:53]: Info: Active GPU has HAGS enabled
[2024:07:25:13:08:53]: Info: Using realtime GPU priority
[2024:07:25:13:08:53]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:08:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:08:53]: Info: Requested frame rate [60fps]
[2024:07:25:13:08:53]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:08:53]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:08:53]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:08:53]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:08:53]: Info: Color depth: 8-bit
[2024:07:25:13:08:53]: Info: Color range: [MPEG]
[2024:07:25:13:08:53]: Info: NvEnc: created encoder P4 two-pass
[2024:07:25:13:08:54]: Info: Gamepad 0 will be Xbox 360 controller (default)
[2024:07:25:13:09:50]: Info: 
Device Description : NVIDIA GeForce GTX 1080
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B80
Device Video Mem   : 8059 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16340 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2024:07:25:13:09:50]: Info: Active GPU has HAGS enabled
[2024:07:25:13:09:50]: Info: Using realtime GPU priority
[2024:07:25:13:09:50]: Info: Desktop resolution [2560x1440]
[2024:07:25:13:09:50]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:09:50]: Info: Display refresh rate [59.951Hz]
[2024:07:25:13:09:50]: Info: Requested frame rate [60fps]
[2024:07:25:13:09:50]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:07:25:13:09:50]: Info: Adjusted capture rate to 59.951fps to better match display
[2024:07:25:13:09:50]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:07:25:13:09:50]: Info: SDR color coding [Rec. 709]
[2024:07:25:13:09:50]: Info: Color depth: 8-bit
[2024:07:25:13:09:50]: Info: Color range: [MPEG]
[2024:07:25:13:09:50]: Info: NvEnc: created encoder P4 two-pass
RebelliousX commented 1 month ago

I have similar issue that audio disappears when I try to resume the stream while the game is still playing on PC. I am suspecting that the wrong audio device is chosen when resuming instead of "Steam streaming Speakers".

I created an issue in Moonlight repo, since I wasn't sure if it is an issue with moonlight or sunshine. But it seems it is related to sunshine. 1407 which I probably should close that.