AudioFlinger: revert to threaded method

The TaskManager (asyncio) was jittery when under heavy CPU load.
This commit is contained in:
Thomas Farstrike
2025-12-17 20:07:51 +01:00
parent 4836db557b
commit e64b475b10
6 changed files with 96 additions and 42 deletions
+4 -3
View File
@@ -7,15 +7,16 @@ from mpos.testing import (
MockMachine,
MockPWM,
MockPin,
MockTaskManager,
create_mock_module,
MockThread,
MockApps,
inject_mocks,
)
# Inject mocks before importing AudioFlinger
inject_mocks({
'machine': MockMachine(),
'mpos.task_manager': create_mock_module('mpos.task_manager', TaskManager=MockTaskManager),
'_thread': MockThread,
'mpos.apps': MockApps,
})
# Now import the module to test