update audio render library
This commit is contained in:
parent
5d98af51de
commit
205c8f21fe
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
#encoding = utf8
|
#encoding = utf8
|
||||||
|
|
||||||
from .async_task_queue import AsyncTaskQueue
|
from .async_task_queue import AsyncTaskQueue
|
||||||
|
from .utils import mirror_index
|
||||||
|
10
utils/utils.py
Normal file
10
utils/utils.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#encoding = utf8
|
||||||
|
|
||||||
|
def mirror_index(size, index):
|
||||||
|
# size = len(self.coord_list_cycle)
|
||||||
|
turn = index // size
|
||||||
|
res = index % size
|
||||||
|
if turn % 2 == 0:
|
||||||
|
return res
|
||||||
|
else:
|
||||||
|
return size - res - 1
|
Loading…
Reference in New Issue
Block a user