add flac support and files management app
This commit is contained in:
1 parent
4126ea13a1
commit
45f7b83e7c
12 files changed
+1526
-139
No files matched your search
@@ -21,6 +21,12 @@
|
||||
* 17~24bit → 24bit(每采样 3 字节)
|
||||
* 25~32bit → 32bit(每采样 4 字节)
|
||||
* 非整字节位深(如 20bit)按左对齐放入更宽的槽位,音量不受影响。
|
||||
*
|
||||
* 采样率限制:
|
||||
* ES8388 的 MCLK 由 I2S 产生(MCLK = mclk_multiple × fs),24bit 时
|
||||
* mclk_multiple 必须是 384。若直接播放 192kHz,MCLK 会到 73.7MHz,
|
||||
* 远超 codec 能力。因此 88.2k/96k/192k 等会做整数抽取降到 ≤48kHz,
|
||||
* audio_info_t.sample_rate 返回的始终是「实际输出采样率」。
|
||||
****************************************************************************************************
|
||||
*/
|
||||
|
||||
@@ -43,7 +49,7 @@ typedef enum {
|
||||
/** 音源信息 */
|
||||
typedef struct {
|
||||
audio_codec_t codec; /* 容器类型 */
|
||||
uint32_t sample_rate; /* 采样率 → 用于配置 I2S 频率 */
|
||||
uint32_t sample_rate; /* 采样率 → 用于配置 I2S 频率(已按输出上限抽取) */
|
||||
uint16_t bits; /* 源位深(界面显示用) */
|
||||
uint16_t channels; /* 源声道数 */
|
||||
uint16_t out_bits; /* I2S 输出位宽:16 / 24 / 32 */
|
||||
|
||||
Reference in new issue
Block a user