mirror of
https://github.com/grp/Wii.py.git
synced 2025-06-18 14:55:35 -04:00
forgot to add fix for mono decoding
This commit is contained in:
parent
77f6e5b0e4
commit
ba6d307854
4
bns.py
4
bns.py
@ -551,13 +551,15 @@ class BNS(object):
|
||||
out_buffer = self.decode_adpcm(0, coeff0, buffer[data1_offset:data1_offset+8])
|
||||
for y in xrange(14):
|
||||
decoded_buffer_l[x*14+y] = out_buffer[y]
|
||||
if self.info.chan_cnt == 2:
|
||||
out_buffer = self.decode_adpcm(1, coeff1, buffer[data2_offset:data2_offset+8])
|
||||
for y in xrange(14):
|
||||
decoded_buffer_r[x*14+y] = out_buffer[y]
|
||||
data1_offset += 8
|
||||
data2_offset += 8
|
||||
data1_offset += 8
|
||||
for x in xrange(blocks * 14):
|
||||
decoded_buffer.append(decoded_buffer_l[x])
|
||||
if self.info.chan_cnt == 2:
|
||||
decoded_buffer.append(decoded_buffer_r[x])
|
||||
return decoded_buffer
|
||||
def eat(self, buffer, offset, decode=False):
|
||||
|
Loading…
Reference in New Issue
Block a user