Jump to content


Photo

Ommpc2x V0.1.2


  • Please log in to reply
24 replies to this topic

#1 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 09 July 2007 - 07:26 AM

I'll start this off by saying thanks to Michael(not sure if he's registered here, and don't want to give out full name w/o permission) for the large patch he send me which adds the big enhancement for this release. We now have resume of the now playing song at the last played location upon restarting the player. Just leave the song playing when you exit and it will resume when you start back up.

There are a few other changes sprinkled in included paging the playlist or browser by using left/right on the joystick. Volume control and Prev/Next while locked. Also some fixes/clarifications in the doc. Such as, in case you didn't know, the player has normal Repeat/Random modes that can be access with the 'A' button....

One important thing to note with the build...there is a line that must be added to mpd.conf for the resume to work correctly.... Make sure you get the following in there...

state_file "/mnt/sd/ommpc2x/.mpdstate"

Another important note... I've apparently left the bookmarks directory out of the archive and was a lazy programmer and the application doesn't create one for you. So you'll need to create a bookmarks folder off of "programRoot" for that functionality to work...

Unfortunately still have the nagging issues where mpd will sometimes just not output anything after changing songs until you pause/unpause and/or change volume. Been looking, but haven't come up with anything yet...

Anyway, changlog is below, download links follow...have fun...you have a few hours before the gbax entries hit.... tongue.gif
1. Merge of changes from Michael summarized below
_a. Use of mpd states to save/load current playlist, allowing for resuming now playing song on restart
_b. Addition of an Add all Songs playlist...
_c. New "mpd kill" routine to facilitate save states
_d. Added needed "sync" calls after writes
_e. Cleanup/Safety checks added to thread code.
Other changes...
2. Fixed random playlist code so that it won't add two of the same title...
3. Slightly reduced button hold time for screen blank/lock.
4. Allow volume changes while locked(B+vol)
5. Allow Prev/Next while locked(B+triggers)
6. Left and Right joystick now page up/down
7. Changes to Help text to mention random and repeat modes and clarify normal versus hold commands
8. Changed Vol/file type text to better fit in different layouts...
9. Readme and control file fixes to mention above random and repeat modes and need case of album art files.

Zip Archve

Bunzipped tar file

Edited by Coder_TimT, 13 July 2007 - 02:08 PM.


#2 Mikey242

Mikey242

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 194 posts
  • Location:Bahamas Living in: Newcastle, U.K.

Posted 09 July 2007 - 10:14 AM

Nice work Tim and Michael.

This player is coming along very nicely.

#3 imhotep

imhotep

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 641 posts

Posted 10 July 2007 - 01:56 PM

Are bookmarks working for other people? I am new to this app and can't get them working yet (I have tried via bookmarks section and via start pop-up menu).

The new feature of resuming last position in track works well though which is useful as a sort of bookmark in itself.

#4 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 10 July 2007 - 02:14 PM

QUOTE(imhotep @ Jul 10 2007, 08:56 AM) View Post

Are bookmarks working for other people? I am new to this app and can't get them working yet (I have tried via bookmarks section and via start pop-up menu).

The new feature of resuming last position in track works well though which is useful as a sort of bookmark in itself.


Seem to still be working. Is "programRoot" in ommpc.conf pointing to the correct location. And does the bookmark directory exist in "programRoot".


#5 mwolson

mwolson

    Member

  • Members
  • PipPip
  • 27 posts
  • Interests:manga, Ubuntu, XHTML, wiki, Emacs Lisp

Posted 11 July 2007 - 08:53 PM

Ah, excellent! Thanks for merging in my patches :^) . Can you push the new version to the subversion repo so that I can track it?

#6 DBH

DBH

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 538 posts
  • Location:London, England

Posted 12 July 2007 - 01:08 PM

Hey dude was just wondering if the player supports .pls extension files?

#7 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 12 July 2007 - 01:44 PM

QUOTE(DBH @ Jul 12 2007, 08:08 AM) View Post

Hey dude was just wondering if the player supports .pls extension files?


From a quick google search, I'm guessing that is a winamp playlist file? Then no, only m3u style playlists are supported.

#8 DBH

DBH

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 538 posts
  • Location:London, England

Posted 12 July 2007 - 03:24 PM

Ok reason I asked that is because ibreak.co.uk uses .pls for its radio stream. If another station used .m3u would that work as well?

#9 Micket

Micket

    GP32 Hardcore

  • Members
  • PipPipPipPip
  • 196 posts
  • Location:Sweden, Gothenburg
  • Interests:Art (See site)<br />Programming - Haskell, C, Java, Matlab, PHP<br />Currently maintaining oldplay

Posted 12 July 2007 - 03:41 PM

Adding support for pls-files should be very easy. It's actually alot easier to parse then m3u.
http://en.wikipedia....S_(file_format)

#10 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 12 July 2007 - 04:24 PM

@micket - Thanks for that link, looks easy enough to handle...I could either convert into m3u so that mpd could deal with it, or I guess the proper way to handle would be to hack it into the mpd source. Something to think about...

@DBH - I'm thinking m3u or pls playlist from online radio stations are not going to work unless Shoutcast/Icecast support is implemented...which by the way isn't looking terribly promising because Icecast and tremor don't appear to play well together. An m3u file that linked to seperate mp3s on a remote web server might work...but not a normal radio stream... Okay, I was completely off base, see below...

Edited by Coder_TimT, 13 July 2007 - 07:48 AM.


#11 mwolson

mwolson

    Member

  • Members
  • PipPip
  • 27 posts
  • Interests:manga, Ubuntu, XHTML, wiki, Emacs Lisp

Posted 12 July 2007 - 05:27 PM

The easiest way to handle pls files is for ommpc to extract the URLs (or filenames, as the case may be) from the file and just add them to mpd's current playlist. That's what I did for a similar project (The Emacs MultiMedia System). No need to patch mpd.

#12 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 13 July 2007 - 07:57 AM

Okay, I just realized that I was completely off base on what the icecast integration was for with mpd. It's actually to pipe the music from mpd to an icecast server to listen to wherever. I did eventually get it compiled in...but for right now it's not terribly important.

Anyway, as for internet radio streams...yes mpd should support them. If you have a m3u playlist you should be able to load it and go I think. I'll look into getting pls playlists handled also... This is all assuming you're gp2x can get out to the internet to access the streams...if not it appears to crash right now...

Sorry for any confusion I might have caused....

#13 DBH

DBH

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 538 posts
  • Location:London, England

Posted 13 July 2007 - 09:09 AM

Awesome dude if you can add the .pls soon I will have an internet radio station working proper!!! Much needed for me smile.gif Only shitty thing for me is in my office we got like 12 different wireless networks around me and my gp2x doesnt want to connect to my office network first argh!!!!!

Edited by DBH, 13 July 2007 - 09:18 AM.


#14 imhotep

imhotep

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 641 posts

Posted 13 July 2007 - 09:27 AM

QUOTE(Coder_TimT @ Jul 11 2007, 12:14 AM) View Post

QUOTE(imhotep @ Jul 10 2007, 08:56 AM) View Post

Are bookmarks working for other people? I am new to this app and can't get them working yet (I have tried via bookmarks section and via start pop-up menu).


Seem to still be working. Is "programRoot" in ommpc.conf pointing to the correct location.

Yes definitely.
QUOTE(Coder_TimT @ Jul 11 2007, 12:14 AM) View Post

And does the bookmark directory exist in "programRoot".

No bookmark directory there at all. Is the app supposed to generate a bookmark folder or do I create one?
Neither of my config files mention a bookmark directory. Is there supposed to be an entry for this?


#15 Coder_TimT

Coder_TimT

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 277 posts

Posted 13 July 2007 - 02:01 PM


[/quote]
No bookmark directory there at all. Is the app supposed to generate a bookmark folder or do I create one?
Neither of my config files mention a bookmark directory. Is there supposed to be an entry for this?
[/quote]


Arrrgh... I left the bookmarks directory out of the archive somehow....and I was lazy and it doesn't generate one... You'll need to create a "bookmarks" directory off of programRoot and it should start working...