Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#23726 - 13/12/2000 09:07 which fid is playing?
jason
stranger

Registered: 31/08/1999
Posts: 28
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


Top
#23727 - 13/12/2000 09:30 Re: which fid is playing? [Re: jason]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
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
_________________________
Tony Fabris

Top
#23728 - 13/12/2000 09:57 Re: which fid is playing? [Re: tfabris]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
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
_________________________
Frank van Gestel

Top
#23729 - 13/12/2000 10:01 Re: which fid is playing? [Re: fvgestel]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
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
_________________________
Tony Fabris

Top
#23730 - 13/12/2000 14:04 Re: which fid is playing? [Re: tfabris]
phaigh
addict

Registered: 04/11/1999
Posts: 649
Loc: Reading, UK
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.

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

Top
#23731 - 15/12/2000 08:39 Re: which fid is playing? [Re: jason]
anti
member

Registered: 10/07/2000
Posts: 117
Loc: BaWue, Germany, Europe
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
_________________________
-------------------- MKII 08000073 40GB BLUE

Top
#23732 - 15/12/2000 10:41 Re: which fid is playing? [Re: anti]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
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



Top
#23733 - 18/12/2000 05:40 Re: which fid is playing? [Re: altman]
anti
member

Registered: 10/07/2000
Posts: 117
Loc: BaWue, Germany, Europe
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
_________________________
-------------------- MKII 08000073 40GB BLUE

Top