void audioPlayerDestory()

in source/T31/T31AudioPlayer.c [312:330]


void audioPlayerDestory(AudioPlayerHandle handle)
{
    if (!handle) {
        return;
    }
    T31_HANDLE_GET(handle);

    if (t31Handle->status == AUD_PLY_STATUS_STREAM_ON) {
        audioPlayerReleaseStream(handle);
    }

    if (IMP_ADEC_DestroyChn(T31_SPK_DEC_CHN_ID)) {
        LOG("IMP_ADEC_DestroyChn failed");
    }

    setStatus(handle, AUD_PLY_STATUS_NOT_READY);

    free(handle);
}