FORUMS

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One … more

Huawei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

[APP] FLAC/APE Player [March 11 Update]

224 posts
Thanks Meter: 299
 
By avs333, Senior Member on 24th October 2009, 03:19 PM
Post Reply Subscribe to Thread Email Thread
I am not an application programmer but sound is very important for me.
I didn't find any flac players for Android, so I wrote a simple program myself.

The interface is rather ascetic because I'm not a java programmer.
The program plays any FLAC, APE or uncompressed WAV file, or all such files in a directory.
Hope somebody will contact me and write a really good flac player for Android.

---------------------------
[Updated on November 24]

Here's the completely rewritten version.
It's much more stable and smooth, and has a better interface.
No need to use command line to set the required permissions, it'll call for the root access if it fails to open the sound device in read-write mode.

---------------------------
[Updated on December 31]

(1) At last, found a way how to make the interface indeed responsive!
(2) Added WavPack (*.wv) and MusePack (*.mpc) support.
(3) Added a simple Settings menu to change font size and overall appearance.

---------------------------
[Updated on January 30]

(1) CUE files support
(2) Playlists support

See post http://forum.xda-developers.com/show...03#post5499903 for details.

---------------------------
[Updated on February 12]

(1) ROOT ACCESS IS NOT REQUIRED ANYMORE
(2) On request, playback of lossy files supported in Android

See post http://forum.xda-developers.com/show...99#post5603599 for details.

---------------------------
[Updated on February 25]

(1) Added support of non-rooted Android 2.0 & 2.1 devices
(2) Improved interface (now shows track time/progress)

---------------------------
[Updated on March 11]

(1) Added support of Apple Lossless Audio Codec (aka ALAC)
(2) Added auto-bookmarks so that you can exit and then restart exactly where you were playing before
(3) New icon and buttons (thanks to the people from 4pda.ru!)

(Minor update on March 12) Fixed a bug not flushing the buffer at the start of each track; auto-bookmarks as a user option.
(Minor update on March 14) Fixed sdcard write permissions in manifest

Please backup and uninstall the previous version before installing this one, it uses different SDK/NDK setup!!!

The sources are now available via SVN at http://code.google.com/p/andless.
Attached Thumbnails
Click image for larger version

Name:	andLess.jpg
Views:	5956
Size:	41.9 KB
ID:	262462   Click image for larger version

Name:	device.jpg
Views:	3812
Size:	44.2 KB
ID:	286079  
Attached Files
File Type: apk andLess.apk - [Click for QR Code] (200.8 KB, 7805 views)
Last edited by avs333; 16th March 2010 at 08:27 AM.
The Following 4 Users Say Thank You to avs333 For This Useful Post: [ View ]
 
 
24th October 2009, 03:53 PM |#2  
avs333's Avatar
OP Senior Member
Thanks Meter: 299
 
More
It plays either FLAC or APE, both lossless and lossy.
Unless you're deaf, you'll hear the difference if you get proper headphones.
Last edited by avs333; 24th October 2009 at 04:01 PM.
24th October 2009, 04:15 PM |#3  
Member
Thanks Meter: 1
 
More
Cool Awesome
awesome stuff ive been looking all over the place for something like this. now i have to figure out how to root my hero . these commands give me the chills. you should have this on the marketplace


before we get into flac/lossy wars. what's important is that you don't have to convert any flacs to mp3 in order to put em on your phone. just drop and go. very helpful. that being said i dont think you can hear a diff. id have to own some grado headphones to test it out. i imagine the people who are getting headphone jack problems will cringe when they see this . good work ! thanks !
25th October 2009, 12:01 AM |#4  
Member
Flag Science City Zero
Thanks Meter: 0
 
More
Fantastic! Thank you so much for this!
25th October 2009, 01:38 AM |#5  
naTTan's Avatar
Senior Member
Flag Sungai Buloh
Thanks Meter: 4
 
More
Can this made indefinitely part of the rom?
25th October 2009, 02:36 PM |#6  
avs333's Avatar
OP Senior Member
Thanks Meter: 299
 
More
Quote:
Originally Posted by naTTan

Can this made indefinitely part of the rom?

Kruton has written some patches which are currently included in cyanogen ROMs for G1. I tried to compile them for Hero, no success so far: the library he uses (libFLAC) seems to have certain bugs and won't reconstruct original encoded sound. On the other hand, this program uses the decoder from Rockbox project which I'd recognise as the greatest code ever written for mobile devices (including their ROMs for ipod etc). It's halfway in assembly language, and decodes flac/ape files EXACTLY as they were encoded.
25th October 2009, 05:51 PM |#7  
naTTan's Avatar
Senior Member
Flag Sungai Buloh
Thanks Meter: 4
 
More
Ok sorry is there a possibility that we should ask modaco to implement this into his roms from now on? There won't be much loss is speed right? And it's a good gain to play some other format of sounds.
25th October 2009, 10:25 PM |#8  
avs333's Avatar
OP Senior Member
Thanks Meter: 299
 
More
Personnaly I'd be delighted if Modaco inserts the flac code in his ROMs! However given that the hero sources just appeared on the scene, he might have more important things right now (e.g. to port 2.6.29 kernel, etc).
26th October 2009, 10:06 PM |#9  
Junior Member
Flag Dublin
Thanks Meter: 1
 
More
Thank you very much for this!!

I would also love to see this make it in to modaco ROMS
26th October 2009, 10:14 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by avs333

Kruton has written some patches which are currently included in cyanogen ROMs for G1. I tried to compile them for Hero, no success so far: the library he uses (libFLAC) seems to have certain bugs and won't reconstruct original encoded sound. On the other hand, this program uses the decoder from Rockbox project which I'd recognise as the greatest code ever written for mobile devices (including their ROMs for ipod etc). It's halfway in assembly language, and decodes flac/ape files EXACTLY as they were encoded.

I think the only reason I used libFLAC is because of the licensing. There's not much chance of getting the LGPL-licensed ffmpeg library included in Android. However, they are already using the Xiph License which is what libFLAC uses.

Who knows. Maybe they're actually going to include ffmpeg in the future and we'll have FLAC at that point!
24th November 2009, 06:44 AM |#11  
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by avs333

I am not an application programmer but sound is very important to me. I didn't find any flac players for android, so I wrote a simple program myself.
IT NEEDS THE ROOT ACCESS, to be precise, you must have read-write access for /dev/msm_pcm_out. It means that before installing you MUST do that:

adb shell chmod o+rw /dev/msm_pcm_out

Should you fail to set such read/write ("crw-rw-rw") permissions for this file (it must be done after each reboot, and you HAVE to be root to do this), the program will exit without ANY notice.
The interface is rather ascetic because I'm not a java programmer. The program plays any single FLAC, APE or uncompressed WAV file, or all files in a directory. Hope somebody will contact me and write a really good flac player for android.

Once installed the following are the commands I had to type so I could get this program to work on my Sprint CDMA HTC Hero. Do not copy the parenthesis.

1. "cd C:\android-sdk-windows\tools"
2. "adb shell"
3. $ "su"
4. # "mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system"
# "chmod 7777 /dev/msm_pcm_out"

Read More
Post Reply Subscribe to Thread

Tags
lossles, musepack
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes