12 #ifndef NDL_DIRECTMEDIA_API_VERSION
13 # define NDL_DIRECTMEDIA_API_VERSION 2
14 #elif (NDL_DIRECTMEDIA_API_VERSION != 2)
15 # error "this header requires NDL_DIRECTMEDIA_API_VERSION 2"
18 #include "NDL_directmedia_common.h"
23 int NDL_DirectAudioGetAvailableBufferSize(
int *available);
28 int NDL_DirectAudioGetTotalBufferSize(
int *total);
38 int NDL_DirectAudioPlay(
void *buffer,
unsigned int size,
long long pts);
43 int NDL_DirectAudioSupportMultiChannel(
int *isSuppored);
48 int NDL_DirectEffectGetAvailableBufferSize(
unsigned int *avail);
53 int NDL_DirectEffectLoad(NDL_DIRECTAUDIO_PCM_INFO_T *info,
unsigned int *preferredSize);
62 int NDL_DirectEffectPlay(
void *buffer,
unsigned int size);
67 int NDL_DirectEffectUnload(
void);
75 int NDL_DirectMediaLoad(NDL_DIRECTMEDIA_DATA_INFO_T *data, NDLMediaLoadCallback callback);
82 int NDL_DirectMediaUnload(
void);
87 void NDL_DirectMedia_DL_Finalize(
void);
94 bool NDL_DirectMedia_DL_Initialize(
void);
101 bool NDL_DirectMedia_DL_IsInitialized(
void);
106 int NDL_DirectVideoFlushRenderBuffer(
void);
111 int NDL_DirectVideoGetRenderBufferLength(
int *length);
121 int NDL_DirectVideoPlay(
void *buffer,
unsigned int size,
long long pts);
126 int NDL_DirectVideoSetFrameDropThreshold(
int threshold);
131 int NDL_DirectVideoSetHDRInfo(NDL_DIRECTVIDEO_HDR_INFO_T hdrInfo);