export function inferChannelMimeType(name) {
    const lower = name.toLowerCase();
    if (lower.endsWith(".jpg") || lower.endsWith(".jpeg"))
        return "image/jpeg";
    if (lower.endsWith(".png"))
        return "image/png";
    if (lower.endsWith(".gif"))
        return "image/gif";
    if (lower.endsWith(".webp"))
        return "image/webp";
    if (lower.endsWith(".mp3"))
        return "audio/mpeg";
    if (lower.endsWith(".wav"))
        return "audio/wav";
    if (lower.endsWith(".ogg") || lower.endsWith(".oga"))
        return "audio/ogg";
    if (lower.endsWith(".m4a"))
        return "audio/mp4";
    if (lower.endsWith(".webm"))
        return "audio/webm";
    return "application/octet-stream";
}
