Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39

Thread: Working on new MP3 "front end"

  1. #21
    Newbie
    Join Date
    Jul 2005
    Location
    River Falls, WI
    Posts
    1
    I've been working on something that sound's like what your asking for. When linux starts it opens up some daemons and then starts a gui. (gui is not any where near complete) The gui is just basicly and xml document defining screens and buttons and actions for those buttons and the image to use for the buttons. It uses directfb so there is no X windows to install.

    By the way I've been reading this forum for several months now (and now I finally decide to join in) and this place totally kicks some major ***.

  2. #22
    Newbie
    Join Date
    Dec 2004
    Posts
    48
    suggestion if I may,

    Anyone think about using sqlite or mysql for indexing the backend? Perfernces, music, file etc... indexing makes things faster to have the info index.

    Just a thought.

  3. #23
    Newbie LavaJoe's Avatar
    Join Date
    Jul 2005
    Location
    Lafayette, CO
    Posts
    20
    Quote Originally Posted by DigitalExpl0it
    suggestion if I may,

    Anyone think about using sqlite or mysql for indexing the backend? Perfernces, music, file etc... indexing makes things faster to have the info index.

    Just a thought.
    Yes! I am using sqlite on my prototype. I use an in-memory DB at the moment, read from a flat file at startup. Makes searching, etc. much easier, and it is fast.

    -Joe

  4. #24
    Newbie
    Join Date
    Dec 2004
    Posts
    48
    Quote Originally Posted by LavaJoe
    Yes! I am using sqlite on my prototype. I use an in-memory DB at the moment, read from a flat file at startup. Makes searching, etc. much easier, and it is fast.

    -Joe

    oh nice, thats the way it should be. Does the app index everytime it loads or will you have to do it manually or once a week, etc...

    Thanks

  5. #25
    Constant Bitrate samael's Avatar
    Join Date
    May 2001
    Location
    new zealand
    Posts
    130
    Quote Originally Posted by Shotty
    Can I be so bold as to make a suggestion?

    It seems most (if not all) the front ends are similar in that they use sometihng like visual studio or GTK windowing (i'm sorry, i don't know what they use in linux) to make the front end of the 'front end'.

    What if the actual front end ran as a backend. Aka a service (as is the case in windows, I don't know what the equiv. is in linux). And the front end can be created by anyway.

    That way you can have this rock stable backend with heaps of functionality and any frontend can access it.

    Oh, the other idea is to have a front end created in openGL? You could get some great results I think.
    As always, whenever anyone has an idea, its already been done

    mpd :

    http://www.musicpd.org/

    Its a daemon that plays music, you just connect to an ip and port, and tell it what to do.
    Its pretty sweet, I almost used it myself, but I ended up using cajun instead.

    It has many frontends, command line ones with tab completion, gui xmms-like ones, web browser one, you name it Hell, you can even telnet to it and control it like that
    stupid quote # 1 : "i dont do drugs , i only ever smoke pot when i'm coming down" , Me , 6 september , 2001.

  6. #26
    Newbie LavaJoe's Avatar
    Join Date
    Jul 2005
    Location
    Lafayette, CO
    Posts
    20
    Quote Originally Posted by DigitalExpl0it
    oh nice, thats the way it should be. Does the app index everytime it loads or will you have to do it manually or once a week, etc...

    Thanks
    Every time the app runs, it populates the in-memory DB from the index file, so as long as the file is up to date when you start up, you are good...

    -Joe

  7. #27
    pkg
    pkg is offline
    Low Bitrate pkg's Avatar
    Join Date
    Apr 2005
    Location
    Arizona
    Posts
    96
    How are you scanning the song names and info to the sqlite database? c++ or script? I am working out this issue and am weighing which way to go.
    -pkg

    Check out my tC: http://publicjestering.com/tc
    Check out my site: http://publicjestering.com

  8. #28
    Maximum Bitrate kbyrd's Avatar
    Join Date
    Nov 2003
    Location
    Northern Arizona
    Posts
    485
    Quote Originally Posted by pkg
    How are you scanning the song names and info to the sqlite database? c++ or script? I am working out this issue and am weighing which way to go.
    A disclaimer:
    I'm not running a Linux front end (yet), but I do know my way around software and Linux.

    I've done a lot of data parsing work, loading things into this format, that format, in various programming languages, etc. Are you planning on parsing, manipulating, screening the input (file paths, id3 tag fields, etc.) while you load or are you just going to trust the input? How much control and feedback do you need over the loading process while it runs? Think about it for a bit. I've got mp3s that I "auto-tagged" with cddb/freedb and they have junk characters in the id3 tags. I'm slowly getting them out, but passing these characters to your sqlite db then later on to your UI could cause problems.

    - If you was doing this and I had to do significant parsing, screening, checking of the input, I would not do it in C/C++. Obviously it can be done and sometimes it's the right choice, but I'm lazy and would prefer to have it done and work on something else. I also don't like writing parsers (or lots string manipulation) in C when I can whip something up in Perl (insert today's popular scripting language here). Perl (and others) have great text processing and surely have sqlite bindings for the language. This leads to more of a "just kick off this script and let it run" type of solution. It also means you've got one more piece (the script file) to keep track of on the installed machine.

    - If the loading process is really just about taking the input as is, the you should integrate it more into the main app as a function call in C/C++. The advantages here is that there's no extra requirement for another language runtime on the installed machine, no extra script file to install and keep track of, and you can probably get progress/control the (sometimes) long loading process a bit better.

    Of course, the advantages and problems I listed for each implementation aren't absolutes, you can certainly get progress/control a perl script from C pretty well, it's just that it's one more thing to do. You can also write advanced parsers in C/C++ and do all kinds of great pointer arithmetic, but it's really, really, simple in a scripting language like Perl that has regexp as a built-in.
    My worklog.
    Status: VM GTI sold, got out of the CarPC tinkering hobby, but I still think about getting back in.

  9. #29
    Variable Bitrate intuitionsys's Avatar
    Join Date
    Jul 2005
    Location
    Northern Virginia
    Posts
    293
    I would agree to a point about parsing in C/C++, except using Qt (especially things like QString and QRegExp) make parsing pretty hassle-free.

    By the way, when I get a few things polished, I'm planning on releasing the source code for Silverwolf. It uses modified versions of mpg123 and xine for mp3 and video playback, tv tuner, etc. The frontend is written entirely in C++ with heavy use of Qt and some KDE and aRts bindings for things like spectrum analyzer displays. When I release the code I'll try to make it as generic as possible (and include more comments )
    Silverwolf 2 is dead.
    Silverwolf 3...?

  10. #30
    Newbie LavaJoe's Avatar
    Join Date
    Jul 2005
    Location
    Lafayette, CO
    Posts
    20
    Quote Originally Posted by pkg
    How are you scanning the song names and info to the sqlite database? c++ or script? I am working out this issue and am weighing which way to go.
    I first make an index file, which has one song per line. This is done in Python, and it runs my my home machine when I need to update it with new music.

    The index, along with the music, gets synced to the car system, and when the music browser launches, Python code reads the index file into sqlite.

    The code is here:

    http://www.skyrush.com/lavaMP3/

    -Joe

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Connecting portable mp3 player to car speakers.
    By HomelessGuy in forum Car Audio
    Replies: 8
    Last Post: 10-16-2007, 09:51 PM
  2. Anyone Destinator working in Centrafuse ?
    By superbowl in forum Centrafuse
    Replies: 31
    Last Post: 02-05-2005, 11:30 AM
  3. In dash car MP3 CD Costs
    By mp3designer in forum Classified Archive
    Replies: 7
    Last Post: 02-06-2001, 03:23 PM
  4. Car MP3 Costs???
    By mp3designer in forum General MP3Car Discussion
    Replies: 3
    Last Post: 01-24-2001, 10:45 PM
  5. complete working mp3 player , including SHARP 6" lcd
    By mattfrag in forum Classified Archive
    Replies: 1
    Last Post: 06-27-2000, 09:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •