Android project

Pages: 12
Would anyone like to participate in developing a small Android program?

What is it?
It's a software-based audio player with gapless playback support.

What is software-based playback?
Most Android devices have a built-in chip that's basically a self-contained portable audio player. Pretty much every function in the Java API just sends high level commands (play X file, pause, next track) to this chip.
A software player ignores the hardware and gives the CPU control over all steps of playback, including decoding and track management. The hardware is only used to output the decoded audio streams.

What is gapless playback?
Many CDs nowadays are produced such that two consecutive tracks are played without any interruption in the audio. Some formats, such as Ogg Vorbis and FLAC but not MP3, are able to store this effect exactly. With proper player support, the effect can be reproduced when playing back the compressed audio files.

Why software-based playback?
Many Android devices are equipped with inferior audio chips which are incapable of gapless playback, even if the format in question does support it. By bypassing the decoder entirely and giving the CPU total control, it's possible to guarantee gapless playback regardless of the underlying hardware (barring a CPU too slow to fill the output buffers quickly enough), at the cost of possibly increased power usage.

If you're interested, send me an e-mail or a PM. If you have any questions, post them here.
I'm interested. But I'd have to learn more about developing for android.
I don't know anything about developing for Android, and I've already written a small test app that plays two songs gaplessly. So I don't think your knowledge is going to be much of an issue.
I'd be glad to help out however I can. I set up an Android dev environment awhile back and never really did much but create a test app and get it on my phone. Always wanted to do something relatively significant with Android. Seems like an interesting system to develop on.
What lang? I can do

Java -- With some research
Ada -- With a lot of research
C++ -- With a crap load of research
There's a C++ core that interacts with the audio hardware and the various software decoders; manages resources; creates, fills, and queues buffers; and controls playback. This still needs to get some kinks worked out.
I expect that on top of this, there will be a Java layer that will handle the GUI, higher level aspects (track and playlist management, etc.), and will send control messages to the C++ core while in turn receiving info messages back (time position, metadata, etc.).
what are the requirments. I'd be happy to join, but cannot be overly hlpful, and would have to collaborate online
@James Parsons
Android programmes are mainly developed with Java(recommended by android.com) as with the SDK, but they've also got the NDK there for C++.

Aceix.
Well, I myself will be figuring things out as I go along as far as the Java parts go. Unless you've never programmed anything before or can't read documentation at all, I can use you.
@James Parsons
Android programmes are mainly developed with Java(recommended by android.com) as with the SDK, but they've also got the NDK there for C++.

Aceix.


@Aceix Adacore also released an offical binding to Android, but I think it is built atop of AJIS
Is this an open source project? Do you plan to host source code, for example, on github?
Null: Yes to both questions. Sorry I didn't make that clearer.
could you link to the repo? i didnt get one in the pm
Like I said in the PM, I will be uploading it sometime during the next few days, after I get a chance to clean up a few things in the source. Mostly, I need to make sure that the SDK can build the thing, because the last time I touched it I was testing the core on my desktop (it compiles on both almost without modifications).
oops my bad. i thought you meant you had already pushed it
I would love to have a say but I'm currently taking a tutorial on Java, then I would now say hello to Android programming.

Aceix.
Last edited on
https://github.com/Helios-vmg/CopperRat

TODO:
(Core)
* Implement more decoders. Currently only Ogg Vorbis implemented. On that note, I found a bug while trying to test the build with two very low quality files.
* Optimize memory usage. There are too many page faults.
* Implement seeking, pausing, etc.
* Implement metadata readers.
* Implement ReplayGain.
* Implement the interface with the Java layer and the higher level functions.
* Various minor conceptual and code organization corrections.

(Java)
* Everything. This: https://android.googlesource.com/platform/packages/apps/Music may be used as a template or a reference.

Notes:
* GitHub for Windows doesn't like my initial commit. It crashed four times while trying to stage. Git Extensions should also work.
* The C++ core builds on desktops without changes, you just need to provide the dependencies. This is useful to avoid deployment to a real device or an emulator.
* To test playback, push() paths to AudioPlayer::playlist (the object is incorrectly named).
I'll put some work in. I'm skilled in c/c++ and its summer time. So now I have time. So long as there is a general direction to this project.
closed account (N36fSL3A)
Just make a Github Repo if it's open-source.
EDIT: Looked over the github post.
Last edited on
there was one made. you can use github for proprietary source too...
Pages: 12