which fid is playing?

Posted by: jason

which fid is playing? - 13/12/2000 09:07

It seems there was mention (by the empeg folks) a while back about having the player output
which file is was currently playing. What happened to this?

I'd like to write a program to stream the currently-playing mp3 over the network. It'd be cool
to be able to get this information (fid) to other processes. I've thought of just looking for which
files the player has open, but I suspect that it may be hard to determine which is actually
playing, and which are just opened for caching.

At least, consider it a wish...

-j

Posted by: tfabris

Re: which fid is playing? - 13/12/2000 09:30

I believe it already outputs which FID is playing over the serial port. You might have to add a line to CONFIG.INI to make it happen (anyone have that information?), but I'm pretty sure that works right now.

The thing some people wanted was to have it dump song title/artist information out of the serial port so that they could hook it up to video titlers. As far as I know, it doesn't do that yet?

___________
Tony Fabris
Posted by: fvgestel

Re: which fid is playing? - 13/12/2000 09:57

It does, You only cannot read this info from other applications without modifying the kernel.
I've found a way to do the reverse BTW: You can send serial commands to the player app from any other process

Frank van Gestel
Posted by: tfabris

Re: which fid is playing? - 13/12/2000 10:01

Oh, I thought he meant an application on the PC. He was talking about an app on the empeg itself. Sorry, right, I didn't read the original message closely enough.

___________
Tony Fabris
Posted by: phaigh

Re: which fid is playing? - 13/12/2000 14:04

You need to set timecodes=1 (URL: http://empeg.comms.net/cgi-bin/showthreaded.pl?Cat=&Board=hackers_prog&Number=4350&page=&view=&sb=&vc=1#Post4350) in the config.ini file to get this to output the fid to serial.

Cheers,

Paul.

Paul Haigh, Reg. 4120
(mk1) 6GB, Blue, 00254
(mk2) 12GB, Red, 00357

Edited by phaigh on 13/12/00 09:05 PM.

Posted by: anti

Re: which fid is playing? - 15/12/2000 08:39

hmmm .... it looks like there are quite a lot of people who are just waiting for this feature.
My UDP broadcaster has been running on my empeg for over two month now.
(Just broadcasting the temperature - in lack of the fid)

Would it be possible to read the fid directly from the player memory ?
Or make the serial dev a pipe which is relayed to the real serial dev via our application ?

anti


--------------------
MKII 08000073 12GB BLUE
Posted by: altman

Re: which fid is playing? - 15/12/2000 10:41

The FID is in /dev/empeg_state (which I think can be opened multiply). Read 128 bytes from this from offset 0 and you get the state which is saved in flash on poweroff. Not sure what offset the FID is, but it's in there - it may changed in 1.1 though.

Hugo


Posted by: anti

Re: which fid is playing? - 18/12/2000 05:40

I'm not sure, but I think I tried this a while ago with the 1.0 developer image.

The player crashed if I opened /dev/empeg_state (RO) in the init script (before the player started.)

I'll upgrade to the newest image and have a go over the holidays...

anti


--------------------
MKII 08000073 12GB BLUE