フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 14 |
SoundId | UI16 | ID for this sound. |
SoundFormat | UB[4] |
Format of SoundData. See “Audio coding formats” on page 201. |
SoundRate | UB[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 |
SoundSize | UB[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 |
SoundType | UB[1] |
Mono or stereo sound This is ignored for Nellymoser and Speex. 0 = sndMono 1 = sndStereo |
SoundSampleCount | UI32 |
Number of samples. Not affected by mono/stereo setting; for stereo sounds this is the number of sample pairs. |
SoundData | UI8[size of sound data] |
The sound data; varies by format. |
フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 15. |
SoundId | UI16 | ID of sound character to play. |
SoundInfo | SOUNDINFO | Sound style information. |
フィールド | 型 | コメント |
Header | RECORDHEADER | タグタイプ = 89. |
SoundClassName | STRING |
Name of the sound class to play. |
SoundInfo | SOUNDINFO | Sound style information. |
フィールド | 型 | コメント |
Reserved | UB[2] | Always 0. |
SyncStop | UB[1] | Stop the sound now. |
SyncNoMultiple | UB[1] |
Don’t start the sound if already playing. |
HasEnvelope | UB[1] | Has envelope information. |
HasLoops | UB[1] | Has loop information. |
HasOutPoint | UB[1] | Has out-point information. |
HasInPoint | UB[1] | Has in-point information. |
InPoint | If HasInPoint, UI32 |
Number of samples to skip at beginning of sound. |
OutPoint | If HasOutPoint, UI32 |
Position in samples of last sample to play. |
LoopCount | If HasLoops, UI16 | Sound loop count. |
EnvPoints | If HasEnvelope, UI8 | Sound Envelope point count. |
EnvelopeRecords |
If HasEnvelope, SOUNDENVELOPE[EnvPoints] |
Sound Envelope records. |
フィールド | 型 | コメント |
Pos44 | UI32 |
Position of envelope point as a number of 44 kHz samples. Multiply accordingly if using a sampling rate less than 44 kHz. |
LeftLevel | UI16 |
Volume level for left channel. Minimum is 0, maximum is 32768. |
RightLevel | UI16 |
Volume level for right channel. Minimum is 0, maximum is 32768. |