Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make audio to work running sunshine on windows. #258

Closed
hradec opened this issue Jul 18, 2022 · 2 comments
Closed

Can't make audio to work running sunshine on windows. #258

hradec opened this issue Jul 18, 2022 · 2 comments
Labels
audio:windows Audio issue in Windows os:Windows OS is Windows stale

Comments

@hradec
Copy link

hradec commented Jul 18, 2022

Describe the Bug

No matter what audio sink I setup, I get no audio on moonlight.
Sunshine spits this error when moonlight client connects:

[2022:07:18:12:57:27]: Error: Couldn't create audio policy config: [0x80040154]
[2022:07:18:12:57:27]: Warning: There will be no audio

Expected Behavior

No response

Additional Context

my audio devices as listed by audio-info.exe:

====== Found 4 audio devices ======
===== Device =====
Device ID          : {0.0.0.00000000}.{78b53a59-05a8-4657-b105-bcd1e9787fed}
Device name        : Speakers (Realtek High Definition Audio)
Adapter name       : Realtek High Definition Audio
Device description : Speakers
Device state       : Active

Mono: unsupported
Stereo: supported
Surround 5.1: unsupported
Surround 7.1: unsupported
===== Device =====
Device ID          : {0.0.0.00000000}.{8c82c530-5e62-409a-af7c-b23cb0057641}
Device name        : VoiceMeeter Input (VB-Audio VoiceMeeter VAIO)
Adapter name       : VB-Audio VoiceMeeter VAIO
Device description : VoiceMeeter Input
Device state       : Active

Mono: unsupported
Stereo: unsupported
Surround 5.1: unsupported
Surround 7.1: unsupported
===== Device =====
Device ID          : {0.0.0.00000000}.{ea2e4fc9-e194-47cf-b125-bf3a16064252}
Device name        : Speakers (NoMachine Microphone Adapter)
Adapter name       : NoMachine Microphone Adapter
Device description : Speakers
Device state       : Active

Mono: unsupported
Stereo: unsupported
Surround 5.1: unsupported
Surround 7.1: unsupported
===== Device =====
Device ID          : {0.0.0.00000000}.{ea71da2e-700d-4e4f-beb3-504d354c3112}
Device name        : Speakers (Echo Dot-9E8 Stereo)
Adapter name       : Echo Dot-9E8 Stereo
Device description : Speakers
Device state       : Active

Mono: unsupported
Stereo: unsupported
Surround 5.1: unsupported
Surround 7.1: unsupported

sunshine log:

C:\Users\JuanManuel\Downloads\Sunshine-Windows>sunshine.exe
[audio_sink] -- [{0.0.0.00000000}.{ea71da2e-700d-4e4f-beb3-504d354c3112}]
[nv_coder] -- [auto]
[origin_pin_allowed] -- [wan]
[resolutions] -- [[
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    2560x1080,
    3440x1440,
    1920x1200,
    3860x2160,
    3840x1600
]]
[gamepad] -- [x360]
[upnp] -- [disabled]
[nv_preset] -- [default]
[amd_rc] -- [auto]
[hevc_mode] -- [0]
[nv_rc] -- [auto]
[amd_quality] -- [default]
[origin_web_ui_allowed] -- [lan]
[min_log_level] -- [2]
[fps] -- [[10,30,60,90,120]]
[key_rightalt_to_key_win] -- [disabled]
[2022:07:18:12:57:22]: Info: Compiling shaders...
[2022:07:18:12:57:22]: Info: Compiled shaders
[2022:07:18:12:57:22]: Info: //////////////////////////////////////////////////////////////////
[2022:07:18:12:57:22]: Info: //                                                              //
[2022:07:18:12:57:22]: Info: //   Testing for available encoders, this may generate errors.  //
[2022:07:18:12:57:22]: Info: //   You can safely ignore those errors.                        //
[2022:07:18:12:57:22]: Info: //                                                              //
[2022:07:18:12:57:22]: Info: //////////////////////////////////////////////////////////////////
[2022:07:18:12:57:22]: Info: Trying encoder [nvenc]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_nvenc]: Operation not permitted
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_nvenc]: Operation not permitted
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_nvenc]: Operation not permitted
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_nvenc]: Operation not permitted
[2022:07:18:12:57:22]: Info: Encoder [nvenc] failed
[2022:07:18:12:57:22]: Info: Trying encoder [amdvce]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_amf]: Unknown error occurred
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_amf]: Unknown error occurred
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_amf]: Unknown error occurred
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Error: Could not open codec [h264_amf]: Unknown error occurred
[2022:07:18:12:57:22]: Info: Encoder [amdvce] failed
[2022:07:18:12:57:22]: Info: Trying encoder [software]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[x2022:07:18:12:57:22]: Info: Color coding [Rec. 709]2
6[42022:07:18:12:57:22]: Info: Color range: [JPEG]
[error]: high profile doesn't support a bit depth of 10
[2022:07:18:12:57:22]: Error: Could not open codec [libx264]: Invalid argument
[2022:07:18:12:57:22]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:22]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:22]: Info: Color range: [JPEG]
[2022:07:18:12:57:22]: Warning: software: h264: replacing nalu prefix data
[2022:07:18:12:57:22]: Info:
[2022:07:18:12:57:22]: Info: //////////////////////////////////////////////////////////////
[2022:07:18:12:57:22]: Info: //                                                          //
[2022:07:18:12:57:22]: Info: // Ignore any errors mentioned above, they are not relevant //
[2022:07:18:12:57:22]: Info: //                                                          //
[2022:07:18:12:57:22]: Info: //////////////////////////////////////////////////////////////
[2022:07:18:12:57:22]: Info:
[2022:07:18:12:57:22]: Info: Found encoder software: [libx264]
[2022:07:18:12:57:22]: Info: Configuration UI available at [https://localhost:47990]
[2022:07:18:12:57:23]: Info: Registered Sunshine Gamestream service
[2022:07:18:12:57:24]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:18:12:57:25]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:18:12:57:26]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:18:12:57:27]: Info: /CN=NVIDIA GameStream Client -- verfied
[2022:07:18:12:57:27]: Info: CLIENT CONNECTED
[2022:07:18:12:57:27]: Info:
Device Description : AMD Radeon HD 7600A Series
Device Vendor ID   : 0x00001002
Device Device ID   : 0x00006751
Device Video Mem   : 2032 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 3840 MiB
Feature Level      : 0x0000B000
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2022:07:18:12:57:27]: Info: Color coding [Rec. 601]
[2022:07:18:12:57:27]: Info: Color range: [MPEG]
[2022:07:18:12:57:27]: Error: Couldn't create audio policy config: [0x80040154]
[2022:07:18:12:57:27]: Warning: There will be no audio

As you can see, I'm setting the amazon echo audio sink, which is the Bluetooth speaker of this host.
I've tried without setting any sink (so sunshine would pick the default), but that doesn't work either - I get the same error.

Sunshine Host Operating System and Version

Windows 10

Architecture

64bit

Sunshine Version

0.14.0

GPU Type

AMD

GPU Model

AMD Radeon HD 7600A

GPU Driver/Mesa Version

Radeon HD 7600A

Capture Method (Linux Only)

No response

@ReenigneArcher ReenigneArcher added os:Windows:10 os:Windows OS is Windows audio:windows Audio issue in Windows labels Jul 18, 2022
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity. Comment or remove the stale label, otherwise this will be closed in 5 days.

@github-actions github-actions bot added the stale label Oct 17, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio:windows Audio issue in Windows os:Windows OS is Windows stale
Projects
None yet
Development

No branches or pull requests

2 participants