VS Code: How to Compare Two Files (Find the Difference)
两个方法:
选择要比较的两个文件,右键——“Compare Selected”.

终端输入如下命令进行比较
code --diff [path to file 1] [path to file 2]
比如:
PS Z:\work\hypervisor_without\rcar_cr7_prj\release220629\testRelease220629\rcar-cr7-solution> code --diff Z:\work\hypervisor_without\rcar_cr7_prj\release220629\testRelease220629\rcar-cr7-solution\setup-env.sh C:\Users\a5059726\Downloads\recn-setup-env.sh
P.S.:
(1) 菜单Terminal - New Terminal,打开命令行
(2) 右键当前工程的文件,选择“copy path”,可以得到当前工程中文件的路径
(3) 从下载的文件或者其他目录的文件,右键,根据详细信息可以得到当前文件的路径
通常的MP3格式,是立体声(stereo,L0和R0)的单通道文件,不具备多通道音频信息。
要进行多声道音频输出的测试,首先要有多声道测试的音频文件,每个省道的音频信息可以相同也可以不同,这里有两个文件(各声道音频信息不同)可以供参考使用,具体指标: ——采样率:48KHz ——分辨率:16 bit ——声道:8声道
(1)多声道音频文件1
(2) 多声道音频文件2
有关多声道测试的文件的介绍,可以看这里:
环绕声系统与虚拟环绕声(Virtual Surround)
AC-3杜比数码环绕声系统由5个完全独立的全音域声道和一个超低频声道组成, 有时又将它们称为5.1声道。
其中5个独立声道为: 前置左声道、前置右声道、中置声道、环绕左声道和环绕右声道;
另外还有一个专门用来重放120Hz以下的超低频声道, 即0.1声道。
多通道:默认的 Android 播放音效已进行了测试,确认其支持多通道(多达 8 通道)。
(3)SSI - I2S可以传递多通道音频信息
比如,AK4613的I/F format: MSB justified, LSB justified (16bit, 20bit, 24bit), I2S or TDM

(4)多声道测试文件
(5)5.1声道测试文件下载
git diff或者打patch时,经常会碰到如下提示:
Applying: set EMMC_BOOT_P2=1 to boot from eMMC partition 2
.git/rebase-apply/patch:33: trailing whitespace.
NOTICE("eMMC boot from partition1...\n");
.git/rebase-apply/patch:39: trailing whitespace.
NOTICE("eMMC boot from partition2...\n");
.git/rebase-apply/patch:79: trailing whitespace.
NOTICE("eMMC boot from partition2 now...\n");
.git/rebase-apply/patch:85: trailing whitespace.
NOTICE("boot from hyperflash...\n");
出现上述现象的原因:存在大量的行尾空格 或者 换行后编译器智能添加的空行(没有写任何代码)
这时,可以在vscode中,安装如下扩展插件——Trailing Spaces:

然后,通过菜单进入Settings设置:

可以设置如下:

参考:
例如:
#include <stdio.h>
void main(void)
{
printf("Hello the world!\n\r");
}
| language | key |
|---|---|
| C | c |
| ActionScript | actionscript |
| Apache | apache |
| AppleScript | applescript |
| AsciiDoc | asciidoc |
| AspectJ | asciidoc |
| AutoHotkey | autohotkey |
| AVR Assembler | avrasm |
| Axapta | axapta |
| Bash | bash |
| BrainFuck | brainfuck |
| Cap’n Proto | capnproto |
| Clojure REPL | clojure |
| Clojure | clojure |
| CMake | cmake |
| CoffeeScript | coffeescript |
| C++ | cpp |
| C# | cs |
| CSS | css |
| D | d |
| Dart | d |
| Delphi | delphi |
| Diff | diff |
| Django | django |
| DOS.bat | dos |
| Dust | dust |
| Elixir | elixir |
| ERB(Embedded Ruby) | erb |
| Erlang REPL | erlang-repl |
| Erlang | erlang |
| FIX | fix |
| F# | fsharp |
| G-code(ISO 6983) | gcode |
| Gherkin | gherkin |
| GLSL | glsl |
| Go | go |
| Gradle | gradle |
| Groovy | groovy |
| Haml | haml |
| Handlebars | handlebars |
| Haskell | haskell |
| Haxe | haxe |
| HTML | html |
| HTTP | http |
| Ini file | ini |
| Java | java |
| JavaScript | javascript |
| JSON | json |
| Lasso | lasso |
| Less | less |
| Lisp | lisp |
| LiveCode | livecodeserver |
| LiveScript | livescript |
| Lua | lua |
| Makefile | makefile |
| Markdown | markdown |
| Mathematica | mathematica |
| Matlab | matlab |
| MEL (Maya Embedded Language) | mel |
| Mercury | mercury |
| Mizar | mizar |
| Monkey | monkey |
| Nginx | nginx |
| Nimrod | nimrod |
| Nix | nix |
| NSIS | nsis |
| Objective C | objectivec |
| OCaml | ocaml |
| Oxygene | oxygene |
| Parser 3 | parser3 |
| Perl | perl |
| PHP | php |
| PowerShell | powershell |
| Processing | processing |
| Python’s profiler output | profile |
| Protocol Buffers | protobuf |
| Puppet | puppet |
| Python | python |
| Q | q |
| R | r |
| RenderMan RIB | rib |
| Roboconf | roboconf |
| RenderMan RSL | rsl |
| Ruby | ruby |
| Oracle Rules Language | ruleslanguage |
| Rust | rust |
| Scala | scala |
| Scheme | scheme |
| Scilab | scilab |
| SCSS | scss |
| Smali | smali |
| SmallTalk | smalltalk |
| SML | sml |
| SQL | sql |
| Stata | stata |
| STEP Part21(ISO 10303-21) | step21 |
| Stylus | stylus |
| Swift | swift |
| Tcl | tcl |
| Tex | tex |
| text | text/plain |
| Thrift | thrift |
| Twig | twig |
| TypeScript | typescript |
| Vala | vala |
| VB.NET | vbnet |
| VBScript in HTML | vbscript-html |
| VBScript | vbscript |
| Verilog | verilog |
| VHDL | vhdl |
| Vim Script | vim |
| Intel x86 Assembly | x86asm |
| XL | xl |
| XML | xml |
| YAML | yml |