Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private preStatus
private constructor () { }
private static RecordingOptions = {
android: {
extension: '.m4a',
outputFormat: Audio.RECORDING_OPTION_ANDROID_OUTPUT_FORMAT_MPEG_4,
audioEncoder: Audio.RECORDING_OPTION_ANDROID_AUDIO_ENCODER_AAC,
sampleRate: 8000,
numberOfChannels: 2,
bitRate: 48000
},
ios: {
extension: '.caf',
audioQuality: Audio.RECORDING_OPTION_IOS_AUDIO_QUALITY_MAX,
sampleRate: 8000,
numberOfChannels: 2,
bitRate: 48000,
linearPCMBitDepth: 16,
linearPCMIsBigEndian: false,
linearPCMIsFloat: false
}
}
static getInstance () {
if (!RecorderManager.instance) {
RecorderManager.recordInstance = new Audio.Recording()
RecorderManager.instance = new RecorderManager()
}
return RecorderManager.instance
}