Re: [ILUG] FYP idea

From: Dave Airlie (david.airlie at domain ul.ie)
Date: Sat 08 May 1999 - 16:46:08 IST


>
> 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.

It's certainly possible, you'd need to add a new device that would accept
the CD audio ioctls, and then spawns of an mp3 player to play whatever
number you happen to choose ...

So as a quick idea, you'll need a daemon running in user-space, that is
waiting for a message from the kernel, maybe the netlink stuff might work
here, then you need to add a new device to the kernel which registers the
proper ioctls for audio cd drives, and using the information gotten
transmit the ioctl information to the daemon which spawns an mp3 player,

To take it a step further, you could also do the ioctls that check the
track times as it plays and the standard cdplayers would display the time
in the track, total time etc... its a very possible project all right,
exactly how easy it is I'm not sure, it sounds like probably do-able to
the level of playing a track in a weekend with no sleep and lots of jolt,

Dave.

>
>

-- 
------------ David Airlie, David.Airlie at domain ul.ie,airlied at domain skynet --------
Telecommunications Research Centre, ECE Dept, University of Limerick \
http://www.csn.ul.ie/~airlied	-- Telecommunications Researcher      \
--- TEL: +353-61-202695 -----------------------------------------------


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:11 GMT