OkoLib
library for accessing Okolab devices
Data playback

Functions

oko_res_type oko_StartPlayback (uint32_t deviceh, const char *filename)
 Start the playback feature for the specified device. More...
 
oko_res_type oko_StopPlayback (uint32_t deviceh)
 Start the playback feature for the specified device. More...
 
oko_res_type oko_PlaybakGetFileName (uint32_t deviceh, char *filename)
 Get the file path used to playback the specified device. More...
 

Detailed Description

Function Documentation

◆ oko_PlaybakGetFileName()

oko_res_type oko_PlaybakGetFileName ( uint32_t  deviceh,
char *  filename 
)

Get the file path used to playback the specified device.

Parameters
[in]devicehA valid device handle.
[out]filenameThe file path from which data will be loaded. String needs to be pre-allocated by the caller.
Returns
OKO_OK upon success, an error code otherwise.

◆ oko_StartPlayback()

oko_res_type oko_StartPlayback ( uint32_t  deviceh,
const char *  filename 
)

Start the playback feature for the specified device.

Parameters
[in]devicehA valid device handle.
[in]filenameThe file path from which data will be loaded.
Returns
OKO_OK upon success, an error code otherwise.

◆ oko_StopPlayback()

oko_res_type oko_StopPlayback ( uint32_t  deviceh)

Start the playback feature for the specified device.

Parameters
[in]devicehA valid device handle.
Returns
OKO_OK upon success, an error code otherwise.