要说它的作用是什么?不好描述。比如改变WAV文件的采样率、把某资源文件当WAV播放等奇怪的功能。
为什么要编写它?其实只是为了好玩。
其实它还有个用处,你可以借助它提取某些游戏的BGM和音效等等。比如雷电3的GLB文件,你就可以用它来转成WAV。
这是个命令行程序。命令:D:\C_Proj\MAKEWAV\Release>makewav
MAKEWAV: Add a WAV file header to a file.
Usage:
MAKEWAV <TYPE> <Channels> <bps> <SampleRate> <SOURCEFILE.*>
eg. MAKEWAV 1 1 8 11025 ABCD.EFG
Then you will get a file: ABCD.WAV
<TYPE>:
The type of PCM. Set this value to 1 means that file is a normal PCM
(Usually bps is 8 or 16), 2 for high quality PCM(bps is 24, 32 or 48),
And 3 for IEEE floating point samples PCM(bps is 32, 64, 80, 128, etc.)
<Channels>:
The count of the channels in the WAV file. 1 for mono and 2 for stereo
<bps>:
Bits per samples. Usually 8, 16, 24, 32, 48, 64, etc.
<SampleRate>:
Specifies the sample rate of the WAV file. Sample rate is a value that
tells how many samples will be played during 1 second. Normally is
11025, 22050, 44100 for CD quality, 48000, 96000, 192000 for recording
studio quality. This value can be set to a number from 1 to 192000. 代码如下:BIN下载:
MAKEWAV.EXE
(44 KB, 下载次数: 5, 售价: 1 个宅币)
SRC下载:
MAKEWAV.7z
(20.67 KB, 下载次数: 4, 售价: 10 个宅币)
|