Coder Social home page Coder Social logo

gitter-badger / amcp-rpi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ardentheavyindustries/amcp-rpi

0.0 1.0 0.0 15.08 MB

Software and configuration for the Ardent Mobile Cloud Platform's Raspberry Pi

Python 66.07% C 29.73% Shell 4.19%

amcp-rpi's Introduction

amcp-rpi

Software and configuration for the Ardent Mobile Cloud Platform's Raspberry Pi

System Setup

  • Use the latest version of Raspbian
  • Use rpi-update to install the latest firmware
  • Install extras with system/install.sh

Building the Server

The server is written in Python, but it includes C-language extension modules. For convenience, you can build it in-place:

$ ./setup.py build --build-platlib=.
running build
running build_py
running build_ext

Running it:

$ ./server.py
2013-08-07 14:40:56,536 - amcpserver - DEBUG - action="init_server", port="8000"
2013-08-07 14:40:56,540 - amcpserver - DEBUG - action="init_soundout", system="Darwin"
press enter to quit...

Shairport

The shairport project is an open source AirPlay-compatible server. It runs really nicely on the Raspberry Pi. The original version was a mishmash of Perl and command line tools, with a C-language daemon to handle audio decompression.

There's a new 1.0 release of shairport under development which is much friendlier and more efficient. It's been rewritten fully in C, and it has a much nicer architecture. This code still hasn't been merged back to the main branch, but I've been testing it and it seems nice and solid. The repository is on Github:

https://github.com/abrasive/shairport/tree/1.0-dev

Important: By default, this will compile without any optimization flags. Compile-time optimization is really important for the audio decompression code here! In my testing, CPU usage went from 40% down to about 15% by compiling with optimization:

./configure
CFLAGS="-O3 -ffast-math" make

Raspberry Pi Steps

install SD card
boot up and change the default password and expand the filesystem, reboot (raspi-config is the tool)
sudo rpi-update
sudo apt-get update

sudo apt-get install libssl-dev

sudo apt-get install mplayer
sudo apt-get install screen vim
git clone https://github.com/abrasive/shairport.git -b 1.0-dev (clone the shairport branch that's better)
cd ~/shairport
./configure CFLAGS="-O3 -ffast-math"
make
make install
cd ~
git clone https://github.com/ArdentHeavyIndustries/amcp-rpi.git
python setup.py build --build-platlib=.
cd ~/amcp-rpi/system
./install.sh

amcp-rpi's People

Contributors

edrabbit avatar fragmede avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.