Noitidart Noitidart - 1 year ago 168
Objective-C Question

AVAudioSession on desktop?

On mac desktop I was trying to record system sound (and optionally microphone sound - but for starting I was just doing system sound).

I was following this guide -

However I keep getting: fatal error: 'AVFoundation/AVAudioSession.h' file not found


I am compiling with:

gcc -framework Cocoa -framework Foundation -framework Carbon -framework AppKit -framework AVFoundation -lstdc++ -o songifier

Does anyone know how to use
this from desktop to record system audio?

Answer Source

There is no AVAudioSession for the desktop - that code will have to be excluded from anything you compile for macos.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download