Difference between revisions of "Iron Curtain"

From SlugWiki
Jump to: navigation, search
(XMMS Plugin)
Line 20: Line 20:
 
</pre>
 
</pre>
  
Data format streamed from the XMMS Plugin to user programs via named_pipes
+
Data format streamed from the XMMS Plugin to user programs via named_pipes. There are two types of data: Information data about the state of XMMS and frequency data from the playing song. Each is preceded by an id number followed by the bytes of relevant data.
 
<pre>
 
<pre>
 +
Frequency Data:
 +
4 bytes: Id, which is 1 for frequency data
 +
4 bytes: time into song in milliseconds
 +
256 bytes:
 +
 +
Info Data:
 +
4 bytes: 1
 +
second byte: length of title
  
 
</pre>
 
</pre>

Revision as of 01:06, 3 March 2008

Overview

An LED display built out of LED boards from some dead guy at TEP.

XMMS Plugin

Use the functions in xmms-1.2.11/libxmms/xmmsctrl.h to get data other than frequency and PCM data. Useful functions include:

gint xmms_remote_get_output_time(gint session);
gint xmms_remote_get_playlist_length(gint session);
gchar *xmms_remote_get_playlist_file(gint session, gint pos);
gchar *xmms_remote_get_playlist_title(gint session, gint pos);
gint xmms_remote_get_output_time(gint session);
gboolean xmms_remote_is_playing(gint session);
gboolean xmms_remote_is_paused(gint session);
gboolean xmms_remote_is_shuffle(gint session);
gboolean xmms_remote_is_repeat(gint session);
int xmms_remote_get_main_volume(gint session);
int xmms_remote_get_balance(gint session);
int xmms_remote_get_playlist_pos(gint session);

Data format streamed from the XMMS Plugin to user programs via named_pipes. There are two types of data: Information data about the state of XMMS and frequency data from the playing song. Each is preceded by an id number followed by the bytes of relevant data.

Frequency Data:
4 bytes: Id, which is 1 for frequency data
4 bytes: time into song in milliseconds
256 bytes: 

Info Data:
4 bytes: 1
second byte: length of title

Each named pipe should have only one user. The current named pipes are given below. Contact Lyric if you want one.

Pipe Name User
magical_trevor lyric
corn_cob arwest
hash_pipe natech