[android-developers] Re: How to use AudioRecord and AudioTrack
this is my code: err = snd_pcm_hw_params_set_channels(mHandle, mHardwareParams, channels); if (err < 0) { LOGE("Unable to set channel count to %i: %s", channels, snd_strerror(err)); return BAD_VALUE; } On Fri, May 8, 2009 at 12:47 PM, l hx wrote: > i get the raw data from my device , and i find that the data is stereo. and > when i using the function of alsa-lib to set the channel to 1 channel. but > it tell me wrong to set > > > On Fri, May 8, 2009 at 12:58 AM, Dave Sparks wrote: > >> >> The mic on all current Android devices, why would you want to record >> stereo? >> >> On May 7, 3:43 am, l hx wrote: >> > can we using channels 2 when recording audio? >> > >> > On Sat, May 2, 2009 at 12:54 AM, Jean-Michel wrote: >> > >> > > Hi there, >> > > Looks like sipdroid (www.sipdroid.org) is using AudioTrack and >> > > AudioRecord for their SIP client. Go to the "Browse source" page and >> > > look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java >> > > and RtpStreamSender.java, and search respectively for "track" and >> > > "record". >> > >> > > On Apr 30, 7:07 am, Thomson wrote: >> > > > Hi, >> > > >I want to use AudioRecord and AudioTrack classes(in SDK 1.5) >> in >> > > > my program. >> > > > Where can I find how to use it. Is there any API demo program for >> > > > this?. >> > > > If not it is greatly appreciated if someone can post a sample code >> in >> > > > this forum >> > >> > > > Thanks >> >> >> > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use AudioRecord and AudioTrack
i get the raw data from my device , and i find that the data is stereo. and when i using the function of alsa-lib to set the channel to 1 channel. but it tell me wrong to set On Fri, May 8, 2009 at 12:58 AM, Dave Sparks wrote: > > The mic on all current Android devices, why would you want to record > stereo? > > On May 7, 3:43 am, l hx wrote: > > can we using channels 2 when recording audio? > > > > On Sat, May 2, 2009 at 12:54 AM, Jean-Michel wrote: > > > > > Hi there, > > > Looks like sipdroid (www.sipdroid.org) is using AudioTrack and > > > AudioRecord for their SIP client. Go to the "Browse source" page and > > > look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java > > > and RtpStreamSender.java, and search respectively for "track" and > > > "record". > > > > > On Apr 30, 7:07 am, Thomson wrote: > > > > Hi, > > > >I want to use AudioRecord and AudioTrack classes(in SDK 1.5) > in > > > > my program. > > > > Where can I find how to use it. Is there any API demo program for > > > > this?. > > > > If not it is greatly appreciated if someone can post a sample code in > > > > this forum > > > > > > Thanks > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use AudioRecord and AudioTrack
The mic on all current Android devices, why would you want to record stereo? On May 7, 3:43 am, l hx wrote: > can we using channels 2 when recording audio? > > On Sat, May 2, 2009 at 12:54 AM, Jean-Michel wrote: > > > Hi there, > > Looks like sipdroid (www.sipdroid.org) is using AudioTrack and > > AudioRecord for their SIP client. Go to the "Browse source" page and > > look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java > > and RtpStreamSender.java, and search respectively for "track" and > > "record". > > > On Apr 30, 7:07 am, Thomson wrote: > > > Hi, > > > I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in > > > my program. > > > Where can I find how to use it. Is there any API demo program for > > > this?. > > > If not it is greatly appreciated if someone can post a sample code in > > > this forum > > > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use AudioRecord and AudioTrack
can we using channels 2 when recording audio? On Sat, May 2, 2009 at 12:54 AM, Jean-Michel wrote: > > Hi there, > Looks like sipdroid (www.sipdroid.org) is using AudioTrack and > AudioRecord for their SIP client. Go to the "Browse source" page and > look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java > and RtpStreamSender.java, and search respectively for "track" and > "record". > > On Apr 30, 7:07 am, Thomson wrote: > > Hi, > >I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in > > my program. > > Where can I find how to use it. Is there any API demo program for > > this?. > > If not it is greatly appreciated if someone can post a sample code in > > this forum > > > > Thanks > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use AudioRecord and AudioTrack
Hi there, Looks like sipdroid (www.sipdroid.org) is using AudioTrack and AudioRecord for their SIP client. Go to the "Browse source" page and look at trunk > src > org > sipdroid > media > RtpStreamReceiver.java and RtpStreamSender.java, and search respectively for "track" and "record". On Apr 30, 7:07 am, Thomson wrote: > Hi, > I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in > my program. > Where can I find how to use it. Is there any API demo program for > this?. > If not it is greatly appreciated if someone can post a sample code in > this forum > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---