ADC Home > Reference Library > Technical Q&As > Audio > Carbon >
Not Recommended Document
Important: The information in this document is Not Recommended and should not be used for new development.
Current information on this Reference Library topic can be found here:
Technical Q&A SND18
Synchronous SysBeep
|
Q: With Sound Manager 3.1 the system beep,
SysBeep , became asynchronous. For my particular
application I need to wait until the SysBeep is done
playing the sound before I want to continue. How do I get the
functionality of the old synchronous SysBeep ?
A: The answer to getting a synchronous
SysBeep is very simple, and doesnt involve you trying to
figure out how long to wait. Just ask the Sound Manager to play
SysBeep synchronously and it will.
OSErr MakeSysBeepSynchronous (SInt16 *oldState) {
OSErr err;
SndGetSysBeepState (oldState);
err = SndSetSysBeepState (sysBeepEnable | sysBeepSynchronous);
return err;
}
|
[Oct 05 1999]
|
We’re sorry, an error has occurred.
Please try submitting your feedback later.
Thank you for providing feedback!
Your input helps improve our developer documentation.