static int playFrame()

in source/T31/T31AudioPlayer.c [54:70]


static int playFrame(AudioPlayerHandle handle, IMPAudioFrame* frame)
{
    T31_HANDLE_NULL_CHECK(handle);
    T31_HANDLE_GET(handle);
    T31_HANDLE_STATUS_CHECK(t31Handle, AUD_PLY_STATUS_STREAM_ON);

    if (!frame) {
        return -EINVAL;
    }

    if (IMP_AO_SendFrame(T31_SPK_DEV_ID, T31_SPK_DEV_CHN_ID, frame, BLOCK)) {
        LOG("IMP_AO_SendFrame failed");
        return -EINVAL;
    }

    return 0;
}