update audio render library

This commit is contained in:
jiegeaiai 2024-10-15 07:58:22 +08:00
parent 5d98af51de
commit 205c8f21fe
4 changed files with 11 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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
View 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