I am trying to record screen with built-in tools on macOS and the lack of audio output is frustrating. It's possible to install 3rd-party software to do the job, but their source code have lots of c++ code which feels overcomplicated for such a simple task. How hard could it be to make it in Swift?
Asked
Active
Viewed 181 times
0
-
The topic of routing and recording system audio has been covered quite a few times on SO. I'd suggest looking at Blackhole, Soundflower for the routing side and any application capable of recording audio. https://stackoverflow.com/questions/18443621/mac-os-x-virtual-audio-driver/18595698#18595698 and https://stackoverflow.com/questions/65289111/get-macos-output-device-audio-buffers-in-realtime/65292316#65292316 seem relevant posts – fdcpp Feb 21 '21 at 09:46
-
Thx, but I am specifically interested in Swift. Soundflower is an abandoned project out-of-date. There is a working solution BackgroundMusic, but it's c++ and has too many features. I would like to see a simple solution. – Andrei Feb 21 '21 at 14:13
-
Just to be clear -- I am not looking for an existing huge thingy in c++. I would like to know how to make a super simple one myself in Swift if it's possible. – Andrei Feb 21 '21 at 14:15
-
1I'll be very happy to eat these words in the future as I think it would be useful, but I am not confident there is a low enough level access in swift to be able to access the audio thread (s), at least to the point of being able to grab audio buffers directly. That said, even if there is, I think this question would require a pretty complex answer and is not necessarily in the spirit of SO. – fdcpp Feb 21 '21 at 16:04