20 lines
552 B
JavaScript
20 lines
552 B
JavaScript
'use strict';
|
|
|
|
const nativeOnly = async () => {
|
|
throw new Error('Nitro Sound is unavailable in the Jest runtime');
|
|
};
|
|
|
|
module.exports = {
|
|
AudioEncoderAndroidType: { AAC: 3 },
|
|
AudioSourceAndroidType: { MIC: 1 },
|
|
AVEncoderAudioQualityIOSType: { high: 96 },
|
|
OutputFormatAndroidType: { MPEG_4: 2 },
|
|
createSound: () => ({
|
|
addRecordBackListener: () => undefined,
|
|
pauseRecorder: nativeOnly,
|
|
resumeRecorder: nativeOnly,
|
|
setSubscriptionDuration: () => undefined,
|
|
startRecorder: nativeOnly,
|
|
stopRecorder: nativeOnly,
|
|
}),
|
|
};
|