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 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 -~----------~----~----~----~------~----~------~--~---