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