--------------------------------
FMOD Sample Bank/Stream Compiler
v1.24
Copyright Firelight Technologies 2002-2004.
--------------------------------
Index.
------
1. Introduction.
2. Using it to generate 1 FSB file, or multiple single FSB files!
3. Hit 'Build' and notice the RAM usage bar graph.
4. Error dialog box
5. Using FSB files in your program.
5.1 As a static sample bank.
5.2 For streaming.
6. Using list files
7. Command line options
8. Support
1. Introduction.
----------------
This tool takes wav files, mp3 files, ogg files, aiff files etc, and converts them
to the .FSB format (FMOD Sample Bank).
It will compress them in the native format of the machine.
2. Using it to generate 1 FSB file, or multiple single FSB files!
--------------------------------------------------------------
If you look to the top of the dialog, you will see a menu item called 'Build Mode'.
In this you can tell FSBank to write out 1 packed FSB file with all your sounds in it,
or alternatively write out 1 FSB for each sound you provide. This is useful for streams.
- The default mode is 'Generate Single FSB File'
This means if you provide a source directory to compile from, it will compile every sound
in that directory structure recursively, into a single .FSB file.
This is mainly used for sample banks, or packing streams into a single file for indexed streaming.
- The second mode type is 'Generate Multiple FSB Files'
This mode means that for every sound in your specified source directory, it will generate
an equivalent FSB file in the specified destination directory. This would only realistically be
used for streams, as a sort of 'batch converter'.
It will build all files into the directory you specify by default. If you want to recreate
the directory structure from the source directory, click 'Rebuild source directory tree to
destination'
- The third mode is 'Generate Single Interleaved FSB file'
This mode means it will take all input files, and interleave them into one FSB file.
For example, a normal stereo stream is interleaved as LRLRLRLR etc.
This is what it would look like if you provided 2 mono files or 1 stereo file as the source.
If you specify more, for example 4 mono files, and a stereo file, the resulting FSB looks like
this : 123456123456123456.
What this means is multiple audio tracks can be played back as one stream, and seeking is eliminated.
Each channel within this multitrack stream can have its attributes modified (ie volume/pan) so you
can use this feature for interactive music, or mood based ambiences. Many other uses could be found.
3. Hit 'Build' and notice the RAM usage bar graph.
-----------------------------------------------
Press the big 'Build' button and it will start compiling.
Notice the RAM usage bar graph below. If you intend to load the FSB into ram for sample
playback (not streamed), then you will have to make sure the graph does not go red. This
means you will have overflowed sound ram and you will not fit all of your sounds in.
On PlayStation 2, SPU2 ram has 1,790kb available for sound if you are using full reverb.
If you uncheck 'Reverb Core0 enabled' or 'Reverb Core1 enabled' you gain 128k to give 1,918kb free.
If you uncheck 'Reverb Core1 enabled' and 'Reverb Core0 enabled' you gain 256k to give 2,046kb free.
Note disabling reverb has to be coupled in the code by using FSOUND_REVERB_FLAGS_CORE0 and/or
FSOUND_REVERB_FLAGS_CORE1 in the call to FSOUND_Init.
If you intend to use the FSB file(s) for streaming purposes, ignore the ram usage warnings as
streams can be of unlimited size.
4. Error dialog box
--------------------
When the build has completed, a list of warnings will appear.
'Memory for this platform has been exceeded'
If your usage is intended for static loading into memory for sample playback. You have overrun
the hardware memory.
If you intend to use the file(s) for streaming then ignore this message. On PlayStation 2, Streams
use 4k of SPU2 memory if targeted for SPU2 (and not IOP).
5. Using FSB files in your program.
-----------------------------------
5.1 As a static sample bank.
----------------------------
To load a bank use FMUSIC_LoadSong.
To get access to the individual samples (FSOUND_SAMPLE) use FMUSIC_GetSample.
The C header contains #defines to reference the sound from your code with FMUSIC_GetSample.
You can even preview a .FSB file from your program with FMUSIC_PlaySong!
It will simply play through all sounds in the bank sequentially and then stop.
5.2 For streaming.
------------------
To open an FSB file as a stream use FSOUND_Stream_OpenFile.
call FSOUND_Stream_Play to play the first stream in the FSB file.
call FSOUND_Stream_SetSubStream to make the stream seek to the relevant file.
use the #defines generated by FSBank in this function.
calling this will stop the stream if it is already playing.
FSOUND_Stream_SetSubStreamSentence can be used to 'stitch', or 'sentence' multiple substreams together.
6. Using list files
------------------------
You can specify a text file for the build source rather than a directory. This text file must contain
a list of the files you want to build into an FSB. Each file must start on a new line. You can also
specify sample defaults for each file in the list by appending them to the filename in a comma-seperated
list. Here's an example list file :
jungle.wav
goonie.wav, deffreq=22050, defvol=128, defpan=128, defpri= 128, varfreq=2000, varvol=128
freddo.wav, deffreq=44100, varfreq=4000, mindistance=500.0
blarg.wav, fsound_2d, fsound_loop_normal
The defaults that you can specify are :
deffreq Frequency in hz e.g. deffreq = 44100
defvol Volume (0 - 255) e.g. defvol = 255
defpan Pan (0 - 255) e.g. defpan = 128
defpri Priority (0 - 255) e.g. defpri = 128
varfreq Frequency variation in hz e.g. varfreq = 2000
varvol Volume variation (0 - 255) e.g. varvol = 128
varpan Pan variation (0 - 255) e.g. varpan = 64
fsound_2d See FSOUND_2D mode bit e.g. fsound_2d
fsound_hw2d See FSOUND_HW2D mode bit e.g. fsound_hw2d
fsound_hw3d See FSOUND_HW3D mode bit e.g. fsound_hw3d
fsound_loop_normal See FSOUND_LOOP_NORMAL mode bit e.g. fsound_loop_normal
fsound_loop_bidi See FSOUND_LOOP_BIDI mode bit e.g. fsound_loop_bidi
mindistance Minimum volume distance in "units" (See FSOUND_Sample_SetMinMaxDistance) e.g. mindistance = 1.0
maxdistance Maximum volume distance in "units" (See FSOUND_Sample_SetMinMaxDistance) e.g. maxdistance = 1000.0
7. Command Line Options
------------------------
Usage: fsbank <-o dest> <source> [-p ps2|gc|xbox|cross] [-f vag|gcadpcm|xadpcm|pcm|source] [-m s|m|i] [-d] [-r 0|1] [-h] [-b] [-?] [-a]
-o dest Destination FSB file/directory
source Source directory or list file
-p ps2|gc|xbox|cross Target platform (default = cross)
-f vag|gcadpcm|xadpcm|pcm|source|adpcm Target format (default = pcm)
-m s|m|i Build mode :
s = Single FSB (default)
m = Multiple FSBs
i = single Interleaved FSB
-d Rebuild dir structure (Multiple FSB only) (default =
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
wince下的FMOD声音库 (111个子文件)
fmod_bgnd.bmp 169KB
ear.bmp 2KB
speaker.bmp 1KB
ear.bmp 478B
speaker.bmp 334B
two.bmp 162B
one.bmp 162B
FMOD.chm 428KB
fsbanklib.chm 28KB
common.cpp 30KB
main.cpp 19KB
main.cpp 14KB
main.cpp 12KB
fmodsamplece.cpp 10KB
main.cpp 7KB
main.cpp 6KB
main.cpp 5KB
main.cpp 4KB
example.cpp 1KB
fmodce.dll 467KB
fmodce.dll 467KB
fmodce.dll 467KB
fmodce.dll 442KB
fmodce.dll 405KB
fmodce.dll 405KB
fmodce.dll 401KB
fmodce.dll 379KB
fmodce.dll 377KB
fmodce.dll 374KB
fmodce.dll 327KB
fmodce.dll 312KB
fmodce.dll 308KB
fmodce.dll 293KB
fmod.dll 158KB
gx.dll 9KB
example.dsp 4KB
fsbank.exe 384KB
fsbankcl.exe 384KB
fmod.h 73KB
fmod.h 72KB
fmoddyn.h 39KB
fsbanklib.h 6KB
common.h 3KB
fmodce.h 3KB
fmod_errors.h 2KB
fmod_errors.h 2KB
resource.h 1KB
resource.h 927B
resource.h 927B
resource.h 924B
newres.h 799B
newres.h 799B
newres.h 799B
newres.h 799B
newres.h 799B
newres.h 799B
newres.h 799B
newres.h 799B
resource.h 741B
resource.h 734B
resource.h 734B
resource.h 688B
fmodsamplece.h 344B
FSBANK.HLP 10KB
fmod.ico 4KB
fmodsamplece.ico 4KB
fmodvc.lib 57KB
fsbanklib.lib 53KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 50KB
fmodce.lib 49KB
fmodce.lib 49KB
fmodce.lib 49KB
fmodce.lib 49KB
fmodce.lib 49KB
fmodce.lib 49KB
fmodce.lib 49KB
fsbank.lib 46KB
simple.rc 4KB
record.rc 4KB
fmodsamplece.rc 4KB
fsb.rc 4KB
3d.rc 3KB
userstream.rc 3KB
dsp.rc 3KB
3d2.rc 2KB
invtro94.s3m 51KB
Revision.txt 77KB
READMECE.txt 10KB
readme.txt 8KB
3d2.vcp 34KB
userstream.vcp 33KB
simple.vcp 33KB
fsb.vcp 33KB
3d.vcp 33KB
共 111 条
- 1
- 2
资源评论
- zwh_20042013-10-30可以使用,谢谢!
- sxrenren20062013-07-09为什么压缩文件会损坏?
- bone_love2013-01-30测试,好用,调节音量有点麻烦。
- aa2897425202012-11-27学习中,谢谢
ltjdxr
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功