Project cleanup

This commit is contained in:
Jono Targett 2023-05-10 17:03:49 +09:30
parent 6b0c221283
commit c6b3a5cc21
8 changed files with 18 additions and 43 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ dependencies/
*.log *.log
*.wav *.wav
*.raw *.raw
*.iq

View File

@ -4,11 +4,9 @@ set -eux
echo "Beginning project setup for SDRPlay interface." > build.log echo "Beginning project setup for SDRPlay interface." > build.log
date >> build.log date >> build.log
mkdir -p dependencies && pushd dependencies
# Install build dependencies # Install build dependencies
# Debian: # Debian:
sudo apt-get update
sudo apt-get install -y \ sudo apt-get install -y \
git build-essential automake cmake \ git build-essential automake cmake \
libpulse-dev libgtk-3-dev \ libpulse-dev libgtk-3-dev \
@ -71,41 +69,6 @@ pushd liquid-dsp
popd popd
fi fi
popd #dependencies
echo "Setup completed." >> build.log echo "Setup completed." >> build.log
date >> build.log date >> build.log
exit 0 exit 0
########################### DONT NEED THIS STUFF ###################################
## Build wxWidgets
#if ! [ -d wxWidgets-3.2.1 ]; then
#wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.1/wxWidgets-3.2.1.tar.bz2
#tar -xvjf wxWidgets-3.2.1.tar.bz2
#rm wxWidgets-3.2.1.tar.bz2
#pushd wxWidgets-3.2.1
# ./autogen.sh
# ./configure \
# --with-opengl --disable-glcanvasegl --disable-shared --enable-monolithic \
# --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest \
# --enable-unicode --enable-display --enable-propgrid --disable-webview \
# --disable-webviewwebkit CXXFLAGS="-std=c++0x"
#
# make -j
# sudo make install
#popd
#fi
#
## Build CubicSDR
#if ! [ -d CubicSDR ]; then
#git clone https://github.com/cjcliffe/CubicSDR.git
#pushd CubicSDR
# mkdir build
# pushd build
# cmake ../ -DCMAKE_BUILD_TYPE=Release \
# -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wx-config
# make -j
# sudo make install
# popd
#popd
#fi

View File

@ -1,3 +0,0 @@
#! /bin/bash
sox -t raw -r 50000 -b 16 -c 2 -L -e signed-integer - -d

15
setup
View File

@ -1,5 +1,16 @@
#! /bin/bash #! /bin/bash
sudo apt install rtl-sdr sox portaudio19-dev python3-all-dev sudo apt-get update
pip install pyaudio filters sudo apt install -y \
rtl-sdr \
sox \
portaudio19-dev \
python3-all-dev \
ffmpeg
pip install -r requirements.txt
pushd dependencies
./build_dependencies
popd

4
utilities/play.sh Executable file
View File

@ -0,0 +1,4 @@
#! /bin/bash
O="${1:=-}"
sox -t raw -r 32000 -b 16 -c 2 -L -e signed-integer $O -d

View File

@ -1,5 +1,4 @@
#! /bin/bash #! /bin/bash
#rtl_sdr -f 105.5M -s 1M - | ./fm1s.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234 #rtl_sdr -f 105.5M -s 1M - | ./fm1s.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234
./demo.py | ./fm1s_int16.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234 ./demo.py | ./fm1s_int16.py | ffmpeg -f s16le -ar 50k -ac 2 -i - -f rtp rtp://localhost:1234