Jan Deinhard
Jan Deinhard

Reputation: 20195

What to do for C++ code with the AudioSession API being completely deprecated?

So the AudioSession API is completely deprecated in iOS 7.0. The Audio Session Services Reference refers to the AVAudioSession Class Reference for the Objective-C implementation of these functions.

Well my code is using the C AudioSession API and is written in C++. I would like to keep it that way if possible.

Which C API can I use to replace the deprecated functions? Is there any option?

Upvotes: 1

Views: 582

Answers (1)

hotpaw2
hotpaw2

Reputation: 70703

You can call Objective C class methods (such as those in the AVAudioSession Class) thru the Objective C runtime library, which is callable from regular C code.

Upvotes: 2

Related Questions