Discovery
java G711 编码
This Java code implements G.711 A-law compression and decompression. The `CMG711` class contains `aLawCompressTable` and `aLawDecompressTable`, arrays used for efficient encoding and decoding of audio data using the A-law algorithm. The `cClip` constant defines a clipping value for signal processing. This code provides a practical implementation of the G.711 A-law standard within a Java environment.
C++获取运行exe路径和名称
This article presents two methods in C++ to obtain the path and name of the currently running executable. The first uses command-line arguments (argv[0]) and string manipulation to extract the information. The second employs a custom `PathUtil` class, leveraging `GetModuleFileNameA` to retrieve the full path and then parsing it to separate the filename. Both methods provide solutions for acquiring both the executable's path and its name.