Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X-Plane kein Sound - openal - Vermutung falsches device
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Mon Jan 24, 2022 10:57 am    Post subject: X-Plane kein Sound - openal - Vermutung falsches device Reply with quote

Hallo,

X-Plane liefert keinen Sound. Im UI steht, dass "openal Soft" als Backend verwendet wird. Hierzu habe mit der ~/.alsoftrc experimeniert, Bisher erfolglos. Allerdings hatte ich im bei einer (nicht erfolgreichen) Konfiguration in der .alsoftrc einmal eine Meldung, dass X-Plane auf das nvidia HMDI Sound Interface zugrieifen möchte. Die Karte nutze ich nicht.


Meine "aplay -l" sieht folgendermaßen aus:

Code:

**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: NVidia [HDA NVidia], Gerät 3: Generic Digital [Generic Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 0: ALCS1200A Analog [ALCS1200A Analog]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 1: ALCS1200A Digital [ALCS1200A Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 2: CODEC [USB Audio CODEC], Gerät 0: USB Audio [USB Audio]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0



Bisher hate die Karte 0 noch eine riesige Liste von Sub Devices, diese bin ich losgeworden, indem ich das hdmi Modul in der HDA Sektion im Kernel rausgeworden habe. Leider ist die Karte noch dringeblieben.

Natürlich wäre es eine Lösung, die Reihenfolge der Karte zu modifizieren. Das ist mir bislang nicht geluingen. Sowohl die Methode über Indices als auch die "slots" Methode brachen nix. Von daher ist meine Strategie das nvidia Device irgendwie loszuwerden. Es ist auch nicht in meiner /etc/modprobe.de/alsa.conf eingetragen. Diese sieht wie folgt aus:

Code:

# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-hda-intel
#alias snd-card-1 snd-usb-audio
#alias snd-card-1 snd-ice1712
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
#alias sound-service-1-0 snd-mixer-oss
#alias sound-service-1-1 snd-seq-oss
#alias sound-service-1-3 snd-pcm-oss
#alias sound-service-1-8 snd-seq-oss
#alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=3

#alias snd-card-0 snd-hda-intel
#alias snd-card-1 snd-hdsp
#alias sound-slot-0 snd-hda-intel
#alias sound-slot-1 snd-hdsp

#options snd-hda-intel index=0
#options snd-usb-audio index=1
#options snd-hda-intel position_fix=3

#options snd slots=snd-hda-intel,snd-aloop


Da sind jetzt Dinge auskommentiert, weil ich da schon eines rumprobiert habe.

Meine ~/.alsoftrc sieht momentan folgendermaßen aus:

Code:

(define devices '(alsa))
(define alsa-out-device "hw:1,0")



Was kann ich tun, um X-Plane Sound zu entlocken? BTW Es hat in der Testversion vor 1 Jahr funktioniert, ich wollte es jetzt kaufen weil ich festgestellt habe, dass man damit Funk - Training machen kann. Das ist ein Killerfeature, bei der Kommunikation in Kontrollzonen bin ich noch unsicher und ich wollte das mit Xplane trainieren. Leider macht das ohne Ton wenig Sinn.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Mon Jan 24, 2022 11:03 am    Post subject: Reply with quote

vielleicht hilfte es eine andere Karte als default alsa device zu setzen?
https://www.alsa-project.org/wiki/Setting_the_default_device
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Mon Jan 24, 2022 11:21 am    Post subject: Reply with quote

Christian99 wrote:
vielleicht hilfte es eine andere Karte als default alsa device zu setzen?
https://www.alsa-project.org/wiki/Setting_the_default_device


Gerade eben probiert, hat keinen Unterschied gemacht. Ich hatte vergessen meine ~/asoundrc zu posten, die sieht so aus:

Code:

defaults.pcm.card 1
defaults.pcm.device 0
#defaults.pcm.subdevice -1


pcm.!default {
         type asym
         playback.pcm {
                 type plug
                 slave.pcm "dmix"
         }
         capture.pcm {
                 type plug
                 slave.pcm "hw:2,0"
         }
}

# Bluetooth headset
#defaults.bluealsa {
#     interface "hci0"            # host Bluetooth adapter
#     #device "78:44:05:C2:D5:44"  # Bluetooth headset MAC address for Bose
#     device "00:02:3C:2E:33:C3" # Bluetooth headset MAC address for Creative
#     profile "a2dp"
#}


Für allle Eingaben nutze ich das zusätzliche USB device. Das hat es Vorteil, dass es nicht immer zu diesen Problemen mit Blockierungen kommt, die trotz "dmix" immer wieder passieren, weil ich bestimmte Applikationen nicht daran halten.
Was ich oben geschrieben habe, ist allerdings schon Spekulation. Defacto weiß ich nicht, warum Xplane kein Sound ausgibt. Das Log zeigt allerdings auch kein Problem, von daher vermutlich, dass einfach die falsche Karte aktiv ist.
Dazu kommt noch, dass ich andere Anwendungen habe, welche mit openal Sound erzeugen.
In einem anderen Thread hier im Forum wird behauptet, dass X-plane zwingend pulseaudio benötigt. Ich bin mir da nicht so sicher, ob das stimmt. IMHO sollte es Der Anwendung ja egal sein, was openal unter sich hat - vielleicht irre ich mir hier, bitte korrigiert mich falls das so ist.

Grüße
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Mon Jan 24, 2022 12:16 pm    Post subject: Reply with quote

Verwendest du die offiziellen nvidia treiber oder den opensource?
Denn ich könnte mir gut vorstellen, dass das nvidia hda device durch den offiziellen nvidia treiber kommt
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Mon Jan 24, 2022 12:20 pm    Post subject: Reply with quote

Erdie wrote:

In einem anderen Thread hier im Forum wird behauptet, dass X-plane zwingend pulseaudio benötigt. Ich bin mir da nicht so sicher, ob das stimmt. IMHO sollte es Der Anwendung ja egal sein, was openal unter sich hat - vielleicht irre ich mir hier, bitte korrigiert mich falls das so ist.


Falls X-Plane wirklich pulseaudio benötigt könnte eventuell apulse (The PulseAudio emulator for ALSA https://packages.gentoo.org/packages/media-sound/apulse) helfen
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Mon Jan 24, 2022 12:29 pm    Post subject: Reply with quote

Laut hier:

https://forums.gentoo.org/viewtopic-t-1138504-start-0.html

soll apulse nicht gehen.

Ich verwende den binary nvida Treiber.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1668

PostPosted: Mon Jan 24, 2022 1:49 pm    Post subject: Reply with quote

Viele Programme haben auch intern im Konfigurationsmenü eine Möglichkeit ein Sound device auszuwählen.
Gibt es sowas bei xplane und wenn ja, was für devices sind da aufgelistet?
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Mon Jan 24, 2022 1:54 pm    Post subject: Reply with quote

Christian99 wrote:
Viele Programme haben auch intern im Konfigurationsmenü eine Möglichkeit ein Sound device auszuwählen.
Gibt es sowas bei xplane und wenn ja, was für devices sind da aufgelistet?


Nein, leider gibt es da gar nichts. Die einzige Option ist: Sound: ON / OFF
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 8:42 am    Post subject: Reply with quote

Eine Frage zu Pulsaudio:
Wenn ich PA hier wirklich brauche und es einen Workaround gibt (apulse soll nicht gehen), ist es ein Risiko PA testweise zu emergen oder kriegt man das nur schwer aus dem System wieder raus? Gibt es da ein Risiko?
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 9:08 am    Post subject: Reply with quote

Welche openal version verwendet eigendlich x-plane?

Eventuel openal-soft?
Wenn ja openal-soft kennt einige ENV variablen. Um zu sehen ob und welches device oepnal selektiert sollten folgende variablen helfen:

Quelle https://github.com/kcat/openal-soft/blob/master/docs/env-vars.txt

Code:
$ ALSOFT_LOGLEVEL=3 ALSOFT_LOGFILE="<path to log file location>" <path to x-plane binary>


Und wenn das soweit klappt dann kann man überlegen ob man nicht eine eigene alsoftrc datei für das spiel anlegt und dort dann das backend auf alsa setzt und wenn nötig das default device angibt:

https://github.com/kcat/openal-soft/blob/master/alsoftrc.sample

Die spezielle alsoftrc Datei kann man via der env var ALSOFT_CONF angeben.

Falls x-plane openal dynamisch läd (die openal library liegt als libopenal*.so im spielverzeichnis) könnte man die version durch eine eigene (openal-soft) ersetzen.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 9:13 am    Post subject: Reply with quote

Danke erstmal!

1. X-Plane verwendet openal Soft

2. In dem von mir verlinkten Thread wird behauptet, dass X-Plane nichtsdestotrotz garantiert einen laufenen Pulsaudio Prozess benötigt, apulse würde nicht funktionieiren. Inwiefern sollte man das deiner Meinung nach glauben? Eine Begründung wird nämlich nicht geliefert.

BTW: ist openal und openal soft ein Unterschied? Das war mir nicht klar.

Ich werde deinen Vorschlag erstmal ausprobieren.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 10:04 am    Post subject: Reply with quote

openal ist eine api die ursprünglich von creative labs (dem hersteller der soundblaster sound karten) entwickelt wurde.
Die original api hatte unterstützung für hardwarebeschleunigung von audio effekten.
openal-soft ist eine reine softwarebasierte Implementierung der openal api mit eigenen Erweiterungen.

das x-plane scheinbar pulseaudio unbenötigt könnte daran liegen dass openal-soft von x-plane so konfiguriert wird dass als backend nur pulse genutzt werden soll.
Vermutlich via einer selbstgebauten openal-soft library wo pulse als default backend festlegt wurde bzw. support für ALSA deaktiviert wurde.
Das sollte sich aber über die logausgaben feststellen lassen bzw. Mit dem versuch das default backend via einer eigenen asoftrc datei zu überschreiben.

openal-soft unterstützt auch PipeWire (seit openal-soft-1.22.0) falls das eine alternative für dich ist. Wobei PipeWire ein drop-in replacement für pulseaudio ist.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 12:49 pm    Post subject: Reply with quote

Ich habe jetzt diverse logs mit openal soft geschreiben die liefere ich noch nach, bin grad im Dienst. Da kann man u. a. sehen wie diverse configs gelesen werden. Erstaunlicherweise sagt er das auch wenn die entsprechende config Datei gar nicht existiert ohne irgendwie zu meckern.

Das, was du schreibst klingt insofern interessant, weil ich vermute, dass man evtl. die von Xplane mitgebrachte openal einfach austauschen könnte also eine eigene Datei reinkopieren. Aber dazu vlt später.

Ich werde noch ein paar logs schreiben und die dann posten.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 4:52 pm    Post subject: Reply with quote

ALSOFT log mit laufendem Jack server (kein Ton):


Code:

[ALSOFT] (II) Initializing library v1.21.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: jack, alsa, oss, port, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.config/kdedefaults/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.alsoftrc...
[ALSOFT] (II) Loading config /home/martin/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /home/martin/X-Plane_11, X-Plane-x86_64
[ALSOFT] (II) Loading config /home/martin/X-Plane_11/alsoft.conf...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 9 5900X 12-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler 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) Key jack/spawn-server not found
[ALSOFT] (II) Initialized backend "jack"
[ALSOFT] (II) Added "jack" for playback
[ALSOFT] (II) Initialized backend "alsa"
[ALSOFT] (II) Added "alsa" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0x918f850, "JACK Default"
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 44100hz, 882 / 2646 buffer
[ALSOFT] (II) Key jack/buffer-size not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 44100hz, 1024 / 2048 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding 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) 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) Key jack/connect-ports not found
[ALSOFT] (II) Key jack/buffer-size not found
[ALSOFT] (II) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0x8de0920



Und eine Variante ohne Jack Server:

Code:

[ALSOFT] (II) Initializing library v1.21.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: jack, alsa, oss, port, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.config/kdedefaults/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.alsoftrc...
[ALSOFT] (II) Loading config /home/martin/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /home/martin/X-Plane_11, X-Plane-x86_64
[ALSOFT] (II) Loading config /home/martin/X-Plane_11/alsoft.conf...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 9 5900X 12-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler 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) Key jack/spawn-server not found
[ALSOFT] (WW) connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
[ALSOFT] (WW) attempt to connect to server failed
[ALSOFT] (WW) jack_client_open() failed, 0x11
[ALSOFT] (WW) Failed to initialize backend "jack"
[ALSOFT] (II) Initialized backend "alsa"
[ALSOFT] (II) Added "alsa" for playback
[ALSOFT] (II) Added "alsa" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key alsa/device not found
[ALSOFT] (II) Opening device "default"
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0x9a77ed0, "ALSA Default"
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 44100hz, 882 / 2646 buffer
[ALSOFT] (II) Key alsa/mmap not found
[ALSOFT] (II) Key alsa/allow-resampler not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 48000hz, 1024 / 3072 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding 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) 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


In beiden Fällen existiert keine ~/.alsoftrc aber eine /etc/openal/alsoft.conf, die folgendermaßen aussieht:

Code:

#(define devices '(jack alsa))
#(define alsa-device "default")
#(define speaker-num 2)
#(define sampling-rate 44100)

_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 5:25 pm    Post subject: Reply with quote

Zum einen zeigt die logausgabe dass X-Plane nicht zwingend pulse audio braucht.
Die library hat nichtmal support dafür aktiv. Vorausgesetzt es handelt sich hier um die openal library version, welche von x-plane mitgeliefert wird.

Aber hast du im falle "Und eine Variante ohne Jack Server:" Ton oder nicht? Denn die angabe fehlt.
Im Falle von jack wirkt es so als ob da Problem in jack liegen könnte (eventuell routet jack auf das falsche device?) denn openal scheint laut log sich sauber initialisiert zu haben.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 5:48 pm    Post subject: Reply with quote

firefly wrote:

Aber hast du im falle "Und eine Variante ohne Jack Server:" Ton oder nicht? Denn die angabe fehlt.


Leider kein Ton mit Jack, ich werden das nochmal doppelt prüfen.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 5:55 pm    Post subject: Reply with quote

Erdie wrote:
firefly wrote:

Aber hast du im falle "Und eine Variante ohne Jack Server:" Ton oder nicht? Denn die angabe fehlt.


Leider kein Ton mit Jack, ich werden das nochmal doppelt prüfen.

Öhm und ohne jack gibt es ton? Denn das war meine Frage.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 5:58 pm    Post subject: Reply with quote

Ansonsten kannst du mal testweise mpv mit openal support installieren um zu sehen ob openal output generell mit jack probleme macht.
Code:

ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>


Und den verwendeten "treiber" kannst du mit ALSOFT_DRIVERS env direkt überschreiben, dann nutzt openal nur diesen einen.

z.b. für alsa:
Code:

ALSOFT_DRIVERS=alsa ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>


Und da openal von x-plane versucht folgende config zu laden
Quote:
/home/martin/X-Plane_11/alsoft.conf

kannst du den verwendeten treiber nur für x-plane überschreiben

Inhalt sieht dann wie folgt aus (z.b. um alsa zu forcieren):

Quote:
[general]
drivers = alsa

_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 6:48 pm    Post subject: Reply with quote

Ich habe Jack gestartet, das verwendete Device hat nur 2 Eingänge und 2 Ausgänge (usb audio). Das Ergebnis ist wie folgt:


Code:

ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>


funktioniert!

Code:

ALSOFT_DRIVERS=alsa ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>


funktioniert!

Quote:
/home/martin/X-Plane_11/alsoft.conf


überschrieben mit:

Quote:
[general]
drivers = alsa


X-Plane starten mit folgenden Parametern:

Code:

ALSOFT_LOGLEVEL=3 ALSOFT_LOGFILE="/home/martin/Desktop/alsoft.log" ./X-Plane-x86_64


X-Plane bleibt stumm. Die Log-Ausgabe sieht folgendermaßen aus:

Code:

[ALSOFT] (II) Initializing library v1.21.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: jack, alsa, oss, port, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.config/kdedefaults/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.alsoftrc...
[ALSOFT] (II) Loading config /home/martin/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /home/martin/X-Plane_11, X-Plane-x86_64
[ALSOFT] (II) Loading config /home/martin/X-Plane_11/alsoft.conf...
[ALSOFT] (II)  found 'drivers' = 'alsa'
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 9 5900X 12-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler 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) Found drivers = "alsa"
[ALSOFT] (II) Initialized backend "alsa"
[ALSOFT] (II) Added "alsa" for playback
[ALSOFT] (II) Added "alsa" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key alsa/device not found
[ALSOFT] (II) Opening device "default"
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0xaa0c200, "ALSA Default"
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 44100hz, 882 / 2646 buffer
[ALSOFT] (II) Key alsa/mmap not found
[ALSOFT] (II) Key alsa/allow-resampler not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 48000hz, 1024 / 3072 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding 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) 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) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0xa65dbd0


Ich werde jetzt mal "Jack" als Backend versuchen.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 6:52 pm    Post subject: Reply with quote

Mit Jack als Backend kommt auch kein Ton und der log sieht folgendermaßen aus:


Code:

[ALSOFT] (II) Initializing library v1.21.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: jack, alsa, oss, port, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.config/kdedefaults/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.alsoftrc...
[ALSOFT] (II) Loading config /home/martin/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /home/martin/X-Plane_11, X-Plane-x86_64
[ALSOFT] (II) Loading config /home/martin/X-Plane_11/alsoft.conf...
[ALSOFT] (II)  found 'drivers' = 'jack'
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 9 5900X 12-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler 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) Found drivers = "jack"
[ALSOFT] (II) Key jack/spawn-server not found
[ALSOFT] (II) Initialized backend "jack"
[ALSOFT] (II) Added "jack" for playback
[ALSOFT] (WW) No capture backend available!
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0x964fe80, "JACK Default"
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 44100hz, 882 / 2646 buffer
[ALSOFT] (II) Key jack/buffer-size not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 44100hz, 1024 / 2048 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding 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) 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) Key jack/connect-ports not found
[ALSOFT] (II) Key jack/buffer-size not found
[ALSOFT] (II) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0x92a0c40

_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 7:20 pm    Post subject: Reply with quote

Wie sehen die openal log ausgaben von mpv aus? Gibt es zu den x-plane logs unterschiede?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Tue Jan 25, 2022 7:38 pm    Post subject: Reply with quote

firefly wrote:
Wie sehen die openal log ausgaben von mpv aus? Gibt es zu den x-plane logs unterschiede?


Das log für den Befehl:

Code:

ALSOFT_DRIVERS=alsa ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>


Sieht folgendermaßen aus:

Code:

ALSOFT_DRIVERS=alsa ALSOFT_LOGLEVEL=3 mpv -ao openal ~/Filme/Spass_am_Fliegen.mp4
 (+) Video --vid=1 (*) (h264 2560x1440 29.651fps)
 (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
[ALSOFT] (II) Initializing library v1.21.1-unknown UNKNOWN
[ALSOFT] (II) Supported backends: jack, alsa, oss, port, null, wave
[ALSOFT] (II) Loading config /etc/openal/alsoft.conf...
[ALSOFT] (II) Loading config /etc/xdg/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.config/kdedefaults/alsoft.conf...
[ALSOFT] (II) Loading config /home/martin/.alsoftrc...
[ALSOFT] (II) Loading config /home/martin/.config/alsoft.conf...
[ALSOFT] (II) Got binary: /usr/bin, mpv
[ALSOFT] (II) Loading config /usr/bin/alsoft.conf...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: "AuthenticAMD"
[ALSOFT] (II) Name: "AMD Ryzen 9 5900X 12-Core Processor"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key resampler 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) Initialized backend "alsa"
[ALSOFT] (II) Added "alsa" for playback
[ALSOFT] (II) Added "alsa" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key alsa/device not found
[ALSOFT] (II) Opening device "default"
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Created device 0x5632fd019060, "ALSA Default"
[ALSOFT] (II) ALC_FREQUENCY = 48000
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, *48000hz, 960 / 2880 buffer
[ALSOFT] (II) Key alsa/mmap not found
[ALSOFT] (II) Key alsa/allow-resampler not found
[ALSOFT] (II) Post-reset: Stereo, Float32, 48000hz, 1024 / 3072 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key cf_level not found
[ALSOFT] (II) Key stereo-encoding 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) 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) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 0x5632fd04bda0
AO: [openal] 48000Hz stereo 2ch float
VO: [gpu] 2560x1440 yuv420p
AV: 00:00:06 / 00:00:45 (14%) A-V:  0.000

Exiting... (Quit)


/etc/openal/alsoft.conf sieht so aus:

Code:

#(define devices '(jack alsa))
#(define alsa-device "default")
#(define speaker-num 2)
#(define sampling-rate 44100)


Jack lief jetzt nicht, wird aber auch IMHO nicht gebraucht.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Tue Jan 25, 2022 7:51 pm    Post subject: Reply with quote

Da sehe ich keine unterschiede die das Problem erklären würde.

Dann bleibt wohl nur noch die openal library von x-plane durch die im system installierte zu ersetzen.
Falls sich eine "libopenal.so" überhaupt im x-plane installationsverzeichnis befindet.

Ach ja wurde bei

Quote:
ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>

jack als backend genutzt? Denn du hast gesagt das ton zu hören war.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Wed Jan 26, 2022 12:44 pm    Post subject: Reply with quote

firefly wrote:


Ach ja wurde bei

Quote:
ALSOFT_LOGLEVEL=3 mpv -ao openal <audio/video datei>

jack als backend genutzt? Denn du hast gesagt das ton zu hören war.



Ja, habe ich benutzt, der Sound kommt dann auch aus der usb Soundkarte, die von Jack benutzt wird. Ohne Jack geht es auch, dann über alsa, ich kann jedes Mal auch was hören.

Das Verzeichnis

Code:

X-Plane_11/Resources/dlls/64/


enthält:

Code:

drwxr-xr-x 3 martin martin    4096 23. Jan 16:28 .
drwxr-xr-x 3 martin martin    4096 23. Jan 16:28 ..
-rw-r--r-- 1 martin martin 1474048 24. Nov 2020  GFSDK_Aftermath_Lib.x64.dll
drwxr-xr-x 3 martin martin    4096 23. Jan 15:56 cef
-rw-r--r-- 1 martin martin 1694208 18. Mär 2020  fmod64.dll
-rw-r--r-- 1 martin martin 1840128 18. Mär 2020  fmodstudio64.dll
-rwxr-xr-x 1 martin martin 1555272 18. Mär 2020  libfmod.so.8
-rwxr-xr-x 1 martin martin 2165064 18. Mär 2020  libfmodstudio.so.8
-rwxr-xr-x 1 martin martin  293146  9. Feb 2018  libopenvr_api.so
-rw-r--r-- 1 martin martin  643584 19. Aug 2017  openal32.dll
-rwxr-xr-x 1 martin martin  598816 22. Feb 2018  openvr_api.dll
-rw-r--r-- 1 martin martin  242976 19. Aug 2017  steam_api64.dll


Ich konnte keine libopenal.so finden, nur die Windows dlls ;)
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5161

PostPosted: Wed Jan 26, 2022 1:00 pm    Post subject: Reply with quote

x-plane nutzt für audio direkt fmod. Und fmod nutzt wohl intern openal(-soft).

Und X-Plane wurde wohl via steam installiert oder? (sehe da steam_api64.dll)
Wenn ja dann nutzt x-plane die openal version welche von der steam runtime mitgeliefert wird.
Aber da du wohl x-plane direkt startest wird eventuell die steam runtime nicht genutzt sondern die im system vorhandenen libraries.

Hattest du eventuell openal schon installiert gehabt bevor du x-plane installiert hast?

kannst du mal nen strace laufen lassen beim start um zu sehen welche openal library geladen wird?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
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