Menu

A Mute Button Must Fail Closed: Recording App and Microphone Audio with ReplayKit
📰

A Mute Button Must Fail Closed: Recording App and Microphone Audio with ReplayKit

DEV Community: ios·mincho milev·7 days ago
#RqCARJlc
#devtoios#devto#dev#buffer#gain
Reading 0:00
15s threshold

A screen recording can look correct while sounding completely wrong. A tutorial needs narration above the application’s audio; a demonstration may need only system sound. Treating both inputs as one volume control makes those two jobs unnecessarily difficult.

In Reel Screen Recorder , the broadcast extension receives ReplayKit buffers and keeps their source identity until the writer dispatches them. The useful engineering detail is not the slider itself. It is what happens when transforming a buffer fails.

Keep source identity through the pipeline

The current SampleHandler.handleAudio distinguishes .audioMic from .audioApp and asks the shared settings for recordingGain(forMicrophone:) . It then passes the processed buffer, with its original source type , to BroadcastWriter .

The writer routes video, app audio, and microphone audio to separate capture functions. Its asset writer uses the MP4 container.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.