View previous topic :: View next topic |
Author |
Message |
bwbuhse n00b
Joined: 08 May 2023 Posts: 8 Location: Austin, TX
|
Posted: Thu May 30, 2024 3:08 pm Post subject: No sound in X-Plane 12 |
|
|
I've recently installed X-Plane 12 on Gentoo for the first time and I'm having some issues getting sound to work. I'm able to load into it just fine but there is no output from the sim itself (weirdly enough, some plugins like BetterPushback seem to have sound working). If I go into the game settings it just says "NoSound Driver" and I can't even choose options to switch the audio output.
I did make sure to install media-libs/freeglut and media-libs/openal but I'm really not sure what else the issue could be. I'm using pipewire with the sound-server USE flag enabled, running speaker-test shows ALSA is working, the server name under pactl info shows pipewire, and sound has never been a problem for anything else on this computer.
Here's the CLI output I get when I launch X-Plane and you can see there's a couple of lines talking about ALSA lib and alsoft. There's also an error in FlyWithLua which is an error in their init_openal_sound() function (https://github.com/X-Friese/FlyWithLua/blob/dc48ed9f12af9a77edd275033e74d4790b3cca31/src/FlyWithLua.cpp#L883):
Code: |
$ ALSOFT_LOGLEVEL=3 ALSOFT_LOGFILE="/tmp/alsoft-log" ./X-Plane-x86_64
MicroProfile: Web server started on 127.0.0.1:1338
MicroProfile: Web server started on 192.168.1.101:1338
Picking device: AMD Radeon RX 6800 XT (RADV NAVI21)
[0530/095444.265301:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
[0530/095444.266189:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[0530/095444.266209:WARNING:property.cc(144)] version: GetAndBlock: failed.
[0530/095444.266224:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
[0530/095444.459581:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.11/work/alsa-lib-1.2.11/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
[ALSOFT] (WW) Querying error state on null context (implicitly 0xa004)
ERROR: 40964 (../FlyWithLua.cpp:883
Made offscreen for pre-sim render: 3440 x 1440
sh: line 1: xscreensaver-command: command not found
Xlib: extension "DPMS" missing on display ":0".
Can't query DPMS info.
Trying 'libdbus-1.so.3'
Error 'The name org.gnome.SessionManager was not provided by any .service files' (/builds/x-plane/design/source_code/core/gfx/gfx_window_x11.cpp, line 2241).
Error 'The name org.freedesktop.ScreenSaver was not provided by any .service files' (/builds/x-plane/design/source_code/core/gfx/gfx_window_x11.cpp, line 2315).
0x00000004: deleting my context 0x7fc1183ffcd0 |
Here's that alsoft log:
Code: | [ALSOFT] (II) Initializing library v1.23.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: pipewire, pulse, alsa, oss, sdl2, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/ben/.alsoftrc...
[ALSOFT] (II) Loading config /home/ben/.config/alsoft.conf...
[ALSOFT] (II) Got binary: "/opt/games2/X-Plane 12", "X-Plane-x86_64"
[ALSOFT] (II) Loading config /opt/games2/X-Plane 12/alsoft.conf...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 7 3700X 8-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key rt-time-limit not found
[ALSOFT] (II) Key game_compat/enable-sub-data-ext not found
[ALSOFT] (II) Key game_compat/reverse-x not found
[ALSOFT] (II) Key game_compat/reverse-y not found
[ALSOFT] (II) Key game_compat/reverse-z not found
[ALSOFT] (II) Key game_compat/nfc-scale not found
[ALSOFT] (II) Key resampler not found
[ALSOFT] (II) Key uhj/decode-filter not found
[ALSOFT] (II) Key uhj/filter not found
[ALSOFT] (II) Key uhj/encode-filter not found
[ALSOFT] (II) Key trap-al-error not found
[ALSOFT] (II) Key trap-alc-error not found
[ALSOFT] (II) Key reverb/boost not found
[ALSOFT] (II) Key drivers not found
[ALSOFT] (II) Found PipeWire version "1.0.7" (1.0.7 or newer)
[ALSOFT] (II) Key pipewire/assume-audio not found
[ALSOFT] (II) Ignoring metadata "settings"
[ALSOFT] (II) Ignoring metadata "schema-sm-settings"
[ALSOFT] (II) Ignoring metadata "persistent-sm-settings"
[ALSOFT] (II) Ignoring metadata "sm-settings"
[ALSOFT] (II) Ignoring metadata "sm-objects"
[ALSOFT] (II) Ignoring metadata "filters"
[ALSOFT] (II) Ignoring metadata "route-settings"
[ALSOFT] (II) Ignoring node class Midi/Bridge
[ALSOFT] (II) Ignoring node class Midi/Bridge
[ALSOFT] (II) Initialized backend "pipewire"
[ALSOFT] (II) Added "pipewire" for playback
[ALSOFT] (II) Added "pipewire" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Opening default playback device
[ALSOFT] (II) Got default playback device "alsa_output.usb-FIIO_FiiO_USB_DAC-E10-01.analog-stereo"
[ALSOFT] (II) Got default capture device "alsa_input.usb-Generic_Blue_Microphones_LT_2103131004119D0324FB_111000-00.analog-stereo"
[ALSOFT] (II) Got sink device "alsa_output.pci-0000_0b_00.4.analog-stereo"
[ALSOFT] (II) "Starship/Matisse HD Audio Controller Analog Stereo" = ID 57
[ALSOFT] (II) Device ID 57 sample rate: 48000 (range: 44100 -> 192000)
[ALSOFT] (II) Device ID 57 got 2 positions for Stereo
[ALSOFT] (II) Got source device "alsa_input.pci-0000_0b_00.4.analog-stereo"
[ALSOFT] (II) "Starship/Matisse HD Audio Controller Analog Stereo" = ID 58
[ALSOFT] (II) Device ID 58 sample rate: 48000 (range: 44100 -> 192000)
[ALSOFT] (II) Device ID 58 got 2 positions for Stereo
[ALSOFT] (II) Got source device "alsa_input.usb-Generic_Blue_Microphones_LT_2103131004119D0324FB_111000-00.analog-stereo"
[ALSOFT] (II) "Blue Microphones Analog Stereo" = ID 65
[ALSOFT] (II) Device ID 65 sample rate: 48000 (range: 44100 -> 48000)
[ALSOFT] (II) Device ID 65 got 2 positions for Stereo
[ALSOFT] (II) Got sink device "alsa_output.usb-FIIO_FiiO_USB_DAC-E10-01.analog-stereo"
[ALSOFT] (II) "Fiio E10 Analog Stereo" = ID 66
[ALSOFT] (II) Device ID 66 sample rate: 48000 (range: 32000 -> 96000)
[ALSOFT] (II) Device ID 66 got 2 positions for Stereo
[ALSOFT] (II) Created device 0x7fc11819a450, "Fiio E10 Analog Stereo"
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Key stereo-encoding not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 48000hz, 960 / 2880 buffer
[ALSOFT] (II) Key pipewire/rt-mix not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 48000hz, 960 / 2880 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Stereo rendering
[ALSOFT] (II) Channel config, Main: 3, Real: 2
[ALSOFT] (II) Allocating 5 channels, 20480 bytes
[ALSOFT] (II) Enabling single-band first-order ambisonic decoder
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Max sources: 256 (255 + 1), effect slots: 64, sends: 2
[ALSOFT] (II) Key dither not found
[ALSOFT] (II) Key dither-depth not found
[ALSOFT] (II) Dithering disabled
[ALSOFT] (II) Key output-limiter not found
[ALSOFT] (II) Output limiter disabled
[ALSOFT] (II) Fixed device latency: 0ns
[ALSOFT] (II) Post-start: Stereo, Float32, 48000hz, 512 / 1280 buffer
[ALSOFT] (II) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0x7fc1183ffcd0
[ALSOFT] (II) Freeing context 0x7fc1183ffcd0
[ALSOFT] (WW) 1 Source not deleted
[ALSOFT] (II) Freed 0 context property objects
[ALSOFT] (II) Freed 0 AuxiliaryEffectSlot property objects
[ALSOFT] (II) Freeing device 0x7fc11819a450
[ALSOFT] (WW) 1 Buffer not deleted |
and showing pulse is using pipewire
Code: | $ LANG=C pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 1.0.7) |
I've seen a few other posts about X-Plane 11/12 and no audio on this forum but they didn't seem to help me at all. |
|
Back to top |
|
|
bwbuhse n00b
Joined: 08 May 2023 Posts: 8 Location: Austin, TX
|
Posted: Fri May 31, 2024 8:47 pm Post subject: |
|
|
Not going to lie, I have no clue what the *actual* issue was, but as far as I can tell I've fixed it. I disconnected my USB DAC, started X-Plane with just my speakers attached, selected "pipewire" as my output in X-Plane, and then re-connected my USB DAC. Now even after re-starting the sim my DAC is working. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|