| |
Sasq
Registered: Apr 2004 Posts: 156 |
Android SID/MOD/etc player
I am working on a SID/MOD player for Android called Droidsound and need some beta testing...
* Music goes into MODS/ on sdcard
* Requires Android 1.6
* Uses sidplay2 (and modplug + GME)
* Indexes zip-files (like C64Music.zip)
* Title search
* CSDB metadata browsing
(To try out CSDB browsing, put "csdb.dump" in your MODS dir)
The player (and csdb.dump) can be found here:
http://swimmer.se/droidsound/files/
|
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
sid:
it seems that CIA timers dont work... multispeed tunes play at 1x vblank ?
the filter is horribly wrong, please use the same model as vice 2.1, sid 6581 r4ar 1989
it does not index my c64music.zip, the only way i can load sids is by having them unpacked..
mods:
this player seems to work good, no problems found. |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Filters sounds like that in sidplay2/Resid. Resid-FP is probably too CPU-intensive for most current phones, although it might work on my Samsung since it's supposed have an ARM with FP support - I may try to port it in the future.
Multispeed doesn't work? I have yet to find any tune that plays the wrong speed, and it sounds unlikely since sidplay2 is handling that. Example?
Which phone/android version do you have?
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
probably too old OS... 1.6
its a sony x10 mini pro, and it will get 2.1 later this year.. perhaps the 1.6 is responsible for badness :D |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
sorry, i had the PRE version on there, now i will try the beta instead, sorry sorry sorry! |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quote: sorry, i had the PRE version on there, now i will try the beta instead, sorry sorry sorry!
Oh, that explains everything :)
I should remove that old crap now...
|
| |
ToD Account closed
Registered: Dec 2003 Posts: 10 |
i like the new version , major improvement over the pre version i tried back on my g1.
be nice if you could index the HVSC archive like the iphone sidplayer so droidsound can download the sid file direct.
maybe even index ftp.modland.com for the mods.
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
New beta 4 in the same place;
http://swimmer.se/droidsound/files/
Mostly stability fixes - CSDb search should work better.
Create & Remove Playlists
Setting menu (with option to announce Songs using text-to-speech :)
Next on my list is more databases (modland, offline HVSC), uade plugin, STIL and Songlength support.
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
And I finally found a use for my cheap video grabber;
http://www.youtube.com/watch?v=fTfm12R67l8
Video of droidsound in action...
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
I checked further.. seems fine in most cases, with sids.
the mod/xm part definately is close to perfect.
some notes: the about says beta 4, the package when installing says beta 3 :)
whatever you have to do to get to a v 1.0, do it.
you have a very fine product here IMO! |
| |
Stone
Registered: Oct 2006 Posts: 172 |
Works great! It would be nice if the buttons on my HTC headset worked too. (Play/Pause, Fast forward, Rewind) |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Beta5 in the usual place.
NEW: SID songlengths & Shuffle playback
A bunch of bugs fixed - and probably introduced a couple of new ones.
(TIP: Create a playlist, Set it as default, Add complete directories of your favorite musicians, Turn on shuffle and enjoy).
(TIP 2: You can add all songs from one playlist to another).
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quote: Works great! It would be nice if the buttons on my HTC headset worked too. (Play/Pause, Fast forward, Rewind)
New beta5d Supports the media button (Click to Pause/Unpause, Squeeze to skip song).
I don't know how reading the other buttons on the HTC Headset works - your app must be in the foreground with the screen turned on for it to receive normal key events (like the KEYCODE_MEDIA_* buttons which I assume HTC uses) - which is kind of pointless for a headset.
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
The headphone buttons still don't work. I've googled a bit and it seems KEYCODE_HEADSETHOOK is the way to handle play/pause. The other buttons, I don't know. They work in the Spotify app, so I guess there must be some way to do it. Perhaps I'll download the sdk and give it a go myself, even though I hate cygwin with a passion. |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
They really should work, that is exactly the button I handle and it works with the Samsung headset.
Note that I intentionally ignore events unless the player is playing or paused.
(PS. You can't actually read the button since then it only works when the screen is on and the app is in the foreground, you listen for MEDIA_BUTTON broadcasts).
|
| |
Perff Administrator
Posts: 1676 |
Works fine on my HTC. (Desire running 2.2)
The only thing is that the headset that came with the phone got 3 buttons. One for play/pause and two for skip forward/backward.
All buttons works the same way in DroidSound. Would it be possible to distinguish them?
(Or perhaps there isn't a totally common standard for these things?)
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
I'm using a Nexus One with Android 2.2
Perhaps my problem is due to some priority issue, where the key events are absorbed by some other app. I found some interesting comments in the following code:
http://code.google.com/p/csipsimple/source/browse/trunk/CSipSim..
//
// Android 2.2 has introduced a new way of handling headset
// action button presses. This involves registering to handle
// the button presses every time one needs it and unregistering
// once the button events are no longer needed. Last app to
// register gets the focus.
//
...
//
// Register am event receiver for ACTION_MEDIA_BUTTON events,
// and adjust its priority to make sure we get these events
// before any media player which hijacks the button presses.
//
IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_BUTTON);
intentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY - 1);
service.registerReceiver(headsetButtonReceiver, intentFilter); |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
New Beta, New video
http://swimsuitboys.com/droidsound/
Hopefully other media buttons are supported now.
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
now you changed the url again...
this app needs its own website, dont have to be super design, just a short note what it is, a link to video, and a download link to the app :D |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quote: now you changed the url again...
this app needs its own website, dont have to be super design, just a short note what it is, a link to video, and a download link to the app :D
Well I got 2 out of 3 :)
Also the link was to beta6b instead of 6c, fixed now (6b did not contain the media buttons fix).
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
I just installed beta6c and my headset buttons still don't work :(
Other than that, I love this app. Thanks for the great work you're doing! |
| |
Perff Administrator
Posts: 1676 |
All media buttons on my HTC headset now works perfectly with beta6c. :)
Great work!
However, it still takes forever to update the database (C64Music.zip especially) on my phone. It takes at least 5 minutes. Not so big a problem, but I remember it as being faster at some point. Perhaps before upgrading to 2.2!? :)
What are your experience? |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quote: All media buttons on my HTC headset now works perfectly with beta6c. :)
Great work!
However, it still takes forever to update the database (C64Music.zip especially) on my phone. It takes at least 5 minutes. Not so big a problem, but I remember it as being faster at some point. Perhaps before upgrading to 2.2!? :)
What are your experience?
Actually that sounds slow - I think its under 2 minutes on my Galaxy... I'll time it to make sure.
It really shouldn't have to do with 2.2 - can you think of anything else that is different with your phone? |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quoting SteinI just installed beta6c and my headset buttons still don't work :(
!
What kind of headset did you have?
If you can run logcat, look for lines starting with MEDIA BUTTON from the class PlayerService, that shows which key events are broadcasted...
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Wishful thinking on my part - it takes 03:15 to index C64Music.zip on my Samsung Galaxy S
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
Quoting Sasq
What kind of headset did you have?
If you can run logcat, look for lines starting with MEDIA BUTTON from the class PlayerService, that shows which key events are broadcasted...
I have the Google Nexus One headset, which I think is exactly the same as the one that comes with the HTC Desire. I got a replacement HTC headset that works exactly the same as the Google one.
I don't have the sdk, but I downloaded aLogcat and tried filtering on PlayerService but no key events showed up. I tried the same with the Spotify app and then I get a log like this:
D/SpotifyJava(13367): PHONE STATE - IDLE
D/SpotifyJava(13367): Received broadcast: android.intent.action.HEADSET_PLUG
D/SpotifyJava(13367): Not logged in. Ignoring intent.
D/SpotifyJava(13367): Received broadcast: android.intent.action.MEDIA_BUTTON
D/SpotifyJava(13367): Received broadcast: android.intent.action.MEDIA_BUTTON
D/SpotifyJava(13367): Received broadcast: android.intent.action.MEDIA_BUTTON
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
PlayerService logs lots of things, you're looking for lines like this;
V/PlayerService( 4108): MEDIA BUTTON android.intent.action.MEDIA_BUTTON
V/PlayerService( 4108): MEDIA BUTTON KEY KeyEvent{action=0 code=79 repeat=0 meta=0 scancode=248 mFlags=8}
V/PlayerService( 4108): MEDIA BUTTON android.intent.action.MEDIA_BUTTON
V/PlayerService( 4108): MEDIA BUTTON KEY KeyEvent{action=1 code=79 repeat=0 meta=0 scancode=248 mFlags=8}
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
I only see the following (from PlayerService):
V/PlayerServiceConnection(12977): binding
V/PlayerService(12977): Silence detection off
V/PlayerService(12977): Service started
V/PlayerService(12977): Intent null / null
V/PlayerServiceConnection(12977): Service Connected
V/PlayerService(12977): Adding com.ssb.droidsound.PlayerServiceConnection$1@44a23520
V/PlayerServiceConnection(12977): Unbinding
V/PlayerService(12977): Removing com.ssb.droidsound.PlayerServiceConnection$1@44a23520
V/PlayerServiceConnection(12977): binding
V/PlayerService(12977): Silence detection off
V/PlayerService(12977): Service started
V/PlayerService(12977): Intent null / null
V/PlayerServiceConnection(12977): Service Connected
V/PlayerService(12977): Adding com.ssb.droidsound.PlayerServiceConnection$1@44a23520
V/PlayerServiceConnection(12977): Unbinding
V/PlayerService(12977): Removing com.ssb.droidsound.PlayerServiceConnection$1@44a23520
I feel like an idiot suggesting things to you since I've never even looked at the Android sdk myself, but did you try raising the priority of the IntentFilter thingie as suggested in an earlier post? |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
My handset, MH801 for Sony X10 mini - it operates on the phone's music player, when droindsound is running, and not on droidsound :) |
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quoting Stein
I feel like an idiot suggesting things to you since I've never even looked at the Android sdk myself, but did you try raising the priority of the IntentFilter thingie as suggested in an earlier post?
Yep it's the highest priority ATM.
If that log is when you actually pressed the MEDIA_BUTTON then I can only guess one of two things;
1. You are running some evil program that lies before Droidsound in the queue, also runs on highest priority and steals the broadcast.
2. You are actually running the old beta5 from swimmer.se and not the new beta6c from swimsuitboys.com
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Quote: My handset, MH801 for Sony X10 mini - it operates on the phone's music player, when droindsound is running, and not on droidsound :)
If Droidsound is not either playing or paused, it will ignore the broadcast in favor of other programs... maybe that's whats happening?
|
| |
Sasq
Registered: Apr 2004 Posts: 156 |
Droidsound v1.0 is now available on Android Market. |
| |
Queen bittin Account closed
Registered: Jun 2011 Posts: 119 |
nice used this on a shitty android tablet for a while, but the tablet etc crashed so i returned it, but think i will use this later when i buy an android phone next month as its a nice player :) |