I am pushing for better audio support in the NDK, see Android Bug
3434.
http://code.google.com/p/android/issues/detail?id=3434
Kevin
On 28 oct, 15:57, Peter Kirn <
peterk...@gmail.com> wrote:
> Thanks, David. That makes sense.
>
> I suppose the potential lack of ALSA could be a reason to choose OSS
> as a lowest common denominator -- anything with ALSA support should
> (theoretically) then support OSS emulation, though again there may be
> fewer guarantees.
>
> And yes, in the meantime, I'll try the Java >NDK> Java route.
>
> Peter
>
> On Oct 28, 12:55 am, David Turner <
di...@android.com> wrote:
>
>
>
> > On Mon, Oct 26, 2009 at 9:21 PM, Peter Kirn <
peterk...@gmail.com> wrote:
>
> > > David, rather than re-post this since it's been asked various times,
> > > I'll pick up this most recent thread to ask the question in a
> > > different way... imagine, for a moment, you're anaudiodeveloper and
> > > you care about Android, and you're interested in doing live sound
> > > synthesis and signal processing. This kind of development is of course
> > > the domain of a small number of programmers, relatively, but it can
> > > have wide implications and use cases out in the market.
>
> > > Obviously, downloading theNDKas a preview would be something you'd
> > > be likely to do, and I know there aren't capabilities there - or in
> > > the Java APIs - yet. So, then, what's your next step as a developer,
> > > even to be prepared for what may be coming down the road? There are
> > > drop-in solutions that work with ALSA right now on nearly-identical
> > > hardware, like Pure Data which I've run on the chipset that's in my
> > > G1, but accessing ALSA is off-limits on Android to developers. I'm
> > > aware of the issues with ALSA, but that means that on other platforms
> > > you can run these native solutions, and on Android you can't.
>
> > > Unless I'm missing something, there really isn't any workable way to
> > > do any DSP or synthesis, not in theNDKand not outside theNDK.
>
> > > Let me just clarify:
> > > * part of the reason you can't depend on ALSA is because ALSA modules
> > > may not be implemented by all hardware?
>
> > There is absolutely no guarantee that the kernel available on a production
> > Android device
> > would use ALSA (it could be OSS, or whatever hardware-specific hack required
> > by heavily
> > customized hardware).
>
> > > * is it worth it at this point even trying to buildNDKDSP code
> > > (minus anyaudiooutput) to see if it works?
>
> > Feel free to use theNDKto write DSP code that acts on sound sample
> > buffers. You
> > will have to get/send the buffers from Java at this point though. Direct
> > access to a
> > realaudioAPI is not available yet.
>
> > > * is it at least theoretically conceivable that developers who know
> > > what they're doing could write DSP operations with theNDKand use a
> > > Java callback on the byte output of that to route sound out?
>
> > Yes; and some already do as far as I know, but I don't have any details to
> > share,
> > unfortunately.
>
> > > I'm aware of the issues of being overly-reliant on native code, and
> > > the many potential pitfalls of ALSA, so this isn't a criticism of
> > > Android or theNDK. I just want to make sure that my current
> > > understanding of the state of affairs is correct. That is, we have the
> > > negative definition (there's noaudiosupport currently inNDK), but I
> > > haven't seen a lucid explanation of how people interested inaudio
> > > should approach the platform right now, today.
>
> > > Peter Kirn
>
> > > On Oct 12, 5:02 pm, David Turner <
di...@android.com> wrote:
> > > > On Sat, Oct 10, 2009 at 11:02 PM, HeHe <
cnm...@gmail.com> wrote:
>
> > > > > thanks for the reply.
>
> > > > > have you ever looked intoNDKdirectories?
>
> > > > > there is a "soundcard.h" included withNDK, which defines
> > > > > "OPEN_SOUND_SYSTEM".
>
> > > > > i am not sure why the header file and the macro are there if OSS is
> > > > > not supported.
>
> > > > this is a kernel header, the definitions here do not relate to the
> > > > capabilities of the kernel running on your device,
> > > > or the corresponding user-level APIs that can be used from native code.
>
> > > > > On Oct 10, 8:45 pm, Doug Schaefer <
cdtd...@gmail.com> wrote:
> > > > > > Technical too. There's no header files or libs in theNDKfor ALSA or
> > > > > OSS.
> > > > > > I'm not sure why you are asking this question without looking at the
> > >NDK
> > > > > > first.
>
> > > > > > On Sat, Oct 10, 2009 at 2:53 PM, HeHe <
cnm...@gmail.com> wrote:
>
> > > > > > > is it an official answer from Android team that AndroidNDKdoes
> > > not
> > > > > > > support ALSA and OSS api?
>
> > > > > > > what is officially recommended api to programaudioand video
> > > devices
> > > > > > > in native C?
>
> > > > > > > On Oct 8, 10:07 am, niko20 <
nikolatesl...@yahoo.com> wrote:
> > > > > > > > Hi,
>
> > > > > > > > TheNDKdoesn't have any sound support yet.
>
> > > > > > > > -niko
>
> > > > > > > > On Oct 8, 10:13 am, Datoh <
dato...@gmail.com> wrote:
>
> > > > > > > > > Hi,
>
> > > > > > > > > Does theNDK(1.6) allows to use ALSA or OSS sound library?
>
> > > > > > > > > Regards,
> > > > > > > > > Datoh.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -