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 171117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:55:49+00:00 2026-05-11T12:55:49+00:00

This is the blurb accompanying the Audio Services function AudioServicesSetProperty. Its a bit over

  • 0

This is the blurb accompanying the Audio Services function AudioServicesSetProperty. Its a bit over my head. Can someone give me an example of how to actually use this. Thanks.

AudioServicesSetProperty Sets the value for a specified System Sound Services property.

OSStatus AudioServicesSetProperty (
AudioServicesPropertyID inPropertyID, UInt32 inSpecifierSize, const void *inSpecifier, UInt32 inPropertyDataSize, const void *inPropertyData );

Parameters:

inPropertyID: The property whose value you want to set.

inSpecifierSize: The size of the buffer pointed to by the inSpecifier parameter. Pass 0 if no specifier buffer is required.

inSpecifier: A pointer to a specifier buffer, if such a buffer is required by the property about which you want information. Pass NULL if no specifier is required.

inPropertyDataSize: The size, in bytes, of the buffer pointed to by the outPropertyData parameter.

inPropertyData: The property value you want to set.

  • 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. 2026-05-11T12:55:50+00:00Added an answer on May 11, 2026 at 12:55 pm

    If you are playing a short system sound (shorter than 30 seconds) using the System Sound Services mechanism (code would look something like the following)

    #include <AudioToolbox/AudioToolbox.h>      SystemSoundID aSoundID;  /* Setup */     SystemSoundID aSoundID;     OSStatus error =               AudioServicesCreateSystemSoundID((CFURLRef)aFileURL, &aSoundID);     if (error == kAudioServicesNoError) { // success         _soundID = aSoundID;     }  /* Play */     AudioServicesPlaySystemSound(aSoundID);  /* Dispose */     AudioServicesDisposeSystemSoundID(aSoundID); 

    You can use AudioServicesSetProperty to set two properties using this function.

    They are: kAudioServicesPropertyIsUISound = ‘isui’, kAudioServicesPropertyCompletePlaybackIfAppDies = ‘ifdi’

    kAudioServicesPropertyIsUISound, if it is set to 1 means that, for the audio file specified by a system sound passed in the inSpecifier parameter, the System Sound server respects the user setting in the Sound Effects preference and is silent when the user turns off sound effects.

    This property is set to 1 by default. Set it to 0 for the system sound to always play when passed to AudioServicesPlaySystemSound, regardless of the user’s setting in sound preferences.

    kAudioServicesPropertyCompletePlaybackIfAppDies, if it is set to 1 means that the audio file specified by a system sound passed in the inSpecifier parameter should finish playing even if the client application terminates. This could happen, for example, if the user quits or the application terminates unexpectedly while the sound is playing. The default is 0. That is, you must explicitly set this property’s value to 1 if you want the sound to complete playing even if the application terminates.

    EDIT: Upon re-reading your question, it seems it may be more ‘How do I set a property’ than ‘what does this thing do’ In this case, the following will be more useful:

    Assuming you set up the sound as I specified above, you could set this particular SystemSoundID object to ignore the ‘silent’ setting on the side of the phone by doing the following:

    UInt32 flag = 0; err = AudioServicesSetProperty(kAudioServicesPropertyIsUISound,                                sizeof(UInt32),                                &aSoundID,                                sizeof(UInt32),                                &flag); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following doesn't compile, how can I do this? I think the example shows
$(':input').blur(function () { $(this).css('border', 'solid 1px #ccc'); // Check if last input and do
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!
$(document).ready(function() { $('#username').focus(function() { $(this).val(''); }) $('#username').blur(function() { var l = $(this).val.length; if (l
I am working on a band blurb page, example here. The idea is to
I have a string vaguely like this: foo,bar,c;qual="baz,blurb",d;junk="quux,syzygy" that I want to split by
Can't get this textualiser effect to work - getting a blank screen. I have
My hobby project is getting over my head! I am using an XML parser,
In ASP.NET MVC 2 asynchronous controllers, we can do something like this: public class
I just wrote a whole blurb on how I reached this point, but figured

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.