Skip to content

Commit 58f3c0e

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

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

hvcc/generators/ir2c/SignalRFFT.py

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

1919
from .HeavyObject import HeavyObject
2020

21+
from hvcc.types.IR import IRSignalList
2122

2223
class SignalRFFT(HeavyObject):
2324

@@ -33,7 +34,7 @@ def get_C_file_set(cls) -> set:
3334
return {"HvSignalRFFT.h", "HvSignalRFFT.c", "pffft.h", "pffft.c"}
3435

3536
@classmethod
36-
def get_C_init(cls, obj_type: str, obj_id: int, args: Dict) -> List[str]:
37+
def get_C_init(cls, obj_type: str, obj_id: str, args: Dict) -> List[str]:
3738
return [
3839
"sRFFT_init(&sRFFT_{0}, &hTable_{1}, {2});".format(
3940
obj_id,
@@ -42,31 +43,31 @@ def get_C_init(cls, obj_type: str, obj_id: int, args: Dict) -> List[str]:
4243
]
4344

4445
@classmethod
45-
def get_C_onMessage(cls, obj_type: str, obj_id: int, inlet_index: int, args: Dict) -> List[str]:
46+
def get_C_onMessage(cls, obj_type: str, obj_id: str, inlet_index: int, args: Dict) -> List[str]:
4647
return [
4748
"sRFFT_onMessage(_c, &Context(_c)->sRFFT_{0}, {1}, m, NULL);".format(
4849
obj_id,
4950
inlet_index)
5051
]
5152

5253
@classmethod
53-
def get_C_process(cls, process_dict: Dict, obj_type: str, obj_id: int, args: Dict) -> List[str]:
54+
def get_C_process(cls, process_dict: IRSignalList, obj_type: str, obj_id: str, args: Dict) -> List[str]:
5455
if obj_type == "__rfft~f":
5556
return [
5657
"__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])
58+
process_dict.id,
59+
cls._c_buffer(process_dict.inputBuffers[0]),
60+
cls._c_buffer(process_dict.outputBuffers[0]),
61+
cls._c_buffer(process_dict.outputBuffers[1])
6162
)
6263
]
6364
elif obj_type == "__rifft~f":
6465
return [
6566
"__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])
67+
process_dict.id,
68+
cls._c_buffer(process_dict.inputBuffers[0]),
69+
cls._c_buffer(process_dict.inputBuffers[1]),
70+
cls._c_buffer(process_dict.outputBuffers[0])
7071
)
7172
]
7273
else:

0 commit comments

Comments
 (0)