This group is for developing using the SDK. You might want to ask your question in the android-porting group instead.
On Wed, May 6, 2009 at 6:31 AM, l hx <[email protected]> wrote: > when i use the code below. > status_t ALSAStreamOps::channelCount(int channels) { > int err; > if (!mHandle) > return NO_INIT; > 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; > } > LOGD("Using %i %s for %s.", > channels, channels == 1 ? "channel" : "channels", streamName()); > return NO_ERROR; > } > > i want to set channel 1 when recoring audio. but the message of "Unable to > set channel count to %i: %s" will be print .who know why? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

