mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-17 17:56:38 +00:00
chore:
- 'types.ts' file - global variables including necessary details about audio formats added
This commit is contained in:
parent
82b56b4973
commit
cfc0ba3b41
16
src/pages/tools/converters/audio-converter/types.ts
Normal file
16
src/pages/tools/converters/audio-converter/types.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
export const AUDIO_FORMATS = {
|
||||||
|
// Lossy formats
|
||||||
|
mp3: { codec: 'libmp3lame', bitrate: '192k', mimeType: 'audio/mpeg' },
|
||||||
|
aac: { codec: 'aac', bitrate: '192k', mimeType: 'audio/aac' },
|
||||||
|
ogg: { codec: 'libvorbis', bitrate: '192k', mimeType: 'audio/ogg' },
|
||||||
|
|
||||||
|
// Lossless formats
|
||||||
|
wav: { codec: 'pcm_s16le', bitrate: null, mimeType: 'audio/wav' },
|
||||||
|
flac: { codec: 'flac', bitrate: null, mimeType: 'audio/flac' }
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export type AudioFormat = keyof typeof AUDIO_FORMATS;
|
||||||
|
|
||||||
|
export type InitialValuesType = {
|
||||||
|
outputFormat: AudioFormat;
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user