OfflineContext.suspend
stops the progression of OfflineContext.currentTime
, but what effect does it have while rendering (OfflineContext.startRendering
)? What I want to do is start the rendering process, pause it, do some other task and resume it when the other task is done. While the rendering process is paused, the imminent AudioBuffer
should not be getting larger, meaning that when I export the AudioBuffer
into a wav file and play it, there should be no silence corresponding to the pause that was taken by the rendering process.
I have tried OfflineContext.suspend
while rendering and it does seem to add some silence in the resulting wav file, but perhaps I'm doing something wrong.
- How can I pause the rendering process?
- What is
OfflineContext.suspend
for?