Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9016863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:07:06+00:00 2026-06-16T04:07:06+00:00

I have a sample app in iOS for Audio capture from mic & Play

  • 0

I have a sample app in iOS for Audio capture from mic & Play in real time. I am tring to convert this app in macosx but found some error. When i tried to compile my app in macosx then it return error on “kAudioSessionCategory_PlayAndRecord”, “AudioSessionSetActive”

flag = kAudioSessionCategory_PlayAndRecord;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(flag), &flag);
//Float32 fflag = 1.0;
//AudioSessionSetProperty(kAudioSessionProperty_InputGainScalar, sizeof(fflag), &fflag);
flag = kAudioSessionMode_VoiceChat;
AudioSessionSetProperty(kAudioSessionProperty_Mode, sizeof(flag), &flag);

AudioSessionSetActive(true);

What will be equivalent code in macosx for the above line of code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:07:07+00:00Added an answer on June 16, 2026 at 4:07 am

    In short, you don’t need AudioSession on OS X—it’s role is to coordinate shared usage of the audio hardware on devices. On OS X, all apps have access to the audio hardware simultaneously. Indeed, if you check out AudioToolbox/AudioSession.h you’ll see __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_2_0); after all the functions—this means that AudioSession isn’t available on OS X.

    You can simply #ifdef out any AudioSession code in your project for your OS X build.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a sample map kit app for iOS. I have everything
I have a sample app using CoreData, and am now ready to convert my
I have a sample app written in Play and Scala talking to Amazon DynamoDB
This is a real newbie question. I have simple app that selects a picture
I have an iOS app that displays content from a sqlite db in a
i have a label in my ios app and . from the back end
I am a real n00b in developing iOS app. This is my first application
I downloaded the sample app from the latest facebook ios SDK. I set my
I have a native iOS app that can be called from Mobile Safari in
I have a sample app that looks like a social network iOS app. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.