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
??
}
Post
Replies
Boosts
Views
Activity
I'm trying to build a Universal Binary for use on Intel and Apple Silicon based Macs. However, under Xcode's Active Scheme list, for run targets all I see is "My Mac (Rosetta)" which suggests to me that my build will only support x86_64.
My Architectures list is set to "Standard Architectures (64-bit Intel and ARM)".
Any pro-tips?
(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.
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.