Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.29 KB

6-new(mic-sound).md

File metadata and controls

61 lines (42 loc) · 1.29 KB

Sound/Mic related functions

N.6.1

FtErrors SetSound(ShmIfId_TXT shmId, UINT16 index, UINT16 repeat);

Activate a sound file with index and repeat it.

Call:

ShmIfId_TXT shmId - controller ID (master or extension controller)
UINT16 index - index of the sound file on the TXT. This can be found in the public map Sound.
UINT16 repeat - repeat factor [1..]

Return:

INT16 - the state the halve axe [0..15]

N.6.2 IsSoundReady

bool IsSoundReady(ShmIfId_TXT shmId);

Check if the activated sound has been finished.

Call:

ShmIfId_TXT shmId - controller ID (master or extension controller)

Return:

bool - Sound is ready

N.6.3 GetMicLin

UINT16 GetMicLin(ShmIfId_TXT shmId);

Get microphone data.

Call:

ShmIfId_TXT shmId - controller ID (master or extension controller)

Return:

UINT16 - the microphone level

N.6.4 GetMicLog

UINT16 GetMicLog(ShmIfId_TXT shmId);

Get microphone data compressed(logarithmic.

Call:

ShmIfId_TXT shmId - controller ID (master or extension controller)

Return:

UINT16 - the microphone level

Document history

Version 1.1.2.1 (c) 2020 TesCaWeb ing. C. van Leeuwen Btw.