Post

Replies

Boosts

Views

Activity

Catalina macOS 10.15 - How to write audio applications?
Hi. I need a way to create something like vb-audio cable for Mac. So in other words, I need to be able to "capture" audio from application A (which I have no control over. could be quick time or any application that plays audio) and channel that into my own Mac application. (application B) I found an abandoned open source project called Soundflower that also does exactly what I need - it can be found here: https://github.com/mattingalls/Soundflower/tree/master/SoundflowerBed The main application Soundflower seems to create the virtual audio device?? And then the Soundflowerbed app seems to be the wrapper that has all the business logic to control the device. I tested using the installer - and it seems to work. It creates a virtual audio device on my machine. I am able to set sound flower as the default output device ... turn on the music / sound in application A... and then I can set the input device on application B to be the Soundflower device and voila. I can hear sound from application A inside app B. I started off by trying to just compile Soundflower kext on macos 10.15 ... and I managed to get it working (I'm not a Mac or c programmer) And now I was about to try to get Soundflowerbed also compiled. But I'm wondering if this is the right approach. Should I just reuse the kext and try to create a new application that wraps it? what SDK's / frameworks should I be using if I want to target macOS 10.15? there's a lot of good info on the developer site but I just don't know where to start reading. do I need IOKit? should I be reading avfoundations? Just a few pointers would be appreciated.
2
0
993
Oct ’20
Xcode 12 - build fails while trying to build kext
Background Information I'm trying to compile an open-source Xcode project found here:https://github.com/mattingalls/Soundflower I'm using Xcode version 12. I just opened the existing project file and changed a few of the compiler options. (selected gnu 14 and set the standard library to libc(LLVM C Standard Library with C 11 support)) Problem / Error Message When I try to build the project, this is the error message I'm getting: CpResource /Users/admin/Library/Developer/Xcode/DerivedData/Soundflower-dlboyjvoqqpljsbphfsdtbsgcuzd/Build/Products/Debug/Soundflower.kext /Users/admin/Documents/src/Soundflower/Build/InstallerRoot/Library/Extensions/Soundflower.kext/Contents/Resources/Soundflower.kext (in target 'Soundflower' from project 'Soundflower') 		cd /Users/admin/Documents/src/Soundflower/Source 		builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/Library/Developer/Xcode/DerivedData/Soundflower-dlboyjvoqqpljsbphfsdtbsgcuzd/Build/Products/Debug/Soundflower.kext /Users/admin/Documents/src/Soundflower/Build/InstallerRoot/Library/Extensions/Soundflower.kext/Contents/Resources error: destination '/Users/admin/Documents/src/Soundflower/Build/InstallerRoot/Library/Extensions/Soundflower.kext/Contents/Resources/Soundflower.kext' is inside source '/Users/admin/Documents/src/Soundflower/Build/InstallerRoot/Library/Extensions/Soundflower.kext' (not copied) (in target 'Soundflower' from project 'Soundflower') I noticed that the open source project comes with a build.rb file. So I tried to run that... and I'm getting the same results. Any tips would be appreciated. In the meantime, I'm googling for these types of copy errors on a Mac. Thanks.
0
0
656
Oct ’20
Apple newbie who needs to create / fix audio driver.
Hi there. I need to create something like this for Mac: https://github.com/mattingalls/Soundflower/releases/ Actually, I could use this as is .. but I guess I have to compile using latest Xcode or Swift(??) and I have to fix some bugs. Namely... when you use the audio cable.. I want the input to be mixed from all sources... The alternative is to write something new from scratching using the project as an example. There are a few odds against me..lol I'm new to apple everything. I'm also not an audio person. I also haven't done c++ programming in years. But I have a strong programming background. I just need some guidance I think to get started / make sure I head down the right path. I tried to just download the project and compile it as is using Xcode 12... on macOS Catalina 10.15.7 I'm getting a bunch of compile errors. But before I bury myself in trying to get it working, I have the following questions ( in no particular order) I'm wondering if this is the best approach? Just download and try to load in latest Xcode... see if I can compile and plough through the errors? IOkit - does that need to be downloaded separately to get the latest version? or can I assume my Mac already has it? should I create a new Xcode "IOKit Driver" project ... and then see if I can add the logic from the Soundflower project bit by bit? Also I just assumed that to modernise this project I would rebuild / use Xcode. But should I be considering swift? I am more familiar with Visual Studio ... could that be used instead? Ultimately this code will need to be wrapped ... to make it callable from a nodejs stack. (electron and react apps) I'm just a little lost right now .. trying to find my bearings. Any tips would be appreciated.
1
0
386
Oct ’20
Can't compile open source project in xcode
Hi there. I just downloaded Xcode 12... then I signed up for a developer account. I added my Apple ID... and the correct information about my name / profile appears under Xcode --> Preferences --> Accounts. when I select my Apple ID, under the team / role section, I see my name (Personal Team) and "User" as the role. When I click on manage certificates, I see an entry for my Mac mini. I can't seem to add / remove anything there. But when I try to build my project, I get an error that says that no account for team "XXXXXXX" (some random number) was found. and it also says I don't have a signing cert. I have my own team number but I don't where / how to associate it with Xcode. any help would be appreciated UPDATE: https://stackoverflow.com/questions/35674208/development-team-not-showing-in-xcode found my answer!
0
0
315
Oct ’20