MeiCam SDK For Android  3.14.0
Classes | Public Member Functions | Static Public Member Functions | List of all members
com.meicam.sdk.NvsBeatDetection Class Reference

Beat detection class. More...

Classes

interface  BeatDetectionCallback
 Beat detection callback interface. More...
 

Public Member Functions

boolean startDetect (String inputFilePath, int sensitivity)
 Start beat detection. More...
 
void setBeatDetectionCallback (BeatDetectionCallback cb)
 Sets callback interface for beat detection. More...
 

Static Public Member Functions

static NvsBeatDetection init (int flags)
 Initializes beat detection instance. More...
 
static void close ()
 Destroys the beat detection object instance. note: it can be created again after destruction. More...
 
static NvsBeatDetection getInstance ()
 Gets the instance of beat detection object (only can use this after initialization) More...
 

Detailed Description

Beat detection class.

Member Function Documentation

◆ close()

static void com.meicam.sdk.NvsBeatDetection.close ( )
inlinestatic

Destroys the beat detection object instance. note: it can be created again after destruction.

See also
init
getInstance

◆ getInstance()

static NvsBeatDetection com.meicam.sdk.NvsBeatDetection.getInstance ( )
inlinestatic

Gets the instance of beat detection object (only can use this after initialization)

Returns
Returns the beat detection object instance.
See also
init
close

◆ init()

static NvsBeatDetection com.meicam.sdk.NvsBeatDetection.init ( int  flags)
inlinestatic

Initializes beat detection instance.

Parameters
flagsFlags, zero temporarily
Returns
Returns a beat detection instance object.
Since
2.14.0
See also
getInstance
close

◆ setBeatDetectionCallback()

void com.meicam.sdk.NvsBeatDetection.setBeatDetectionCallback ( BeatDetectionCallback  cb)
inline

Sets callback interface for beat detection.

Parameters
cbCallback interface for beat detection.

◆ startDetect()

boolean com.meicam.sdk.NvsBeatDetection.startDetect ( String  inputFilePath,
int  sensitivity 
)
inline

Start beat detection.

Parameters
inputFilePathinput music file path
sensitivitymin duration between two adjacent beats
Returns
Return true if suc, otherwise false
See also
init
getInstance

The documentation for this class was generated from the following file: