28 lines
711 B
C
28 lines
711 B
C
//
|
|
// Created by zemon on 29.11.22.
|
|
//
|
|
|
|
#include <SystemDelayInterface.h>
|
|
#include "AudioRecorderInterface.h"
|
|
|
|
bool AudioRecordInterfaceRecToEnd(tAudioRecorderInterface *env, char *sampleName, uint16_t snLength) {
|
|
if (!AudioRecord_StartToEnd(env, sampleName, snLength) ){
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
bool AudioRecordInterfaceStopToEnd(tAudioRecorderInterface *env, uint32_t timeout) {
|
|
if (!AudioRecord_WaitStopToEnd(env, timeout) ){
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
bool AudioRecordInterfaceRec(tAudioRecorderInterface *env, char *sampleName, uint16_t snLength) {
|
|
if (!AudioRecord_Start(env, sampleName, snLength) ){
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|