DSP (File Format): Difference between revisions

Jump to navigation Jump to search
m
Fix syntaxhighlight
>Aruki
m (Fix syntaxhighlight)
Tag: Reverted
Line 110: Line 110:
[https://github.com/kode54/vgmstream/blob/master/src/coding/ngc_dsp_decoder.c vgmstream] used as reference:
[https://github.com/kode54/vgmstream/blob/master/src/coding/ngc_dsp_decoder.c vgmstream] used as reference:


<syntaxhighlight lang="c">static const s8 nibble_to_s8[16] = {0,1,2,3,4,5,6,7,-8,-7,-6,-5,-4,-3,-2,-1};
<syntaxhighlight lang="c">
static const s8 nibble_to_s8[16] = {0,1,2,3,4,5,6,7,-8,-7,-6,-5,-4,-3,-2,-1};


s8 get_low_nibble(u8 byte) {
s8 get_low_nibble(u8 byte) {
Line 162: Line 163:
     }
     }
   }
   }
}</syntaxhighlight>
}
</syntaxhighlight>


[[Category:Audio]]
[[Category:Audio]]
[[Category:Metroid Prime]]
[[Category:Metroid Prime]]
[[Category:Metroid Prime 2: Echoes]]
[[Category:Metroid Prime 2: Echoes]]

Navigation menu