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

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try this in your View instead: <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">… May 12, 2026 at 1:17 am
  • Editorial Team
    Editorial Team added an answer 730 megs after a few builds is not normal. Some… May 12, 2026 at 1:17 am
  • Editorial Team
    Editorial Team added an answer You don't need to use lckpwdf() unless you are planing… May 12, 2026 at 1:17 am

Related Questions

I have a site that usually has news items at the top of the
I want to use java.util.ConcurrentLinkedQueue as a non-durable queue for a Servlet. Here's the
I just wrote a whole blurb on how I reached this point, but figured
One of the things that has been talked about a few times on the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.