Skip to content

Commit e59499e

Browse files
committed
update signatures to latest dev
1 parent 4306e62 commit e59499e

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

hvcc/generators/ir2c/SignalRFFT.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
from .HeavyObject import HeavyObject
2020

21+
from hvcc.types.IR import IRSignalList
22+
2123

2224
class SignalRFFT(HeavyObject):
2325

@@ -33,7 +35,7 @@ def get_C_file_set(cls) -> set:
3335
return {"HvSignalRFFT.h", "HvSignalRFFT.c", "pffft.h", "pffft.c"}
3436

3537
@classmethod
36-
def get_C_init(cls, obj_type: str, obj_id: int, args: Dict) -> List[str]:
38+
def get_C_init(cls, obj_type: str, obj_id: str, args: Dict) -> List[str]:
3739
return [
3840
"sRFFT_init(&sRFFT_{0}, &hTable_{1}, {2});".format(
3941
obj_id,
@@ -42,31 +44,31 @@ def get_C_init(cls, obj_type: str, obj_id: int, args: Dict) -> List[str]:
4244
]
4345

4446
@classmethod
45-
def get_C_onMessage(cls, obj_type: str, obj_id: int, inlet_index: int, args: Dict) -> List[str]:
47+
def get_C_onMessage(cls, obj_type: str, obj_id: str, inlet_index: int, args: Dict) -> List[str]:
4648
return [
4749
"sRFFT_onMessage(_c, &Context(_c)->sRFFT_{0}, {1}, m, NULL);".format(
4850
obj_id,
4951
inlet_index)
5052
]
5153

5254
@classmethod
53-
def get_C_process(cls, process_dict: Dict, obj_type: str, obj_id: int, args: Dict) -> List[str]:
55+
def get_C_process(cls, process_dict: IRSignalList, obj_type: str, obj_id: str, args: Dict) -> List[str]:
5456
if obj_type == "__rfft~f":
5557
return [
5658
"__hv_rfft_f(&sRFFT_{0}, VIf({1}), VOf({2}), VOf({3}));".format(
57-
process_dict["id"],
58-
cls._c_buffer(process_dict["inputBuffers"][0]),
59-
cls._c_buffer(process_dict["outputBuffers"][0]),
60-
cls._c_buffer(process_dict["outputBuffers"][1])
59+
process_dict.id,
60+
cls._c_buffer(process_dict.inputBuffers[0]),
61+
cls._c_buffer(process_dict.outputBuffers[0]),
62+
cls._c_buffer(process_dict.outputBuffers[1])
6163
)
6264
]
6365
elif obj_type == "__rifft~f":
6466
return [
6567
"__hv_rifft_f(&sRFFT_{0}, VIf({1}), VIf({2}), VOf({3}));".format(
66-
process_dict["id"],
67-
cls._c_buffer(process_dict["inputBuffers"][0]),
68-
cls._c_buffer(process_dict["inputBuffers"][1]),
69-
cls._c_buffer(process_dict["outputBuffers"][0])
68+
process_dict.id,
69+
cls._c_buffer(process_dict.inputBuffers[0]),
70+
cls._c_buffer(process_dict.inputBuffers[1]),
71+
cls._c_buffer(process_dict.outputBuffers[0])
7072
)
7173
]
7274
else:

0 commit comments

Comments
 (0)