-
Notifications
You must be signed in to change notification settings - Fork 19
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
Failing to start under Pipewire #121
Comments
Right now PulseAudio isn't set up to work with pipewire. Related: #92. Some of the other errors might be separate issues. Do you still have alsa? Can you find an alsa.conf file? The invalid PaErrorCode message is a bit of a bug: we should be throwing a better error there. |
I have the pipewire-alsa compatiblity shim enabled and there are some related-looking files:
|
Well one thing to try would be to add Line 137 in 06c6fd0
|
Another thing to try might be to build a newer version of PulseAudio in BinaryBuilder: https://github.com/JuliaPackaging/Yggdrasil/blob/master/P/PulseAudio/build_tarballs.jl But I suspect the best way to solve it would be to build Pipewire with binary builder and then make alsa-plugins aware of it: https://github.com/JuliaPackaging/Yggdrasil/blob/master/A/alsa_plugins/build_tarballs.jl |
I tried setting the https://files.portaudio.com/docs/v19-doxydocs/portaudio_8h.html#adc955dfab007624000695c48d4f876dc which says
and then set the environment variable so I look at julia> PortAudio.LibPortAudio.Pa_GetDeviceCount()
0 even after julia> PortAudio.LibPortAudio.Pa_Initialize()
0
julia> PortAudio.LibPortAudio.Pa_GetDeviceCount()
0 so something's wrong. I didn't set In Python it works fine. https://github.com/spatialaudio/python-sounddevice/blob/master/sounddevice.py#L453 >>> import sounddevice as sd
>>> sd._lib.Pa_GetDeviceCount()
13 julia> ENV["ALSA_CONFIG_DIR"] = "/etc/static/alsa"
pkg> add PortAudio, SampledSignals
julia> using PortAudio, SampledSignals;
julia> stream = PortAudioStream(2, 2; warn_xruns = false);
ERROR: ArgumentError: invalid value for Enum PaErrorCode: -1
Stacktrace:
[1-5] ⋮ internal
@ Base.Enums, PortAudio, Unknown
[6] PortAudioStream(input_channels::Int64, output_channels::Int64; keywords::Base.Pairs{Symbol, Bool, …})
@ PortAudio ~/.julia/packages/PortAudio/HNBv4/src/PortAudio.jl:871
Use `err` to retrieve the full stack trace.
julia> err
1-element ExceptionStack:
ArgumentError: invalid value for Enum PaErrorCode: -1
Stacktrace:
[1] enum_argument_error(typename::Symbol, x::Int32)
@ Base.Enums ./Enums.jl:93
[2] PaErrorCode
@ ./Enums.jl:211 [inlined]
[3] handle_status(error_number::Int32; warn_xruns::Bool)
@ PortAudio ~/.julia/packages/PortAudio/HNBv4/src/PortAudio.jl:94
[4] handle_status
@ ~/.julia/packages/PortAudio/HNBv4/src/PortAudio.jl:92 [inlined]
[5] get_default_input_index
@ ~/.julia/packages/PortAudio/HNBv4/src/PortAudio.jl:199 [inlined]
[6] PortAudioStream(input_channels::Int64, output_channels::Int64; keywords::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:warn_xruns,), Tuple{Bool}}})
@ PortAudio ~/.julia/packages/PortAudio/HNBv4/src/PortAudio.jl:871
[7] top-level scope
@ REPL[6]:1
|
|
I tried to follow the readme.
NixOS, with Pipewire emulating Pulseaudio.
Julia 1.7.1
The text was updated successfully, but these errors were encountered: