Archive

Network

#!/bin/bash

RTP=”rtpjitterbuffer do-lost=true latency=100″
AUDIO_CAPS=”application/x-rtp,media=(string)audio,clockrate=(int)48000,channels=(int)1″
AUDIO_DEC=”rtpopusdepay ! opusdec ! audio/x-raw, rate=48000, channels=1, format=S16LE”
AUDIO_SINK=”jackaudiosink buffer-time=1000000 connect=0″

gst-launch-1.0 udpsrc port=16384 caps=$AUDIO_CAPS ! $RTP ! $AUDIO_DEC ! audioconvert ! $AUDIO_SINK client-name=micro-n

 

setup wifi
edit /etc/network/interfaces

dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid rearwindow
wpa-psk ******

static IP

auto wlan0
iface wlan0 inet static
address 192.168.2.10
netmask 255.255.255.0
gateway 192.168.2.1
wpa-ssid rearwindow
wpa-psk ******

libnss-mdns

setup usb audio
edit /etc/modprobe.d/alsa-base.conf

options snd-usb-audio index=0
options snd-bcm2835 index=-2
options snd-usb-audio nrpacks=1

edit /boot/cmdline.txt

dwc_otg.speed=1

sources :
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=45&t=27864
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=35698
http://wiki.linuxaudio.org/wiki/raspberrypi

more :
http://tuxradar.com/content/how-it-works-linux-audio-explained
http://alsa.opensrc.org/.asoundrc