【C】C语言写的一个把任意文件套上一个WAV文件头的程序
要说它的作用是什么?不好描述。比如改变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.代码如下:**** Hidden Message *****BIN下载:
SRC下载: 沙发,强势顶起。改天试试 貌似很强大 没啥说的先顶在下!!!!!!!!!!
我试了下,success。不过我播放不出声音。 66666666666666666 这个小工具非常的实用啊。
页:
[1]