> --
>
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
>
--
Sent from my mobile device
I wanted to play raw audio from NDK but could not find any API to do
that.
I did not find AudioTrack in any header file. Is this supported in NDK
1.6 ?
Regards,
Pradeep
>>> android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-ndk?hl=en.
>>>
>>>
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "android-ndk" group.
>> To post to this group, send email to andro...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/android-ndk?hl=en.
>>
>>
>
--
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Will there be other API's available?
In regard to raw audio capture/playback, what about a simple C/C++
callback-based API similar to Portaudio, Jack or even PulseAudio?
Is this (sort of) planned?
You can do *so much* things with such "simple" API's, provided the latency is
reasonable.
On 01/06/2010 01:49 PM, Doug Schaefer wrote:
> In other words, no. Audio is not accessible from the NDK APIs. There has
> been mention of OpenSL coming sometime but no promises when. And my bet
> is that it would be Android 2.1 or greater only since it would need a
> new system library.
>
> On Wed, Jan 6, 2010 at 7:27 AM, Jason Kahler <jason....@gmail.com
> <mailto:jason....@gmail.com>> wrote:
>
> it is in the media package.
>
> On Wed, Jan 6, 2010 at 4:14 AM, Pradeep <bhatt....@gmail.com
> <mailto:bhatt....@gmail.com>> wrote:
>
> Hi Jason,
>
> I wanted to play raw audio from NDK but could not find any API to do
> that.
>
> I did not find AudioTrack in any header file. Is this supported
> in NDK
> 1.6 ?
>
> Regards,
> Pradeep
>
>
> On Dec 30 2009, 9:26 pm, Jason Kahler <jason.kah...@gmail.com
> <mailto:jason.kah...@gmail.com>> wrote:
> > I have some ndk code which uses AudioTrack to play music from
> some binary
> > data. It works fine on sdk 1.5 but after I go to 2.0 I get an
> error in the
> > Log when initializing the audio system.
> > The log Tag is AudioTrack and the error is "invalid channel
> mask" any idea
> > what may be wrong?
>
> --
> You received this message because you are subscribed to the
> Google Groups "android-ndk" group.
> To post to this group, send email to
> andro...@googlegroups.com <mailto:andro...@googlegroups.com>.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com
> <mailto:android-ndk%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com
> <mailto:andro...@googlegroups.com>.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com
> <mailto:android-ndk%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
>
>
>
> ------------------------------------------------------------------------
I agree with many things you say.
Nevertheless, I'm not "crying". From what I read, Android will feature a C/C++
audio API at some point in time in the future. And although I understand that
nothing is still certain, I would like to know what API(s) this is likely to be,
in order to anticipate.
That's what my question is about.
Olivier
> > <mailto:jason....@gmail.com <mailto:jason....@gmail.com>>>
> wrote:
> >
> > it is in the media package.
> >
> > On Wed, Jan 6, 2010 at 4:14 AM, Pradeep
> <bhatt....@gmail.com <mailto:bhatt....@gmail.com>
> > <mailto:bhatt....@gmail.com
> <mailto:bhatt....@gmail.com>>> wrote:
> >
> > Hi Jason,
> >
> > I wanted to play raw audio from NDK but could not find any
> API to do
> > that.
> >
> > I did not find AudioTrack in any header file. Is this
> supported
> > in NDK
> > 1.6 ?
> >
> > Regards,
> > Pradeep
> >
> >
> > On Dec 30 2009, 9:26 pm, Jason Kahler
> <jason.kah...@gmail.com <mailto:jason.kah...@gmail.com>
> > <mailto:jason.kah...@gmail.com
> <mailto:jason.kah...@gmail.com>>> wrote:
> > > I have some ndk code which uses AudioTrack to play music
> from
> > some binary
> > > data. It works fine on sdk 1.5 but after I go to 2.0 I
> get an
> > error in the
> > > Log when initializing the audio system.
> > > The log Tag is AudioTrack and the error is "invalid channel
> > mask" any idea
> > > what may be wrong?
> >
> > --
> > You received this message because you are subscribed to the
> > Google Groups "android-ndk" group.
> > To post to this group, send email to
> > andro...@googlegroups.com
> <mailto:andro...@googlegroups.com>
> <mailto:andro...@googlegroups.com
> <mailto:andro...@googlegroups.com>>.
> > To unsubscribe from this group, send email to
> > android-ndk...@googlegroups.com
> <mailto:android-ndk%2Bunsu...@googlegroups.com>
> > <mailto:android-ndk%2Bunsu...@googlegroups.com
> <mailto:android-ndk%252Buns...@googlegroups.com>>.
> > For more options, visit this group at
> > http://groups.google.com/group/android-ndk?hl=en.
> >
> >
> >
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "android-ndk" group.
> > To post to this group, send email to
> andro...@googlegroups.com <mailto:andro...@googlegroups.com>
> > <mailto:andro...@googlegroups.com
> <mailto:andro...@googlegroups.com>>.
> > To unsubscribe from this group, send email to
> > android-ndk...@googlegroups.com
> <mailto:android-ndk%2Bunsu...@googlegroups.com>
> > <mailto:android-ndk%2Bunsu...@googlegroups.com
> <mailto:android-ndk%252Buns...@googlegroups.com>>.
> > For more options, visit this group at
> > http://groups.google.com/group/android-ndk?hl=en.
> >
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "android-ndk" group.
> > To post to this group, send email to andro...@googlegroups.com