From: John P. Looney (valen at domain redbrick.dcu.ie)
Date: Mon 10 May 1999 - 14:24:38 IST
On Sat, May 08, 1999 at 05:22:56PM +0100, Stephen Shirley mentioned:
> MP3's are a very popular way to store and exchange
> music. I have approx 2.5gbs of mp3's on my hard disk
> at home. When you're playing a game, such as quake,
> you can get it to play tracks off an audio cd. What
> I want to do, is write an application that takes the
> output of an mp3 decoder program, and present it to
> the system as another cd-rom drive. It would accept
> the commands to play, pause, next/previous tracks etc.,
> and pass these back to the mp3 decoder. Basicly, it
> would pretend to be an audio cd to the point where a
> normal cd-player program would see and use it just
> like a normal cd-rom drive. I intend to implement
> this under Linux. I have used Linux or 3 years now,
> and it is a lot easier to get information and support
> than if I did this in windows.
Take a look at UserFS or PerlFS. UserFS isn't supported anymore (Jeremy
Fitzhardinge got bored and went hacking on AutoFS & other stuff), but
perlfs could be useful, if you know perl.
They both come with a nice userspace daemon, and example filesystems. I
can mail you the source of oldish versions of both of them, if you can't
find them on the net.
You could write a plugin for these, and it would provide you (say) with a
directory much like the cdromfs that I saw on the kernel-devel mail list
last week: You would get a directory with a dose of wav files on it.
Doing it to extremes, as you suggest, where you make a directory of mp3s,
look like a raw CD device...complex. Could be cunning. No need to touch
userspace: write a driver that takes a directory in it's options, and
export a block device. A damn good 4th year project.
Kate
--
Is PIRACY killing the Amiga?" bravely ponders AMIGA FORMAT -
well, either that or someone's stopped manufacturing the hardware.
-- www.ntk.net (30.04.99)
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:12 GMT