Project cleanup
This commit is contained in:
parent
6b0c221283
commit
c6b3a5cc21
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ dependencies/
|
||||
*.log
|
||||
*.wav
|
||||
*.raw
|
||||
*.iq
|
||||
|
||||
@ -4,11 +4,9 @@ set -eux
|
||||
|
||||
echo "Beginning project setup for SDRPlay interface." > build.log
|
||||
date >> build.log
|
||||
mkdir -p dependencies && pushd dependencies
|
||||
|
||||
# Install build dependencies
|
||||
# Debian:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
git build-essential automake cmake \
|
||||
libpulse-dev libgtk-3-dev \
|
||||
@ -71,41 +69,6 @@ pushd liquid-dsp
|
||||
popd
|
||||
fi
|
||||
|
||||
popd #dependencies
|
||||
echo "Setup completed." >> build.log
|
||||
date >> build.log
|
||||
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
|
||||
3
play.sh
3
play.sh
@ -1,3 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
sox -t raw -r 50000 -b 16 -c 2 -L -e signed-integer - -d
|
||||
15
setup
15
setup
@ -1,5 +1,16 @@
|
||||
#! /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
4
utilities/play.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
O="${1:=-}"
|
||||
sox -t raw -r 32000 -b 16 -c 2 -L -e signed-integer $O -d
|
||||
@ -1,5 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
|
||||
#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
|
||||
Loading…
Reference in New Issue
Block a user