|
libPocuter
1.0
Support library for programming the Pocuter
|
options to access the Pocuter microphone More...
#include <PocuterMicrophone.h>
Public Types | |
| enum | MICERROR { MICERROR_OK, MICERROR_RESOURCE_NOT_AVAILABLE, MICERROR_UNKNOWN } |
| enum | MICEVENT { MIC_DATA_PACKAGE } |
| enum | NOICE_REDUCTION_LEVEL { REDUCTION_LEVEL_NONE, REDUCTION_LEVEL_SMALL, REDUCTION_LEVEL_MEDIUM, REDUCTION_LEVEL_HIGHT, REDUCTION_LEVEL_RAW } |
| enum | SAMLE_RATE_HZ { SAMLE_RATE_8000 = 8000, SAMLE_RATE_11025 = 11025, SAMLE_RATE_16000 = 16000, SAMLE_RATE_22050 = 22050, SAMLE_RATE_32000 = 32000, SAMLE_RATE_44100 = 44100, SAMLE_RATE_48000 = 48000 } |
| typedef void() | micEventHandler(MICEVENT, void *data, size_t dataSize, void *userData) |
Public Member Functions | |
| virtual MICERROR | registerEventHandler (micEventHandler *h, void *u)=0 |
| register an event callback More... | |
| virtual void | unregisterEventHandler ()=0 |
| unregister the event handler More... | |
| virtual MICERROR | startRecording (SAMLE_RATE_HZ s, NOICE_REDUCTION_LEVEL n)=0 |
| start the recording More... | |
| virtual MICERROR | stopRecording ()=0 |
| stop the recording More... | |
options to access the Pocuter microphone
| typedef void() PocuterMicrophone::micEventHandler(MICEVENT, void *data, size_t dataSize, void *userData) |
|
pure virtual |
register an event callback
| h | a pointer to the callback function |
| u | a pointer to user data sent to the event handler on each event |
|
pure virtual |
start the recording
| s | the sample rate |
| n | the noice reduction level, or raw data |
|
pure virtual |
stop the recording
|
pure virtual |
unregister the event handler