int Hi3511AudioDecClose(int nChannel) { HI_S32 s32ret; ADEC_CHN AdChn = 0; if (nChannel<0 || nChannel>=MAX_ADEC_CHANNEL) { return -1; } #if 0 //mbl old:worked /* release audio frame */ s32ret = HI_MPI_ADEC_ReleaseData(AdChn, &stAudioFrameInfo); if (HI_SUCCESS != s32ret) { printf("adec release data %d err:0x%x\n",0, s32ret); return s32ret; } // ¹Ø±ÕͨµÀ±àÂëÆ÷ if (g_adec_chn_flag[nChannel]) { HI_MPI_ADEC_DestroyChn(nChannel); g_adec_chn_flag[nChannel] = 0; } #endif return 0; }
static int adec_stop(ADEC_CHN AdecChn) { HI_S32 s32Ret = HI_FAILURE; s32Ret = HI_MPI_ADEC_DestroyChn(AdecChn); CHECK(s32Ret == HI_SUCCESS, HI_FAILURE, "Error with %#x.\n", s32Ret); return HI_SUCCESS; }
/****************************************************************************** * function : Stop Adec ******************************************************************************/ HI_S32 SAMPLE_COMM_AUDIO_StopAdec(ADEC_CHN AdChn) { HI_MPI_ADEC_DestroyChn(AdChn); return HI_SUCCESS; }