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"
23int NDL_DirectAudioGetAvailableBufferSize(
int *available);
28int NDL_DirectAudioGetTotalBufferSize(
int *total);
38int NDL_DirectAudioPlay(
void *buffer,
unsigned int size,
long long pts);
43int NDL_DirectAudioSupportMultiChannel(
int *isSuppored);
48int NDL_DirectEffectGetAvailableBufferSize(
unsigned int *avail);
53int NDL_DirectEffectLoad(NDL_DIRECTAUDIO_PCM_INFO_T *info,
unsigned int *preferredSize);
62int NDL_DirectEffectPlay(
void *buffer,
unsigned int size);
67int NDL_DirectEffectUnload(
void);
75int NDL_DirectMediaLoad(NDL_DIRECTMEDIA_DATA_INFO_T *data, NDLMediaLoadCallback callback);
82int NDL_DirectMediaUnload(
void);
87void NDL_DirectMedia_DL_Finalize(
void);
94bool NDL_DirectMedia_DL_Initialize(
void);
101bool NDL_DirectMedia_DL_IsInitialized(
void);
106int NDL_DirectVideoFlushRenderBuffer(
void);
111int NDL_DirectVideoGetRenderBufferLength(
int *length);
121int NDL_DirectVideoPlay(
void *buffer,
unsigned int size,
long long pts);
126int NDL_DirectVideoSetFrameDropThreshold(
int threshold);
131int NDL_DirectVideoSetHDRInfo(NDL_DIRECTVIDEO_HDR_INFO_T hdrInfo);