yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] avs333:
January 30 update

CUE support

CUE files may be based on any supported audio files (i.e., wav, flac, ape, wv or mpc).

As the CUE format itself is not standardised, some programs write curious cue files.

My parser is too simple to handle that; however, it understands almost all cues I have (several hundred).

In particular, all cues generated by EAC should play without problems.

Track seeking in mpc-based cues (mpc ver.8 is not supported) may be a bit laggy and not overly accurate (+/-3s), but there's nothing to do with that.

Playlists support

Playlists are actually ordinary text files with ".playlist" extension, each line being an *absolute* path to some audio file.

You can create them manually on the device (e.g., "find /sdcard/dir -name \*.flac -o -name \*.ape > dir.playlist"), or as described below.

M3U and PLS playlists with relative paths are also recognised, but *may* be parsed incorrectly (I have just a few such files).

To create a playlist or to add files to it, long-press a directory or a file you want to add.

(E.g., to create a playlist with *all* your lossless files, go to "/", long press sdcard, check "Recursive", and click "Add").

CUE tracks or playlists cannot be added to a playlist: if you long-press CUE or playlist, it'll start playing immediately without going inside it.

This was intended for those who like the "shuffle" feature now added to Menu->Settings (only playlists are shuffled, not CUEs or directories).

To edit a playlist, go inside it and long-press a file you want to move or delete.

If you edit M3U and PLS playlists, they are converted and saved with ".playlist" extension.
[Hero, G2 Touch Android Development] Lox_Dev:
My KaguDroid rom can play FLAC files.
[Hero, G2 Touch Android Development] avs333:
Good news!

I wish all ROM makers followed you, maybe then we'll finally have the FLAC support in official releases.

Trying your ROM instantly!
[Hero, G2 Touch Android Development] stingerpl:
Those are big words. Difference between what exactly?

Even with decent headphones I would assume you wont hear the difference between a >192kbit mp3 and flac/ape. DAC (Digital to Analog Converter) included in the Hero is too simple to hear any difference IMO.

I think its not worth the battery (I assume flac decoding is a lot more power consuming than mp3). You can listen to 320kbit mp3s instead.
[Hero, G2 Touch Android Development] avs333:
You have cited the last post from a lengthy discussion wisely deleted by the moderator (I admit I was a bit angry at the end of it).

I have no desire to restart the topic.

As for the battery, your assumption is incorrect.

The power consumption of both hardware and software decoders is negligible compared to radio or screen. I doubt that you'll feel any difference in routine use.

Any more assumptions?
[Hero, G2 Touch Android Development] stingerpl:
I'm sorry but I, personally do not believe You can hear the difference between 320k (or even 192k) mp3 and a FLAC on the Hero. No matter what headphones you're using... the DAC and amplification in a smartphone could not handle this quality. There are many blind tests on head-fi or hydrogenaudio done with a really Hi-Fi setups (like AKG K-701 + NAD 3020 + Cambridge DAC) and people still fail to point the right file.

Did You try to blind test? Maybe its really not worth it?

As for the battery.. of course its negligible compared to radio or screen... the question is how is it compared to a mp3 playback? How much longer can you listen to mp3 with the screen and radio turned off?
[Hero, G2 Touch Android Development] _phlynhi:
The core issue, for me anyway, is that I don't have to convert my .flac (lossless for a reason, after all) to .mp3 before I put them on my phone. Sound quality is better, I suspect, but i rarely have an opportunity to listen in a perfect environment, so WGAS. I FEEL like it's better sound, I don't have to convert (and have 2x files) from the native .flac, and the difference in battery life is unnoticed by me. Bottom line: It IS worth it, especially putting aside the red herring of measurable and "objectively" better sound quality.
[Hero, G2 Touch Android Development] avs333:
There are three playback modes in this version:

1) old mode which requires the root access to the device;

2) new mode which uses internal Android API and doesn't require root access (it may probably be used even on non-HTC devices);

3) playback of lossy files (mp3, ogg, etc.) supported in Android (via the standard SDK API).

The switching between 1) and 2) is through "Direct hardware access" checkbox in Settings menu (you may need to restart the program in a new mode if it doesn't work right away).

The switching between 1,2) and 3) is of course automatic.

Contrary to what I expected, I haven't noticed significant performance degradation in non-direct access mode.

Of course, if you have a rooted device, you'd better stick to direct access just to save CPU and memory.

In non-root modes, use the hardware button to control the volume (UI buttons are disabled).

Unfortunately, I had almost no time to test this version. Yet I decided to upload it because I'm sending my Hero to service right now :(, and won't be able to explore any bugs for at least several days.

Enjoy!
[Hero, G2 Touch Android Development] nomad_irk:
many lot of thanks for the player :)

wish to be able:

- possibility of rewind back/forward of the current track

- see the duration and playing time of the track.
[Hero, G2 Touch Android Development] Tweedeldee:
It always depends on how you are using you Hero. With an external amplificator device and a good headphone, the difference should be audible... depending on the song of course. I'd say to test with classical music rather than pop or others, it's really easier to pin-point the differences.

But anyway, yeah, the Hero can't display the full sound of a Flac file, it's not a hifi audio device, it's a phone. :D
[Hero, G2 Touch Android Development] :
This player RULE more and more, thanks!!

+1
[Hero, G2 Touch Android Development] mcl630:
I tried the new version on a not-rooted Moto Droid with the new mode. I get "Initialization error" when trying to play any FLAC file. It does play mp3 okay (as expected).
[Hero, G2 Touch Android Development] -MB-:
Is there even fat32 support? I only get access to the ext partitions made by modaco on my sd, but all my flacs are on the fat32 portion, which i cant seem to access.
[Hero, G2 Touch Android Development] avs333:
Could you please copy the media library from your device (e.g. "adb pull /system/lib/libmedia.so .") and post it here?

Seems you have problems with your general setup. I don't have partitions other than fat32 on my sd card, and it works nice.
[Hero, G2 Touch Android Development] mcl630:
Here you go.
[Hero, G2 Touch Android Development] zycamaniac:
Hello,

I've been trying to use AndLess for a while with my Acer Liquid and was never able to get it to play properly. the December version seem to crash out whenever I selected a file to play, while the current (feb 12) version doesn't seem to like the Flacs that I encoded myself with FLAC codec. I'm kinda at a loss here and not sure what to do. Any suggestions? I'll try to encode a short piece of recording in FLAC and try to play it on my phone, if it still doesn't work, I guess I could send it out as a test piece.

PS: MP3 appears to play fine on the current version of AndLess.

Thanks

David
[Hero, G2 Touch Android Development] avs333:
Of course I'll do it, just be patient :)

Here (attached) is the debug build linked against your library.

Please connect your device to the PC, run "adb logcat" and launch any flac file. The output should be like this:

02-15 05:40:20.521: INFO/liblossless(4696): libmedia_start channles=2 samplerate=44100

02-15 05:40:20.521: INFO/liblossless(4696): AudioTrack created at 0x1e7a28. Now trying to setup

02-15 05:40:20.531: INFO/liblossless(4696): AudioTrack setup OK, starting audio!

02-15 05:40:20.531: INFO/liblossless(4696): playback started

02-15 05:40:20.641: INFO/AudioHardwareMSM72XX(59): AUDIO_START: start kernel pcm_out driver.

If it should differ, we'd have some info to begin with.

Hi David. I'm sorry it doesn't play on your Acer. I believe this might be a simple problem, but I can't localize it because all I have is the Hero.

If you are encoding the files yourself, please make sure that they're 2 channels 8 or 16 bits with the sample rate not exceeding 48000.
[Hero, G2 Touch Android Development] avs333:
dunno how to delete that :)
[Hero, G2 Touch Android Development] kookix:
I try to install the update on My HTC Hero (MCR 3.2) but it failed.

Message: andLess coul not be installed on this phone.

I try the previous version (which worked before) : same message.

Try to install with DroidExplorer both versions: DroidExplorer crash...

Now I could not use the application at all.

Any ideas ? What I have to do ? except Nandroid restore =/
[Hero, G2 Touch Android Development] zycamaniac:
Hello,

I'm pretty sure that they are all 16bits/44.1KHz recordings as they were ripped from original CD by myself a while back. Just to make sure that there weren't any unintended conversions, I double checked the file on my Liquid's memory card and they are indeed 16bits/44.1KHz.

Is it possible to have the program indicate a bit more info when it says bad or unsupported format? Perhaps there are clues within the program's variables somewhere that could be used to figure out why?

Thanks

David
[Hero, G2 Touch Android Development] avs333:
Have you tried to install other programs than andLess?

Seems you're having some basic problems on your system. Nandroid restore would probably help :)

I'm sorry I'm all booked up till next Wednesday, got to earn money somehow :(

Then I'll build the version which would report each operation step by step.
[Hero, G2 Touch Android Development] kookix:
Ok, a reboot solve my issue ^^

Latest version works.
[Hero, G2 Touch Android Development] zycamaniac:
No worries man, I've been without music on my phone for quite some time, and I'm not really trying to pressure ya. ;) I'm already pretty happy that someone like you is working on stuff like this. ;)

Thanks
[Hero, G2 Touch Android Development] mcl630:
Still getting "Initialization Error". Here is the logcat output:

I/AndLessSrv( 4037): initAudioMode(2), permsOkay=false

I/liblossless( 4037): libmedia_start channles=2 samplerate=44100

I/liblossless( 4037): AudioTrack created at 0x38c570. Now trying to setup

E/AudioTrack( 4037): Invalid channel mask

I/liblossless( 4037): AudioTrack->set failed, error code=-22!

E/AndLessSrv( 4037): run(): xxxPlay() returned error 15

I/AndLess ( 4037): play item changed to Initialization error

I/AndLess ( 4037): play item changed to [Stopped]

I/AndLessSrv( 4037): 4045: thread about to exit
[Hero, G2 Touch Android Development] avs333:
Thanks for the logcat output, it was very helpful indeed!

They seem to have changed the interface a bit (added multichannel support, but forgot or deliberately dropped backward compatibility).

I have inserted a workaround, please try the file attached (recommended for everybody who have problems with devices other than Hero).

I'm very curious whether it works on 2.0+ devices now? Please report your results.
[Hero, G2 Touch Android Development] eViL D::
Works on Liquid eclair! External speaker is hideous, but I have Audeo Phonak headphones that sound wonderful!
[Hero, G2 Touch Android Development] mcl630:
Works on Moto Droid with Android 2.0 now. Thanks you very much!

:D
[Hero, G2 Touch Android Development] emprize:
does it have any widget can control the andLess? if not, can you make one?
[Hero, G2 Touch Android Development] avs333:
Well, I'll probably think about it ...

As for now, I'm trying to optimize the code and to improve the interface (e.g., displaying playback time and progress).
[Hero, G2 Touch Android Development] nafem:
It is a shame that Android doesn't support anything higher than 16BIT FLAC files.
[Hero, G2 Touch Android Development] eViL D::
I have a problem, when I cook this into a ROM, the app does not work correctly, it just fc's. But, if I install AFTER I flash instead of having it cooked in, it works.
[Hero, G2 Touch Android Development] eViL D::
n/m, seems if I just add the .so to the libs it works. I'll try to cook it like that.
[Hero, G2 Touch Android Development] avs333:
Don't know how the Package Manager works exactly... Perhaps all native libraries from the .apk's should be there when installing this way.

There was a tether app on my previous rom, but I've just flashed a new one without it... I wonder how it was cooked in.
[Hero, G2 Touch Android Development] Biozone:
Working on nexus one after using the fixed version
[Hero, G2 Touch Android Development] avs333:
eViL D:, mcl630 & Biozone

Thanks, I'm very glad it works on your devices at last!

Planning to post the improved version next week.
[Hero, G2 Touch Android Development] emprize:
not sure my milestone problem or this app, when i play flac, sometimes will have a second lag, happen every few mintues
[Hero, G2 Touch Android Development] moz4r:
Thanks

MP3 sucks, it destroy music. Thank you 4 this great dev.

:cool:
[Hero, G2 Touch Android Development] avs333:
This shouldn't happen when you play ordinary flac files, your device is powerful enough to play them smoothly.

I've experienced rare stumbles for certain heavy APEs (this format is the most CPU-consuming), e.g. when the phone tries to re-register in the GSM network.

My suggestion is to check your configuration, and try a different ROM if they're available.

Your need a well-balanced system for ideal playback (meaning no extra services other than those you actually use, etc.).
[Hero, G2 Touch Android Development] gutts:
This app is great! I recently left my dedicated MP3 player in another country, and decided to try the Hero as a backup whilst waiting for it to be shipped back. The built-in Music player was not a great experience, but then I found this excellent lightweight app and I was surprised at how good the SQ from the Hero could be (with a decent set of cans, of course)!

I have a couple of feature requests, although I'm not sure how easy / possible they are:

- Specify headphone output only

If the headphone jack accidently becomes disconnected (when taking the phone out of my pocket, for example) the music begins blaring out of the phone speaker. This is a bit embarrasing, especially on public transport! :o

Is it possible to select a specific audio output rather than let the device decide which one to use?

- Scrobbling!

The only thing I liked about the built-in Music app was that the last.fm app was able to scrobble my songs as they were played. Perhaps this should be made as a request to last.fm and I have it the wrong way around, but I wasn't sure if there was a common API which could be used to notify the last.fm app about what was currently playing.

Obviously, the second request would be nice, but the first one is quite important to my continued use of this device as a portable music device.

Cheers!
[Hero, G2 Touch Android Development] penzy:
i got initialization error :confused::confused::confused::confused:

i tried both version of urs..same eror

pls help

edit : when i uncheck direct hardware access it plays ... ;)

thanks for wonderful application

keep up the good work
[Hero, G2 Touch Android Development] avs333:
Thanks for your feedback.

The headphone stuff is of course simple and it'd be really convenient, I'm all messed up with the headphones myself. *Will* be implemented.

As for scrobbling, I have to look through their documentation first. If they use an *open* protocol for their communications, why not then.
[Hero, G2 Touch Android Development] helloworld1:
Very great software!!

Are you using libflac? Is this software open sourced so I can make some modification to it?
[Hero, G2 Touch Android Development] avs333:
I'm using the Rockbox libraries for flac, they are assembly optimized and run much faster.

Yes this app is open source, please PM me your e-mail and I'll send the sources.
[Hero, G2 Touch Android Development] 4st3risk:
Thank you very much!!

Played FLAC, APE and WV perfectly on my Nexus One with DAH=off.
[Hero, G2 Touch Android Development] ShaggyC1016:
Thank you for this app. I have been looking for a FLAC player for a while. Thank you sooo much. Keep the updates coming.
[Hero, G2 Touch Android Development] aleitry:
great news.

quick question as I'm also using a nexus one: did you install the app using the stock ROM or are you running cyanogen or some other custom?

I ask because I haven't rooted/unlocked. When I download and attempt to install the file with apps installer (after deleting the .zip extension to make the file an .apk), I get the following error: "There is a problem parsing the package."
[Hero, G2 Touch Android Development] Ezzy77:
FLAC and mp3 seem to work fine with my N1 as well with DHA off. No problems so far. Excellent progress, was glad to see the new version doesn't require root access. I'll have to make a post about this app to our android blog :)
[Hero, G2 Touch Android Development] avs333:
Deleting?? Did you try to unzip it?
[Hero, G2 Touch Android Development] aleitry:
thanks for replying avs333.

yep, unzipping was the first thing I did.

now, unzipping the posted file yields a folder named andLess with the following contents:

- AndroidManifest.xml

- classes.dex

- lib [folder]

- META-INF [folder]

- res [folder]

- resources.arsc

when i've unzipped other apk files posted in these forums and elsewhere, what I usually get is an apk file - signed or otherwise. then appsinstaller or eoe recognize the apk file to install natively on the n1.

am i supposed to put the unzipped file somewhere in my n1's native file structure using astro or some similar app?

btw - given you focused on my use of the word deleting, all I intended there was that I took the .zip extension off the downloaded file you posted in the OP, leaving a file named: "andLess.apk" - this has also worked when trying to install non-market apk files that devs post here and elsewhere. the manual labeling gets me the parse error when attempting to install the relabeled file with appsinstaller.
[Hero, G2 Touch Android Development] avs333:
Please try downloading the file manually once again, I believe it's some simple problem with your downloaded file.

You should get "andLess.apk.zip", so just unzip it to get "andLess.apk". No need to unzip "andLess.apk" after that, it should install on your device normally (e.g. "adb install andLess.apk").
[Hero, G2 Touch Android Development] aleitry:
thanks for following up avs333.

I'll try downloading the file in your opening post when at home tonight.

I hear ya - the only file I'm unzipping is the one you posted. it's this unzipping that leaves me with the folder structure I inventoried in my post above.

one thing I should note, I don't run commands to install apks because I use appsinstaller or eoeappsinstaller pro. I simply transfer a signed or unsigned apk file to my sd card, find it and install it with one of those installer apps.

thinking about this seemingly basic problem earlier today, I started to wonder whether I'm just plain misunderstanding what you mean when noting that andLess doesn't require rooting anymore.

does the fact that your app doesn't require rooting still mean that I can't use it if I'm using the stock ROM that I haven't fiddled with at all since purchasing my n1?
[Hero, G2 Touch Android Development] codnik:
HELL YEAH!

Woohoo is all I can say. Thanks a bunch for this, mate. Keep up the good work and please share with us your Paypal account. :)
[Hero, G2 Touch Android Development] aleitry:
would've taken me forever to figure out the issue:

- for some reason, downloading and unzipping the file at home on my mbp running snow leopard resulted in the unusable unpacked folder structure.

- extracting the same zip file at work on my win laptop resulted in getting the awesome, usable apk.

finally! flac on my n1.

everyone needs to know about this - all the folks following issue 1461.

to me, this is much more exciting and useful than most other things developed for 2.1 so far. thank you avs333.
[Hero, G2 Touch Android Development] 4st3risk:
All stock.

Amen!
[Hero, G2 Touch Android Development] elicriffield:
Web Page Please

You should use code.google.com to host your project, I'd love to have a copy of the source code if this is an open source project. Access to the latest svn repo would be even better (its easy to give read access if you're on code.google.com)

And why not add it to the market? Then i wouldn't have to look around for new versions.

I heard a rummer there was an app called AndLess that played flac's but had a hell of a time finding it.

And thanks for making my Nexus One my default audio player! No more need for a second player just to play flac's.

Eli Criffield
[Hero, G2 Touch Android Development] avs333:
Hi Eli,

I'm going to setup a project somewhere (either old good SVN at Google, or GIT somewhere else). Hope the developers will take part in it to make this app better.

I'll notify this thread when it's done.

Not sure about the Market right now. The program lacks a proper interface (compared to the players found there), and I'm not ready to pay $25 for its hosting just to receive lots of mocking or angry messages :)
[Hero, G2 Touch Android Development] elicriffield:
I like the interface

Yeah as long as its on a webpage somewhere, that would be nice. If its not going to be in the market then it'd be nice to have it auto check for new versions, and notify when there is one.

I like the simplicity of the interface, I guess it could be refined a bit but i hope there's always at least an option for the basic file browser like interface. I'm using it to play my mp3's now to instead of the built in "Music" player.

Eli Criffield
[Hero, G2 Touch Android Development] avs333:
Yes, I did it. Please visit http://code.google.com/p/andless.
[Hero, G2 Touch Android Development] codnik:
Woot! That's great news. I agree about waiting a bit for a cool interface before putting it up on the Market. I think the interface is sleek as is, but there's room for beautifying it a bit. (as long as it doesn't affect performance!)
[Hero, G2 Touch Android Development] helloworld1:
It is really great to see the code is release under GPLv2.

Also I have compiled it using newer NDKr3 with GCC 4.4. It should include a little optimization.
[Hero, G2 Touch Android Development] kiwi89:
Sweet, thanks for the awesome app. Ive been really missing some form of lossless playback after I got my hero.
[Hero, G2 Touch Android Development] mr.bang:
you rock! ;) thank you very much!

M
[Hero, G2 Touch Android Development] avs333:
Nice to hear that! If you have any suggestions regarding the code, don't hesitate to inform me.

The svn version now supports Apple Lossless. Planning to release the update later this week :)
[Hero, G2 Touch Android Development] Antonski:
musepack sv7 only support?

Great, I've installed on my Tattoo only because the Musepack support. I don't know of any other such player.

However, it appeared that it supports only the older SV7 format.

Since the StreamingVersion8 is finalized for more that a year and it is the default codec version now, would you please add it support for SV8 as well?

As far as i know, the SV8 decoder fully supports the older SV7 streams, so there is no need to support two versions actually, just replace the library.

Would you, please?
[Hero, G2 Touch Android Development] avs333:
Yes, this is a nuisance. I first tried v8 but didn't succeed. Rolled back to v7 and included it in my TODO list.

I promise I'll do that, most likely in the next upgrade.

As the matter of fact, I have included some code for low resolution devices.

Does it work properly on your Tattoo? I'm very concerned because all I have is the emulator so I can only imagine how it looks on a real device ...