SLOG(LOG_INFO, TAG_VCD, "[Recorder] New audio type(%d) rate(%d) channel(%d)", type, rate, channel);
audio_in_destroy(g_audio_h);
- audio_channel_e audio_ch;
+ audio_channel_e audio_ch = AUDIO_CHANNEL_MONO;
audio_sample_type_e audio_sample_type;
switch (channel) {
case 1: audio_ch = AUDIO_CHANNEL_MONO; break;
case 2: audio_ch = AUDIO_CHANNEL_STEREO; break;
+ case 3: audio_ch = AUDIO_CHANNEL_MULTI_3; break;
+ case 4: audio_ch = AUDIO_CHANNEL_MULTI_4; break;
+ case 5: audio_ch = AUDIO_CHANNEL_MULTI_5; break;
+ case 6: audio_ch = AUDIO_CHANNEL_MULTI_6; break;
+ case 7: audio_ch = AUDIO_CHANNEL_MULTI_7; break;
+ case 8: audio_ch = AUDIO_CHANNEL_MULTI_8; break;
default:
- SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Input channel is not supported");
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Input channel is not supported, audio_ch(%d)", audio_ch);
return VCD_ERROR_OPERATION_FAILED;
break;
}