Post

Replies

Boosts

Views

Activity

Reply to AVCaptionRenderer
To answer your question: I am instantiating AVMutableCaption, modifying it and then supplying it to the AVCaptionRenderer. I am just using a playground right now, so each run is a new caption and renderer. The caption is not modified or used after renderer. I was able to get backgroundColor and fontStyle to work. AVCaptionRenderer - Modifying the render bounds has very unexpected results. I expect that the text is rendered in the supplied bounds. Instead the text seems to always be rendered at (0,0). AVMutableCaption.setFontWeight has no effect. AVMutableCaption.setDecoration(.lineThrough, ...) has no effect. AVMutableCaption.textAlignment has no effect. Changing the AVMutableCaption.region causes the text to not render at all. I can supply some playgrounds that demonstrate these problems if you like. AVCaptionRenderer is probably the most sparsely documented API I have ever seen. I can't imagine that it is actually being used by anybody in it's current state.
Jan ’22
Reply to Is AudioOutputUnitStop synchronous?
The contract isn't that the I/O Proc won't get called again after AudioOutputUnitStop is called, it is that it won't be called again after AudioOutputUnitStop returns. These aren't the same thing. If you call AudioOutputUnitStop from the I/O Proc then the I/O Proc will not be called again.
Aug ’23