Post

Replies

Boosts

Views

Activity

How to stream CMSampleBuffer to file in Swift?
I've been exploring the sample code from the ReplayKit sample code, here - https://developer.apple.com/documentation/replaykit/recording_and_streaming_your_macos_app. I'm essentially looking for a way to alter the below function to append the data from sampleBuffer to a file. I'm struggling to find relevant examples online or in the forums here. Any tips would be appreciated. func processAppAudioSample(sampleBuffer: CMSampleBuffer) {         print("Received an audio sample.") //Append sampleBuffer to file here ?? }
1
0
2.3k
Jul ’20
Record System Out Audio in macOS App
(This is a repost with more targeted tags, as was suggested in the original question, here - https://developer.apple.com/forums/thread/651974) I'm working on my corny macOS Trash Talker (App Store Link) and something I've wanted to add for a long time is an ability to record the audio output triggered by the app. The audio output caused by this app is from calls to the Text-to-Speech engine within macOS, so I'm not sure if this output audio qualifies as truly coming from my app. I'm happy to use either Swift or Objective-C solutions as my App uses both already. I've looked for solutions to this for a while and so far never found anything relevant. Help or suggestions would be most appreciated.
1
0
1.7k
Jul ’20
How to Record System Out Audio in macOS
I'm working on my corny macOS Trash Talker (App Store Link - https://apps.apple.com/ca/app/trash-talker/id1207969253?mt=12) and something I've wanted to add for a long time is an ability to record the audio output triggered by the app. The audio output caused by this app is from calls to the Text-to-Speech engine within macOS, so I'm not sure if this output audio qualifies as truly coming from my app. I'm happy to use either Swift or Objective-C solutions. I've looked for solutions to this for a while and so far never found anything relevant. Help or suggestions would be most appreciated.
2
0
2.6k
Jun ’20