Closed jharvell closed 3 months ago
On purpose, you're not supposed to use both.
Ok, that's what I thought. So I cannot include both in the release as you suggested. Which (if either) should I include?
The module list in the readme is a bit ambiguous on this subject because the MacOS release uses the portaudio based audio_sink
module, the Android release uses the AAudio based one and the windows and linux releases use the RtAudio one. In addition to this, there is the "New portaudio sink" which is supposed to be the replacement for the RtAudio one but is currently in testing only.
This means you must include the RtAudio based audio_sink
and the new_portaudio_sink
modules.
Thanks for the clarification.
I'v submitted a pull request to add the package to Gentoo. Since it's a new package they say it could take a long time before they get to reviewing it. I don't know how long that is.
Hardware
Software
Bug Description I am working on getting this packaged for Gentoo. As you requested, I am making sure all the "Built In Release" modules are included. However, it is not possible to build with both OPT_BUILD_AUDIO_SINK and OPT_BUILD_PORTAUDIO_SINK enabled because they both use the same CMAKE project name _audiosink.
Looking at the code, it seems like only one or the other is intended to be built, which would imply the module documentation is wrong. But assuming the documentation is correct and the code is wrong, I have attached a patch that enables both to be built. This patch also registers both both modules so that they are included in the drop down list Sinks->Radio->Audio. Since those are still beta, you might not want to take that part. But I include it here as demonstration that everything works at runtime with these changes.
I also noticed that the PORTAUDIO module does not implement configuration. So the audio device last selected with that sink is not persisted like it is with AUDIO and NEW_PORTAUDIO.
Steps To Reproduce
mkdir build
cd build
cmake -DOPT_BUILD_AIRSPYHF_SOURCE=OFF -DOPT_BUILD_AUDIO_SINK=ON -DOPT_BUILD_PORTAUDIO_SINK=ON ..
Observe the following error from CMake v3.30.2:
Note I only turn off AIRSPYHF since I don't yet have the library it depends on. upstream_audio_portaudio.patch.txt