bad metadata
	wbaa jazz - no metadata
	europa jazz - codes rather than metadata
	vpr clasical - no meatadata
	kwax classical - no metadata
	concentzender various - no metadata
	concentzender classical - weird/bad metadata
	wbaa-fm classical/npr - no metadata

AAC decoder failures on:
	http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/appleman.m3u8 

AOD list
	http://www.bbc.co.uk/radio/aod/availability/6music.xml

RSS feeds of podcasts
	http://downloads.bbc.co.uk/podcasts/radio4/fricomedy/rss.xml

xsfp XML playlists
	are these historic?

caf format
	apple core audio format
	pro only?

aifc format

id3info
	needs work, misses v3 tags in BBC podcasts


tuner
	should really
		pre-open next stream before current one finishes.

		refresh the playlist and pre-load streams in the background
		and automagically grow the buffer size to prevent starvation

		force dns names into cache, pre-resolve them (tried - not sure)

buttons:
	home - maybe leave for 5 secs and it auto-homes?)
	tune
	like current displayed (may be historic if scrolled back in time)
		also allows you to do like/don't like to train pandora's autoDJ
	technical info on stream
	browse NAS server
	browse podcasts
	song-history (previous titles)
		could play previous shons if I record the
		exact time from the start of a program that each song played
		and then I can look through the show history and find it?
	channel-history (previous shows for the BBC)

web page
	current playing info
	uptime and network stats since uptime
	network dropouts since uptime

qc
	clipped samples
	peak to mean ratio
	cutoff freq
	spectrogram blockiness measure

update mad to the latest code

character sets
	radio (icy) falls back to latin1 if the metadata is invalud utf-8.
	definitely fails on czech radio which needs latin2
	This is an intractable problem.

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 do then?
	I suspose I could drop the system gain a bit?

Raspberry Pi
	
	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


Audio level
	station gain matching
	not everyone obeys the -20/-18 dbFS standard.

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

pre-open next channel to make GUI more responsive?

display previous song on GUI?

doctype(1) for audio (audiotype / audtype)

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

metadata 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.

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

	i2c to rotary encoder
		LSI interface chip?
		PIC chip?

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
	
wav metadata:
	IART (Artist)
	IGNR (Genre)
	INAM (Title)
	IPRD (Album)
	itrk (Track Number) larch% 
