Hello, I am looking for a sanity check. While attempting to grok the freeamp 2.1.1 source to add support for a different type of stream, I find myself unsure if I understand the innerworkings completely.
I have a filetype, which resides on a users disk with extension ".xnd" It is not what I understand a playlist to be (list of many files or a single endless stream), nor is it a data file (like ogg or wav for instance). Maybe it could be described as a playlist for a single fixed length file. It is a pointer to a file stored elsewhere. The data within the remote file will be one of mp3 or ogg or wav or some format supported by freeamp's 'lmc' plugins. I planned to write a new pmi plugin which recognized these .xnd files and passed the data stream to the mp3 lmc. It is my understanding, however, that it is the lmc which recognizes file extensions, not the pmi. and the player which creates the pmi (to be passed to an lmc) based on the lmc's listed supported extensions. And b/c there is no lmc which claims to support .xnd it will not work as i think. I appear then to have two options: 1. alter the mp3 lmc to recognize extensions of .xnd and remove the localfile pmi (having my pmi handle the functionality of the localfilepmi as well as my new functionality) or 2. write plm (Playlistmanager?) to recognize .xnd extensions and add a single file for each xnd as well as the new pmi (and avoiding muttleing with existing plugins). So, I'm asking, am I going about this the simplest way or not? And what would be, if not? Is there some way to read a file from disk and have its extension dictate which pmi claims it w/o writing a playlistmanager (if this is the correct terminology)? THank you for you help, Stephen. _______________________________________________ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev
