イベントサウンド

DefineSound

フィールドコメント
HeaderRECORDHEADERタグタイプ = 14
SoundIdUI16ID for this sound.
SoundFormatUB[4]Format of SoundData. See
“Audio coding formats”
on page 201.
SoundRateUB[2]The sampling rate. This is
ignored for Nellymoser and
Speex codecs.
5.5kHz is not allowed for MP3.
0 = 5.5 kHz
1 = 11 kHz
2 = 22 kHz
3 = 44 kHz
SoundSizeUB[1]Size of each sample. This
parameter only pertains to
uncompressed formats. This is
ignored for compressed
formats which always decode
to 16 bits internally.
0 = snd8Bit
1 = snd16Bit
SoundTypeUB[1]Mono or stereo sound
This is ignored for Nellymoser
and Speex.
0 = sndMono
1 = sndStereo
SoundSampleCountUI32Number of samples. Not
affected by mono/stereo
setting; for stereo sounds this is
the number of sample pairs.
SoundDataUI8[size of sound data]The sound data; varies by
format.

StartSound

フィールドコメント
HeaderRECORDHEADERタグタイプ = 15.
SoundIdUI16ID of sound character to play.
SoundInfoSOUNDINFOSound style information.

StartSound2

フィールドコメント
HeaderRECORDHEADERタグタイプ = 89.
SoundClassNameSTRINGName of the sound class to
play.
SoundInfoSOUNDINFOSound style information.

SOUNDINFO

フィールドコメント
ReservedUB[2]Always 0.
SyncStopUB[1]Stop the sound now.
SyncNoMultipleUB[1]Don’t start the sound if already
playing.
HasEnvelopeUB[1]Has envelope information.
HasLoopsUB[1]Has loop information.
HasOutPointUB[1]Has out-point information.
HasInPointUB[1]Has in-point information.
InPointIf HasInPoint, UI32Number of samples to skip at
beginning of sound.
OutPointIf HasOutPoint, UI32Position in samples of last
sample to play.
LoopCountIf HasLoops, UI16Sound loop count.
EnvPointsIf HasEnvelope, UI8Sound Envelope point count.
EnvelopeRecordsIf HasEnvelope,
SOUNDENVELOPE[EnvPoints]
Sound Envelope records.

SOUNDENVELOPE

フィールドコメント
Pos44UI32Position of envelope point
as a number of 44 kHz
samples. Multiply
accordingly if using a
sampling rate less than 44
kHz.
LeftLevelUI16Volume level for left
channel. Minimum is 0,
maximum is 32768.
RightLevelUI16Volume level for right
channel. Minimum is 0,
maximum is 32768.

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2013-10-27 (日) 17:36:49 (2889d)