![Logo](../../RDK-Logo.png) |
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
25 #ifndef __BTR_MGR_STREAMIN_GST_H__
26 #define __BTR_MGR_STREAMIN_GST_H__
28 typedef void* tBTRMgrSiGstHdl;
31 #define BTRMGR_AUDIO_INPUT_TYPE_SBC "SBC"
32 #define BTRMGR_AUDIO_INPUT_TYPE_AAC "MP4A-LATM"
33 #define BTRMGR_AUDIO_INPUT_TYPE_PCM "PCM"
36 #define BTRMGR_AUDIO_SFMT_SIGNED_8BIT "S8"
37 #define BTRMGR_AUDIO_SFMT_SIGNED_LE_16BIT "S16LE"
38 #define BTRMGR_AUDIO_SFMT_SIGNED_LE_24BIT "S24LE"
39 #define BTRMGR_AUDIO_SFMT_SIGNED_LE_32BIT "S32LE"
42 #define BTRMGR_AUDIO_CHANNELMODE_MONO "mono"
43 #define BTRMGR_AUDIO_CHANNELMODE_DUAL "dual"
44 #define BTRMGR_AUDIO_CHANNELMODE_STEREO "stereo"
45 #define BTRMGR_AUDIO_CHANNELMODE_JSTEREO "joint"
55 typedef enum _eBTRMgrSIGstRet {
57 eBTRMgrSIGstFailInArg,
61 typedef enum _eBTRMgrSIGstStatus {
62 eBTRMgrSIGstStInitialized,
63 eBTRMgrSIGstStDeInitialized,
65 eBTRMgrSIGstStPlaying,
66 eBTRMgrSIGstStUnderflow,
67 eBTRMgrSIGstStOverflow,
68 eBTRMgrSIGstStCompleted,
69 eBTRMgrSIGstStStopped,
70 eBTRMgrSIGstStWarning,
77 typedef eBTRMgrSIGstRet (*fPtr_BTRMgr_SI_GstStatusCb) (eBTRMgrSIGstStatus aeBtrMgrSiGstStatus,
void *apvUserData);
93 eBTRMgrSIGstRet
BTRMgr_SI_GstInit (tBTRMgrSiGstHdl* phBTRMgrSiGstHdl, fPtr_BTRMgr_SI_GstStatusCb afpcBSiGstStatus,
void* apvUserData);
119 eBTRMgrSIGstRet
BTRMgr_SI_GstStart (tBTRMgrSiGstHdl hBTRMgrSiGstHdl,
int aiInBufMaxSize,
int aiBTDevFd,
int aiBTDevMTU,
unsigned int aiBTDevSFreq,
const char* apcAudioInType);
eBTRMgrSIGstRet BTRMgr_SI_GstInit(tBTRMgrSiGstHdl *phBTRMgrSiGstHdl, fPtr_BTRMgr_SI_GstStatusCb afpcBSiGstStatus, void *apvUserData)
This API initializes the streaming interface.
eBTRMgrSIGstRet BTRMgr_SI_GstStart(tBTRMgrSiGstHdl hBTRMgrSiGstHdl, int aiInBufMaxSize, int aiBTDevFd, int aiBTDevMTU, unsigned int aiBTDevSFreq, const char *apcAudioInType)
This API starts the playback and listens to the events associated with it.
eBTRMgrSIGstRet BTRMgr_SI_GstSetVolume(tBTRMgrSiGstHdl hBTRMgrSiGstHdl, unsigned char ui8Volume)
This API resumes the current operation and listens to the events.
eBTRMgrSIGstRet BTRMgr_SI_GstSendBuffer(tBTRMgrSiGstHdl hBTRMgrSiGstHdl, char *pcInBuf, int aiInBufSize)
This API pushes the buffer to the queue.
eBTRMgrSIGstRet BTRMgr_SI_GstDeInit(tBTRMgrSiGstHdl hBTRMgrSiGstHdl)
This API performs the cleanup operations.
eBTRMgrSIGstRet BTRMgr_SI_GstSendEOS(tBTRMgrSiGstHdl hBTRMgrSiGstHdl)
This API is used to push EOS(End of Stream) to the queue.
eBTRMgrSIGstRet BTRMgr_SI_GstStop(tBTRMgrSiGstHdl hBTRMgrSiGstHdl)
This API stops the current playback and sets the state as NULL.
eBTRMgrSIGstRet BTRMgr_SI_GstResume(tBTRMgrSiGstHdl hBTRMgrSiGstHdl)
This API resumes the current operation and listens to the events.
eBTRMgrSIGstRet BTRMgr_SI_GstPause(tBTRMgrSiGstHdl hBTRMgrSiGstHdl)
This API pauses the current playback and listens to the events.