mirror of
https://github.com/google/liblc3.git
synced 2026-04-22 07:34:49 +00:00
Improvement: LTPF now work on decoded ring buffer
This commit is contained in:
@@ -302,7 +302,7 @@ class LtpfSynthesis(Ltpf):
|
||||
|
||||
max_pitch_12k8 = 228
|
||||
max_pitch = max_pitch_12k8 * T.SRATE_KHZ[self.sr] / 12.8
|
||||
max_pitch = np.ceil(max_pitch).astype(np.int)
|
||||
max_pitch = np.ceil(max_pitch).astype(int)
|
||||
|
||||
self.x = np.zeros(ns)
|
||||
self.y = np.zeros(max_pitch + len(self.C_D[0]))
|
||||
@@ -435,7 +435,7 @@ def initial_state():
|
||||
|
||||
def initial_sstate():
|
||||
return { 'active': False, 'pitch': 0,
|
||||
'c': np.zeros((12,2)), 'x': np.zeros(12) }
|
||||
'c': np.zeros(2*12), 'x': np.zeros(12) }
|
||||
|
||||
### ------------------------------------------------------------------------ ###
|
||||
|
||||
|
||||
Reference in New Issue
Block a user