Jump to content

XML:SNDD: Difference between revisions

503 bytes removed ,  19 February 2022
m
<Pitch>2</Pitch> The better fix for 44.1 kHz.
m (Neo's ambitions in documentation was catastrophic. I hope that will not repeat with OniX.)
m (<Pitch>2</Pitch> The better fix for 44.1 kHz.)
Line 23: Line 23:
: 16-bit uncompressed ('''PCM''') or compressed ('''MS-ADPCM''')
: 16-bit uncompressed ('''PCM''') or compressed ('''MS-ADPCM''')


:: Note of warning: imported 44.1 kHz sounds need NumberOfChannels 2 in grp file in order to get played in correct speed. Also, according to geyer the engine will play these sounds as 22.05 kHz. So there is actually no point in using 44.1 kHz other than that you maybe can skip conversion from 44.1 kHz mono to 22.05 kHz mono if you happen to have your sources files as 44.1 kHz.
:: Note of warning: 44.1 kHz sounds need <Pitch>2 in their '''grp''' files in order to get played at correct speed.  


|valign=top|
|valign=top|
Line 352: Line 352:
|valign="top"| <NumberOfChannels>
|valign="top"| <NumberOfChannels>
|valign="top"| int32
|valign="top"| int32
| Here you tell Oni if your sound file is mono or stereo. 44.1 kHz sounds in Windows are an exception.
| Here you tell Oni if your sound file is mono or stereo. For 44.1 kHz you additionally need to set <Pitch>2</Pitch>.


{|class="wikitable" width="100%"
{|class="wikitable" width="100%"
Line 363: Line 363:
|align="center"| 1
|align="center"| 1
|align="center"| 2
|align="center"| 2
|align="center"| '''2'''
|align="center"| '''1'''
|}
|}
;Consequences of wrong imports:
: If the .grp's <NumberOfChannels> is 1 and the sound file is 22.05 kHz stereo then the sound won't get played
: If the .grp's <NumberOfChannels> is 1 and the sound file is 44.1 kHz mono then the sound will play distorted


|-
|-
8,013

edits