mineral-server 0.5.10

Mineral 后台 server:收纳 audio engine + task scheduler + channels,对外发 ClientHandle
---
source: crates/mineral-server/src/config/startup.rs
description: "ServerConfig(daemon-default.lua → daemon 启动切片)"
expression: "ServerConfig::from_config(&cfg)"
---
ServerConfig {
    engine: EngineParams {
        initial_volume: 100,
        tick_ms: 20,
        prefetch_bytes: 262144,
        tap_capacity: 8192,
    },
    envelope: EnvelopeParams {
        point_count: 200,
        block_ms: 100,
        window_ms: 400,
        shelf: ShelfParams {
            f0_hz: 1681.974450955533,
            gain_db: 3.999843853973347,
            q: 0.7071752369554196,
            band_exponent: 0.4996667741545416,
        },
        highpass: HighpassParams {
            f0_hz: 38.13547087602444,
            q: 0.5003270373238773,
        },
    },
    playback_quality: Exhigh,
    audio_cache_capacity: 10737418240,
    channel_workers_per: 8,
    download: DownloadConfig {
        quality: Lossless,
        dir: None,
        max_concurrent: 3,
        tagging: true,
        tagging_workers: 4,
    },
    timing: ServerTiming {
        gapless_prefetch_ms: 10000,
        prev_restart_threshold_ms: 3000,
        player_tick_ms: 20,
        session_save_secs: 15,
        heartbeat_secs: 180,
        report_interval_ms: 200,
        seek_threshold_ms: 1000,
        download_speed_tick_ms: 150,
    },
    hook_timeout_ms: 2000,
    favorites_backfill_chunk_size: 40,
    favorites_backfill_max_concurrent: 3,
}