update readme for portaudio installation
This commit is contained in:
13
README.md
13
README.md
@@ -139,22 +139,23 @@ sudo systemctl status auracast-frontend
|
||||
If you want to run the services as a specific user, edit the `User=` line in the service files accordingly.
|
||||
|
||||
# install port audio so it can see pipewire devices on raspian
|
||||
sudo apt remove -y libportaudio2 portaudio19-dev libportaudiocpp0
|
||||
|
||||
sudo apt update
|
||||
sudo apt install --no-install-recommends \
|
||||
git build-essential cmake pkg-config \
|
||||
libasound2-dev libpulse-dev libjack-jackd2-dev
|
||||
|
||||
git clone https://github.com/PortAudio/portaudio.git
|
||||
cd portaudio # branch = master (19.7‑devel)
|
||||
cd portaudio
|
||||
git checkout 9abe5fe7db729280080a0bbc1397a528cd3ce658
|
||||
rm -rf build
|
||||
cmake -S . -B build -G"Unix Makefiles" \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DPA_USE_ALSA=ON \
|
||||
-DPA_USE_OSS=ON \
|
||||
-DPA_USE_PULSEAUDIO=ON \
|
||||
-DPA_USE_PIPEWIRE=ON \
|
||||
-DPA_USE_JACK=OFF
|
||||
cmake --build build -j$(nproc)
|
||||
sudo apt remove -y libportaudio2 portaudio19-dev libportaudiocpp0
|
||||
sudo cmake --install build # installs to /usr/local/lib
|
||||
sudo ldconfig # refresh linker cache
|
||||
|
||||
@@ -169,11 +170,13 @@ sudo ldconfig # refresh linker cache
|
||||
- sudo udevadm control --log-priority=debug --reload-rules
|
||||
- sudo udevadm trigger
|
||||
- bash src/service/update_and_run_aes67.sh
|
||||
- poetry config virtualenvs.in-project true
|
||||
- poetry install
|
||||
- activate server and frontend
|
||||
- bash srv/service/update_and_run_server_and_frontend.sh
|
||||
- update to latest stable kernel
|
||||
- echo "y" | rpi-update stable
|
||||
- place cert
|
||||
- place cert
|
||||
- disable pw login
|
||||
- reboot
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import sounddevice as sd, pprint
|
||||
print(sd._libname) # → /usr/local/lib/libportaudio.so.2
|
||||
print(sd.get_portaudio_version()) # 19.7.0‑devel (or newer)
|
||||
pprint.pprint(sd.query_devices()) # every PipeWire sink/source appears
|
||||
print("PortAudio library:", sd._libname)
|
||||
print("PortAudio version:", sd.get_portaudio_version())
|
||||
print("\nHost APIs:")
|
||||
pprint.pprint(sd.query_hostapis())
|
||||
print("\nDevices:")
|
||||
pprint.pprint(sd.query_devices())
|
||||
Reference in New Issue
Block a user