Profile Photo
That is, will my render callback ever be called after AudioOutputUnitStop() returns? In other words will it be safe to free resources used by the render callback or do I need to add realtime safe communication between the stopping thread and the callback thread?   This question is intended for both macOS HAL Output and iOS Remote IO output units.… (Show more)
in Core Audio
Profile Photo
In an installer-free, non MAS mac app, I need to let the user do the equivalent of sudo (cp MyAudioDriver.driver /Library/Audio/Plug-Ins/HAL/ && killall coreaudiod)   so they request the installation of the optional component, see the standard “[App X] wants to make changes, enter a password to continue”  and the above happens with elevated… (Show more)
in Processes
Profile Photo
At some point (Swift 4?) I found it became possible to use dot notation for CoreMedia object properties, so code like this   let asbd = CMAudioFormatDescriptionGetStreamBasicDescription(CMSampleBufferGetFormatDescription(sampleBuffer)!)!.pointee   became let asbd = sampleBuffer.formatDescription!.audioStreamBasicDescription!.pointeeThis no… (Show more)
Profile Photo
UPDATE I don't want this to necessarily be an hls question, it's about multitrack video, so I could rephrase as how do I tell AVPlayerItemVideoOutput which video track to use from a multitrack local file? e.g. an mp4   Do I need to make multiple single track AVCompositions and play them in multiple AVPlayers? That might be fine, even though it's… (Show more)