http://radio.irt.de/aida/frames.htm


extracting the status2 file from icecast servers but some servers have more than one stream
and I have no idea (yet) how to work out which mountpoint relates to the stream we are interested in.

also I see referenecs to a UDP metadata side channel on sone servers - all very odd, doesn't seem
to be used widely (maybe historic).

strange results from chillout - server,

	it claims to be 'Icecast 2.3.3-kh7'

	larch% hget -d -r 'User-agent: Mozilla' http://pub4.di.fm:80/status2.xsl
	4 -> GET /status2.xsl HTTP/1.0
	Host: pub4.di.fm
	User-agent: Plan9/hget
	Cache-Control: no-cache
	Pragma: no-cache
	4 -> User-agent: Mozilla
	4 -> 
	4 <- HTTP/1.0 200 OK
	4 <- Content-Type: text/html
	4 <- Content-Length: 8370
	4 <- Expires: Thu, 19 Nov 1981 08:52:00 GMT
	4 <- Cache-Control: no-store, no-cache, must-revalidate
	4 <- Pragma: no-cache
	4 <- 
	/di_ambient,17
	/di_ambient_aac,25
	/di_ambient_aac.flv,0
	/di_ambient_aacplus,8
	/di_ambient_aacplus.flv,0
	/di_bigroomhouse,1
	/di_bigroomhouse_aac,12
	/di_bigroomhouse_aac.flv,0
	etc...
	

icecast allows you to extract a rather badly formatted data without auth:
	hget -r 'user-agent: Mozilla' http://pplnettv.wnet.ua:8000/status2.xsl

	mountpoint,,name,num of listners,description,artist - track,url

	compare
		http://pplnettv.wnet.ua:8000/status2.xsl
	to
		http://pplnettv.wnet.ua:8000/status.xsl
 
shoutcast, extra info:
	history		hget 'http://192.99.4.210:3116/played?id=139378' | htmlfmt
	next		hget 'http://192.99.4.210:3116/nextsong?id=139378'
	current		hget 'http://192.99.4.210:3116/currentsong?id=139378'
	stats		hget 'http://192.99.4.210:3116/stats?id=139378' | htmlfmt

-------------------------

some NPR stations have a short advert on connect, this seems to contain/ be prefixed by
some unusal metadata:


	kexp					http://live-mp3-128.kexp.org:8000/listen.pls
	xxx						http://nis.stream.publicradio.org/nis.aac

	icy: 'adw_ad=true' unknown field
	icy: 'durationMilliseconds=14907' unknown field
	icy: 'insertionType=preroll' unknown field
	icy: 'metadata=adswizzContext=fHA6MTY2OA%3D%3D' unknown field

	seems its advertising, inserted by 'adswizz'

	I could strip it given I know exactly how long it is, but what would I
	
http://blog.koalo.de/2013/04/pcmpwm-clock-calculator.html
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&t=8496

bug in ac97 driver
	a second open of /dev/audio gives an allocation
	error, kill the first app who opened /dev/audio gives a kernel panic.

	try 9atom audio

	try 9front audio


volctl broken
	doesn't play nicely with ac97 driver (driver presents a non-standard interface)

	colours are ugly

	horz controls are non-intuitive, why not a pi-menu

update of some stations now-playing info via web scraping (ugh)

per station gain matching info as not everyone obeys the -20/-18 dbFS standard.

http://www-mmsp.ece.mcgill.ca/Documents/Software/Packages/AFsp/AFsp.html

display previous song on GUI?

doctype for audio (audiotype / audtype)

maybe /bin/audio/ should become /bin/aud

libfaad2
	fixed point build causes 8c to run out of registers - forsyth informed.

richard miller's new kernel build
	try his s9pi.boot

metadat preload
	On powerup we could could fetch the metadata on the
	channels adjacent to the current one, moving outwards
	until we have the all. Maybe testing one channel everty 10 secs
	so we have metadata as soon as the knob is turned.
	Looks like this is not really necessary - we seem
	to get metadata withing a second or so.

Other file formats
	ADIF
	AFIF 
	WAV/BWAV
	OGG/VORBIS
	OPUS
		reference opus library builds but completely untested
	other decoders from 9front?
Hardware
	"I like this" button

	PI pheriphals
		http://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
		http://www.airspayce.com/mikem/bcm2835/

	get an Rotary encoder interfacing chip
	debug the rotary encoder to Rpi interface
		https://code.google.com/p/sixcode/source/browse/trunk/LS7366R.c?r=77
		http://www.usdigital.com/assets/datasheets/LFLS7366R-S_datasheet.pdf?k=635202085481038020

	GPIO interface expander
		Drive leds
		Scan keyboard
		vfd drive

	debug the VFD interface

	i2c to rotary encoder
		LSI interface chip?
		PIC chip?

	PSU
		5v
		12v
		3.3v needed?
	
	ethernet socket on back panel (square hole)

	ethernet drop cable to back pannel

	SPI driver
		https://projects.drogon.net/understanding-spi-on-the-raspberry-pi/


	mount VFD

	shim on shaft of rotary encoder, 6 to 6.25 mm

plan9
	boot into cpu kernel
	build new kernel and install it
	web interface with 1 page editor
	web access controlled by .httpaccess
	gpio driver
	i2c driver
	i2s driver
	
cut down alloy sheet for baseplate of radio


