@miklermpz/expo-audio-studio
Version:
This is a forked version of the original [expo-audio-studio](https://github.com/deeeed/expo-audio-stream/blob/main/packages/expo-audio-studio/README.md) by Arthur Breton <abreton@siteed.net> (https://github.com/deeeed)
14 lines • 618 B
JavaScript
// packages/expo-audio-stream/src/constants.ts
import { Platform } from 'react-native';
export const isWeb = Platform.OS === 'web';
export const DEBUG_NAMESPACE = 'expo-audio-stream';
// Constants for identifying chunks in a WAV file
export const RIFF_HEADER = 0x52494646; // "RIFF"
export const WAVE_HEADER = 0x57415645; // "WAVE"
export const FMT_CHUNK_ID = 0x666d7420; // "fmt "
export const DATA_CHUNK_ID = 0x64617461; // "data"
export const INFO_CHUNK_ID = 0x494e464f; // "INFO"
// Default values
export const DEFAULT_SAMPLE_RATE = 16000;
export const DEFAULT_BIT_DEPTH = 32;
//# sourceMappingURL=constants.js.map