a2dp_sd_kalimba.c

来自「dongle蓝牙适配器(a2dp_source_dongle)源代码」· C语言 代码 · 共 67 行

C
67
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
Part of Stereo-Headset-SDK Q1-2007.Release

FILE NAME
    a2dp_sd_kalimba.c

DESCRIPTION
    KAlimba related functions

NOTES

*/


/****************************************************************************
    Header files
*/
#include "a2dp_sd_private.h"
#include "a2dp_sd_kalimba.h"
#include "a2dp_sd_interface.h"

#include <file.h>
#include <kalimba.h>
#include <kalimba_standard_messages.h>
#include <panic.h>


/****************************************************************************
NAME
    a2dpSdKalimbaStart

DESCRIPTION
    Initialise Kalimba and routing for SBC encoding

RETURNS
    void
*/
void a2dpSdKalimbaStart(const a2dpSourceDongleTaskData *theApp)
{
   A2dpAudioCodecEnable(theApp->a2dp, theApp->media_sink);

   /* Plug Interface into Kalimba */
   a2dpSdConnectInterfaceToKalimba();

    /* Tell the DSP to go */
    if (!KalimbaSendMessage(KALIMBA_MSG_GO, 0, 0, 0, 0))
        /* If message fails to get through, abort */
        Panic();
}


/****************************************************************************
NAME
    a2dpSdKalimbaStop

DESCRIPTION
    Stop Kalimba and power it down.

RETURNS
    void
*/
void a2dpSdKalimbaStop(const a2dpSourceDongleTaskData *theApp)
{
    A2dpAudioCodecDisable(theApp->a2dp, theApp->media_sink);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?