Skip to main content
Topic: WINE does not have sound. (Read 2041 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

WINE does not have sound.

Hi, first of all: Thanks beforehand for reading my problem and trying to solve it.

Whenever I try to run Souko Akki Muramasa (a Windows visual novel) with WINE, the games runs perfectly, but it lacks sound. Scrolling through the wine logs, it seems that the problem is within ALSA (I use pulseaudio, and audio in my system runs perfectly in any other ocassion) and it not being able to open the shared library libasound_module_pcm_pulse.so due to libsystemd.so.0 not existing in my system. I have elogind and lib32-elogind installed in my system, as well as alsa-lib, alsa-plugins and alsa-utils, so everything seems to be in order.

Log of the error:

Code: [Select]
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)

Full WINE logs of the execution of the application:

Code: [Select]
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 01593778, 43) stub
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 01743898, 43) stub
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 003F7D08, 43) stub
010c:fixme:ver:GetCurrentPackageId (0259FEF0 00000000): stub
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:dxgi:dxgi_output_GetDisplayModeList iface 008B4F60, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 0075F8C0, modes 00000000 partial stub!
0024:fixme:dxgi:dxgi_output_GetDisplayModeList iface 008B4F60, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 0075F8C0, modes 008B6388 partial stub!
0024:fixme:heap:RtlSetHeapInformation handle 00860000, info_class 0, info 0075F6C8, size 4 stub!
0024:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x30
0024:fixme:wbemprox:enum_class_object_Next timeout not supported
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
0024:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)
0024:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0024:fixme:imm:ImeSetActiveContext (00010052, 1): stub
0024:fixme:imm:ImmReleaseContext (00010060, 00010052): stub
00d4:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
00d4:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub

I'm posting this error in the Artix forums instead of any WINE forums because the error seems to stem from the fact that I am running a systemd free distribution, so I think it isn't out of place here. Once again, thanks beforehand and I would be grateful to receive assistance on how to solve this problem.


Re: Souko Akki Muramasa does not have sound.

Reply #2
Hi!

Thanks for your response. However, as stated in the original post, I already have alsa-plugins installed in my system, so that is not the problem. Nevertheless, thanks for trying to solve my problem!

Re: Souko Akki Muramasa does not have sound.

Reply #3
Did you try some other audio programs in wine like foobar or other audioplayer?

Did you install lib32-libpulse, lib32-alsa-plugins as mentioned in arch wiki? What driver is selected on your winecfg/audio tab?

Re: Souko Akki Muramasa does not have sound.

Reply #4
Hi. Yes, I do have installed lib32-libpulse and lib32-alsa-plugins. winepulse.drv appears as my audio driver in winecfg.

As for testing other audio programs, other games also lack sound, I just haven't noticed since I haven't played any games recently. I guess that makes the title kinda incorrect since it isn't an issue with Muramasa specifically.

Anyways, thanks for your response.

Re: Souko Akki Muramasa does not have sound.

Reply #5
Hi!

Thanks for your response. However, as stated in the original post, I already have alsa-plugins installed in my system, so that is not the problem. Nevertheless, thanks for trying to solve my problem!
Ah yes sorry, I should've read the post completely but instead I went straight to the error messages.

 

Re: Souko Akki Muramasa does not have sound.

Reply #6
By some bizarre coincidence, I'm actually playing this game right now and it works fine. I'm likely playing a different version (the Japanese version) than you although I doubt there's a real difference under the hood. You could try setting wine's sound driver to alsa using winetricks.


Re: WINE does not have sound.

Reply #8
Hi. Thanks to all of you for your responses. I've updated the title of the original post because the problem is not with Muramasa specifically but rather with all programs executed via WINE.


As stated in the original post, lib32-elogind is installed in my system. I've also checked and the symlinks seem to not be broken, but ALSA still gives the same error message for some reason. WINE also does not show up in pavucontrol.

While testing the game, it seems that a new error pops up:

Code: [Select]
ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred

I don't know what it means, but I guess that it is related to the original error in some way, so it's probably useful information.

By some bizarre coincidence, I'm actually playing this game right now and it works fine. I'm likely playing a different version (the Japanese version) than you although I doubt there's a real difference under the hood. You could try setting wine's sound driver to alsa using winetricks.

It isn't such a bizarre coincidence, there is a correlation between VNs, Linux and learning Japanese (?)

I've changed the sound driver from winepulse.drv to winealsa.drv and the issue persists. The error message seems to be the same, but I'll post the logs with the new sound driver regardless:

Code: [Select]
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 01593778, 43) stub
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 01743898, 43) stub
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 003F7D08, 43) stub
00d8:fixme:ver:GetCurrentPackageId (0255FEF0 00000000): stub
info:  Game: muramasa_en.exe
info:  DXVK: v1.10.3
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
MESA-INTEL: warning: Haswell Vulkan support is incomplete
info:  Intel(R) HD Graphics 4600 (HSW GT2):
info:    Driver: 22.1.7
info:    Vulkan: 1.3.211
info:    Memory Heap[0]:
info:      Size: 1536 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Device properties:
info:    Device name:     : Intel(R) HD Graphics 4600 (HSW GT2)
info:    Driver version   : 22.1.7
info:  Enabled device extensions:
info:    VK_EXT_4444_formats
info:    VK_EXT_depth_clip_enable
info:    VK_EXT_extended_dynamic_state
info:    VK_EXT_host_query_reset
info:    VK_EXT_robustness2
info:    VK_EXT_shader_demote_to_helper_invocation
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_create_renderpass2
info:    VK_KHR_depth_stencil_resolve
info:    VK_KHR_draw_indirect_count
info:    VK_KHR_driver_properties
info:    VK_KHR_image_format_list
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_swapchain
info:    VK_KHR_timeline_semaphore
info:  Device features:
info:    robustBufferAccess                     : 1
info:    fullDrawIndexUint32                    : 1
info:    imageCubeArray                         : 1
info:    independentBlend                       : 1
info:    geometryShader                         : 1
info:    tessellationShader                     : 1
info:    sampleRateShading                      : 1
info:    dualSrcBlend                           : 1
info:    logicOp                                : 1
info:    multiDrawIndirect                      : 1
info:    drawIndirectFirstInstance              : 1
info:    depthClamp                             : 1
info:    depthBiasClamp                         : 1
info:    fillModeNonSolid                       : 1
info:    depthBounds                            : 0
info:    multiViewport                          : 1
info:    samplerAnisotropy                      : 1
info:    textureCompressionBC                   : 1
info:    occlusionQueryPrecise                  : 1
info:    pipelineStatisticsQuery                : 1
info:    vertexPipelineStoresAndAtomics         : 0
info:    fragmentStoresAndAtomics               : 1
info:    shaderImageGatherExtended              : 1
info:    shaderStorageImageExtendedFormats      : 0
info:    shaderStorageImageReadWithoutFormat    : 0
info:    shaderStorageImageWriteWithoutFormat   : 1
info:    shaderClipDistance                     : 1
info:    shaderCullDistance                     : 1
info:    shaderFloat64                          : 0
info:    shaderInt64                            : 0
info:    variableMultisampleRate                : 1
info:  VK_EXT_4444_formats
info:    formatA4R4G4B4                         : 1
info:    formatA4B4G4R4                         : 0
info:  VK_EXT_custom_border_color
info:    customBorderColors                     : 0
info:    customBorderColorWithoutFormat         : 0
info:  VK_EXT_depth_clip_enable
info:    depthClipEnable                        : 1
info:  VK_EXT_extended_dynamic_state
info:    extendedDynamicState                   : 1
info:  VK_EXT_host_query_reset
info:    hostQueryReset                         : 1
info:  VK_EXT_memory_priority
info:    memoryPriority                         : 0
info:  VK_EXT_non_seamless_cube_map
info:    nonSeamlessCubeMap                     : 0
info:  VK_EXT_robustness2
info:    robustBufferAccess2                    : 1
info:    robustImageAccess2                     : 1
info:    nullDescriptor                         : 1
info:  VK_EXT_shader_demote_to_helper_invocation
info:    shaderDemoteToHelperInvocation         : 1
info:  VK_EXT_transform_feedback
info:    transformFeedback                      : 1
info:    geometryStreams                        : 1
info:  VK_EXT_vertex_attribute_divisor
info:    vertexAttributeInstanceRateDivisor     : 1
info:    vertexAttributeInstanceRateZeroDivisor : 1
info:  VK_KHR_buffer_device_address
info:    bufferDeviceAddress                    : 0
info:  VK_KHR_timeline_semaphore
info:    timelineSemaphore                      : 1
info:  Queue families:
info:    Graphics : 0
info:    Transfer : 0
info:  DXVK: Read 19 valid state cache entries
0024:fixme:heap:RtlSetHeapInformation handle 00860000, info_class 0, info 0075F6C8, size 4 stub!
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x30
0024:fixme:wbemprox:enum_class_object_Next timeout not supported
info:  Game: muramasa_en.exe
info:  DXVK: v1.10.3
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
MESA-INTEL: warning: Haswell Vulkan support is incomplete
info:  D3D9: VK_FORMAT_D16_UNORM_S8_UINT -> VK_FORMAT_D24_UNORM_S8_UINT
info:  Intel(R) HD Graphics 4600 (HSW GT2):
info:    Driver: 22.1.7
info:    Vulkan: 1.3.211
info:    Memory Heap[0]:
info:      Size: 1536 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:  Process set as DPI aware
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
0024:fixme:ddraw:ddraw7_Initialize Ignoring guid {1a08ae85-2ed3-6be4-bf00-c1dfc9a93e81}.
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (libsystemd.so.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio)
0024:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0024:fixme:imm:ImeSetActiveContext (0001004A, 1): stub
0024:fixme:imm:ImmReleaseContext (0001005E, 0001004A): stub
00e0:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
00e0:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info:    Buffer size:  1024x576
info:    Image count:  5
info:    Exclusive FS: 1
warn:  DXGI: MakeWindowAssociation: Ignoring flags
info:  DXVK: Using 5 compiler threads
014c:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFA, 04F5FEF4
017c:fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0977FF14): stub
017c:fixme:avrt:AvSetMmThreadPriority (12345678)->(1) stub
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_FIFO_KHR
info:    Buffer size:  1024x576
info:    Image count:  5
info:    Exclusive FS: 1
ALSA lib pcm.c:8568:(snd_pcm_recover) underrun occurred
01b0:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
01b0:fixme:seh:WerSetFlags (2) stub
01b0:fixme:heap:RtlSetHeapInformation handle 00000000, info_class 1, info 00000000, size 0 stub!
01cc:fixme:heap:RtlSetHeapInformation handle 0000000001460000, info_class 0, info 000000000011F680, size 4 stub!
01cc:fixme:seh:WerSetFlags (2) stub
01cc:fixme:heap:RtlSetHeapInformation handle 0000000000000000, info_class 1, info 0000000000000000, size 0 stub!
017c:fixme:avrt:AvRevertMmThreadCharacteristics (12345678): stub

Thanks again for trying to help me solve this problem.


Re: WINE does not have sound.

Reply #9
Sorry if I've missed something, skimmed the thread.

The error states
Code: [Select]
"libasound_module_pcm_pulse.so (libsystemd.so.0: cannot open shared object file: The file or directory does not exist)" (translated)
So I think libasound_module_pcm_pulse.so is linked to libsystemd.so.0. Which is not installed and afaik should not be?

If I run
Code: [Select]
~/Files                                                                                                                                 17:59:23
❯ ldd /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so
        linux-vdso.so.1 => linux-vdso.so.1 (0x00007ffdb68e0000)
        libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007fb0218b7000)
        libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fb0217c8000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fb0215e1000)
        libpulsecommon-16.1.so => /usr/lib/pulseaudio/libpulsecommon-16.1.so (0x00007fb02155a000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007fb021472000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fb021419000)
        /usr/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fb02194d000)
        libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00007fb021394000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fb021369000)
        libasyncns.so.0 => /usr/lib/libasyncns.so.0 (0x00007fb021361000)
        libelogind.so.0 => /usr/lib/libelogind.so.0 (0x00007fb0212c4000)
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007fb021217000)
        libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x00007fb0211d9000)
        libopus.so.0 => /usr/lib/libopus.so.0 (0x00007fb021178000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007fb021149000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x00007fb02113e000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fb021139000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fb02112f000)
        libcap.so.2 => /usr/lib/libcap.so.2 (0x00007fb021123000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fb021103000)

There's no mention of libsystemd.so.0
Instead (at an educated guess ) libelogind.so.0 => /usr/lib/libelogind.so.0 (0x00007fb0212c4000)

Is it possible that you have the arch version of alsa-plugins and / or lib32-alsa-plugins packages ?
That's the only explanation I can think of.

Re: WINE does not have sound.

Reply #10
That's weird. I've commented out all Arch mirrors, reinstalled alsa-plugins and lib32-alsa-plugins and the error persists. Thanks for your response tho.

Re: WINE does not have sound.

Reply #11
That's weird. I've commented out all Arch mirrors, reinstalled alsa-plugins and lib32-alsa-plugins and the error persists. Thanks for your response tho.
Make sure you've removed the packages from /var/cache/pacman/pkg before reinstalling.

Re: WINE does not have sound.

Reply #12
Ok. I was using the Arch version of alsa-plugins. However, there is no Artix version of that package since it is in the extra repo, and the extra repo depends on the arch mirrors.

Btw, the error message changes if I uninstall the package pulseaudio-alsa:

Code: [Select]
ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pipewire.so (/usr/lib32/alsa-lib/libasound_module_pcm_pipewire.so: cannot open shared object file: The file or directory does not exist)

Re: WINE does not have sound.

Reply #13
Ok, ignore whatever I said earlier. I configured the repos a long time ago and I forgot about the world repos in Artix.

However, the artix version of lib32-alsa-plugins has an invalid PGP signature (the bash output is translated btw):

Code: [Select]
error: lib32-alsa-plugins: The signature of «Artix Buildbot <[email protected]>» is not valid
:: The file /var/cache/pacman/pkg/lib32-alsa-plugins-1.2.7.1-1-x86_64.pkg.tar.zst is damaged (damaged or invalid package (PGP signature)).

EDIT: Reinstalled artix-keyrings. After reinstalling everything with the Arch repos disabled, the problem persists.