5
edits
BunnyNabbit (talk | contribs) (→Version: Add ALT text to image) |
(Add initial documentation for the extra string) |
||
Line 35: | Line 35: | ||
Since audio is stored in PCM, Interleaf files can be crudely listened to using Audacity's "Import Raw Data" feature. SI audio is always uncompressed mono PCM and is either 11025 Hz and 16-bit or 22050 Hz and 8-bit. Unfortunately, due to the aforementioned chunked/interleaved nature of SI files, the audio retrieved through this method will be noticeably glitchy and will require further processing (removal of chunk headers and any non-audio chunks) to extract clean PCM data. | Since audio is stored in PCM, Interleaf files can be crudely listened to using Audacity's "Import Raw Data" feature. SI audio is always uncompressed mono PCM and is either 11025 Hz and 16-bit or 22050 Hz and 8-bit. Unfortunately, due to the aforementioned chunked/interleaved nature of SI files, the audio retrieved through this method will be noticeably glitchy and will require further processing (removal of chunk headers and any non-audio chunks) to extract clean PCM data. | ||
== Extra string == | |||
Each object in the Interleaf file can have an extra string where additional information is stored. It is a list of key-value-pairs, although some keys do not use values and the keys are case-insensitive. To get each pair the string is split along one of the following characters: | |||
* <code>,</code> | |||
* Space | |||
* Tab | |||
* [https://en.wikipedia.org/wiki/Carriage_return Carriage return] | |||
* [https://en.wikipedia.org/wiki/Line_feed Line feed] | |||
* <code>:</code> | |||
Each item can then either be just present or have a value. In some cases the value can be further split with <code>:</code> or <code>;</code>. | |||
This is an incomplete list of existing extra information and their meaning: | |||
{| class="wikitable" | |||
! Key !! Description !! Values | |||
|- | |||
! colspan="3" | Controls | |||
|- | |||
| <code>STYLE</code> || Can specify how the controls handles a mouse click. <code>MAP</code> and <code>GRID</code> support additional values. || <code>MAP</code>, <code>GRID</code>, <code>TOGGLE</code> | |||
|- | |||
! colspan="3" | Meters (speed/fuel) | |||
|- | |||
| <code>FILLER_INDEX</code> || Used in meters (speed/fuel) to set the color for the fill used from the image's palette. || A number between 1 and 255 | |||
|- | |||
| <code>TYPE</code> || Determines in which direction the meter is filled. Even though all four directions are recognized <code>RIGHT_TO_LEFT</code> and <code>TOP_TO_BOTTOM</code> are not fully implemented. || <code>LEFT_TO_RIGHT</code>, <code>BOTTOM_TO_TOP</code>, <code>RIGHT_TO_LEFT</code>, <code>TOP_TO_BOTTOM</code> | |||
|- | |||
| <code>VARIABLE</code> || Specifies the variable which is used || The name of the variable | |||
|} | |||
== See also == | == See also == | ||
* [[JUKEBOX.SI]] | * [[JUKEBOX.SI]] | ||
* [[NOCD.SI]] | * [[NOCD.SI]] |
edits