#!/bin/sh

SI_ARGS="/dev/i2c-12 0x65"

if si_ctl $SI_ARGS -c "$1"; then
	export LD_LIBRARY_PATH=/usr/local/lib
	exec gst-launch-1.0 pulsesrc device=radio ! queue ! audioconvert ! audioresample ! audio/x-raw,rate=48000 ! pulsesink sync=false
fi
