*Foobar2000 Remote Interface 1.0
*By Trex6662k5 (http://xbmc-ri.blogspot.com/)
------

*Foobar2000 - Peter Pawlowski
*foo_controlserver - Jason Poloski
---
*Font blitting - Peter Thoman
*TmpImages, scroller - Jonny2002
---
*UI buttons - Aeroman (Smoke Aeroman x32)
*Icon - kaibyaku2
*Background - Lettie
---
*Powered by LUAPlayer 2.0 MOD by yoursam
------

Inspiration
---
*XBMC Remote Interface - Originally coded by Jonny2002. Improved on by myself.
*Foobar Remote Control PC - Coded in AutoIT by ICT
------

*Having improved on XBMC RI, I decided to tinker further with it.
*View playlists, tracklists, change repeat and shuffle modes, control playback funtions, queuing.
------

Ideal scenarios
---
*Cant be bothered to get out of bed
*Wireless headphone owner. Tends to listen to music around the house or even outside.
*Scare people shitless.
------

Requirements
---
*Tested on Foobar2000 v0.9.4.2
*foo_controlserver 1.0.0 beta 1

*Foobar2000 MUST be installed AND running WITH foo_controlserver in the components folder for Foobar2000 to LOAD it.
*foo_controlserver MUST also be CONFIGURED PROPERLY in order for the script to WORK.

*In Foobar2000 preferences, tools. Fields MUST be configured excactly as written below
*%length_seconds%|$if(%album artist%,%album artist%,%artist%)|%album%|%tracknumber%|%title%

*Failure to do so will cause malfunction.

*For security I recommend entering allowed IP addresses that are able to connect to Foobar2000
*I also recommend Increasing number of clients to about 5.

------

Installation
---
*Since I expect everyone to be using firmware by Darkalex, I have only made a 1.0 EBOOT.

*Extract archive to the GAME folder configured with the 1.5 Kernel.

*Open settings.ini and configure.
------

Notes Worth Reading
---
*When the script connects to Foobar2000 and your music magically starts seeking or volume changes
Make sure the analogue stick is dead in the centre. I fear I might have made it too sensitive.

*I intentionally left out the currently playing; play time since I dont use it myself in my Foobar2000 setup.
Next, Previous, Random buttons dont change (even though the images are there I just didnt put them to use)

*If you select another track while you have something queued Foobar2000 will erase that without the script noticing. 
So even though it says Queue(5) and you break the queue, you infact have none. To fix this view the queue. I'll also do something on my part too.

*I got corruption on transfering data, I solved this by putting a 7ms pause on the network function. If you get errors on lines 848 or 856 then increase the pause rate in settings.ini

*Default playlist is the default UI playlist. Libary View is usually the ColumnsUI active playlist
Unless you renamed it.

*At times the script fails to grab the inital data. This might be because I'm pulling the data too fast but I've tried other ways (it currently looks absolutely horrible), if it does this press start till all fields are filled in. Order, volume, playlist and tracklist.

------

Controls
---
*R Trigger - Next
*L Trigger - Previous

*Triangle - Pause \ Resume
*Circle - Random
*Square - Stop
*Cross - Select Item

*Analog Stick 
	Up \ Down - Volume
	Left \ Right - Seek
*Select
	In playlist - Add to queue
	In queue - Remove from queue.
*Start - Refresh information

------

Things to improve on
---
*Tracklist display.
*Queuing a playlist adds its contents to the queue.
*Album art (This requires me learning C++ though)

------
