| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sat Sep 30, 2006 2:19 pm Post subject: piping metadata to IceS (2.0.1) from C program. |
|
|
Hi All
Im trying to take data from a serial port and use it for metadata in a stream using IceS 2.0.1
When running IceS I can manually type in "artist=hello world" (with a blank line following) and it shows on XMMS
the C program I fumbled together produces an output like the following
>./a.out
A total of 641 was read in
artist=
artist=02-METRO NORTH
artist=
artist=TGID NOT KNOWN
artist=
artist=TGID NOT KNOWN
artist=
artist=02-METRO NORTH
artist=
but when I pipe this output to IceS with the following
>./a.out | ices /usr/local/share/ices/ices-oss.xml
no meta data turns up on XMMS. Can anyone explain whats going on and how to get this to work. Probably be that I misunderstand IceS or the pipe system. For hardware reasons I'm trying to avoid the write to file and signal method of passing metadata.
regards
Owen |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Nov 04, 2006 6:23 am Post subject: Re: piping metadata to IceS (2.0.1) from C program. |
|
|
I sorted this problem out in the end it had to do with buffering of stdout
when I put
fflush(stdout);
after printf the stream worked and the metadata ended up where it should
owen |
|
| Back to top |
|
 |
|