MrzhangF1ghter / mp3player

mp3 player for rt-thread
Apache License 2.0
6 stars 4 forks source link

fix 中文编码格式为 UTF-8 #2

Closed luhuadong closed 2 years ago

luhuadong commented 2 years ago

在 VS Code 等编辑器使用 UTF-8 编码查看文件时会看到乱码。

$ git diff
diff --git a/inc/mp3_tag.h b/inc/mp3_tag.h
index 2545613..25bc49f 100644
--- a/inc/mp3_tag.h
+++ b/inc/mp3_tag.h
@@ -67,12 +67,12 @@ typedef struct
  */
 typedef struct
 {
-    uint8_t id[4];      /* ֡ID,ΪXing/Info */
-    uint8_t version[2]; /* <B0>汾<BA><C5> */
-    uint8_t delay[2];   /* <D1>ӳ<D9> */
-    uint8_t quality[2]; /* <D2><F4>Ƶ<D6><CA><C1><BF>,0~100,Խ<B4><F3><D6><CA><C1><BF>Խ<BA><C3> */
-    uint8_t fsize[4];   /* <CE>ļ<FE><D7>ܴ<F3>С */
-    uint8_t frames[4];  /* <CE>ļ<FE><D7><DC>֡<CA><FD>  */
+    uint8_t id[4];      /* 帧ID,为Xing/Info */
+    uint8_t version[2]; /* 版本号 */
+    uint8_t delay[2];   /* 延迟 */
+    uint8_t quality[2]; /* 音频质量,0~100,越大质量越好 */
+    uint8_t fsize[4];   /* 文件总大小 */
+    uint8_t frames[4];  /* 文件总帧数 */
 } MP3_FrameVBRI_t;

 /**
MrzhangF1ghter commented 2 years ago

方便的话可以修改为英文注释

luhuadong commented 2 years ago

方便的话可以修改为英文注释

可以安排~