Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set kAudioSessionMode_Measurement #37

Closed
rc1 opened this issue Oct 14, 2012 · 1 comment
Closed

How to set kAudioSessionMode_Measurement #37

rc1 opened this issue Oct 14, 2012 · 1 comment

Comments

@rc1
Copy link
Contributor

rc1 commented Oct 14, 2012

Hello,

Is it/would it be possible to set kAudioSessionMode_Measurement? I have tried add the following but it did not work.

// try to set the session mode
UInt32 sessionMode = kAudioSessionMode_Measurement;
CheckError( AudioSessionSetProperty (kAudioSessionMode_Measurement,
                                     sizeof (kAudioSessionMode_Measurement),
                                     &sessionMode), "Could not set mode");

Thanks,
Ross

@rc1
Copy link
Contributor Author

rc1 commented Oct 14, 2012

Ah, spotted my mistake. It should be the following. Is this something worth including in novocaine?

UInt32 sessionMode = kAudioSessionMode_Measurement;
CheckError( AudioSessionSetProperty (kAudioSessionProperty_Mode,
                                     sizeof (sessionMode),
                                     &sessionMode), "Could not set mode");

// Set the audio session active
CheckError( AudioSessionSetActive(YES), "Couldn't activate the audio session");

@rc1 rc1 closed this as completed Oct 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant