iSqueak Wikki : ioBeep

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [424]

Most recent edit made on 2010-09-12 22:20:27 by JohnMcIntosh

Additions:
kSystemSoundID_UserPreferredAlert
kSystemSoundID_Vibrate or


Deletions:
TBD
kSystemSoundID_Vibrate or kSystemSoundID_UserPreferredAlert




Revision [191]

Edited on 2008-10-16 23:40:30 by JohnMcIntosh

Additions:
invokes SysBeep(1000)


Deletions:
SysBeep(1000)




Revision [190]

The oldest known version of this page was edited on 2008-10-16 23:40:06 by JohnMcIntosh

sqInt ioBeep(void)


Parms: NONE
return: NONE, fake return of zero
From: Interpreter
Why:
to beep

Responsibility:
Generally we use the most direct way to play an alert sound.
Some platforms may play this sound asynchronously.
This avoids having the Squeak VM startup the huge sound system to Beep.
Sadly the "self beep" now runs off to the sound system, you must call Beeper beepPrimitive to invoke this logic.

MacIntosh
os-9/OSXCarbon
OS-9 etc would play the sound and wait. In os-x it would play asynchronously. If you
had a beep/quit VM type of action then it was possible you would never hear the beep in os-x, as compared to os-9
SysBeep(1000)

Cocoa:
TBD

iPhone
kSystemSoundID_Vibrate or kSystemSoundID_UserPreferredAlert

Unix
XBell

Windows
call MessageBeep()

BUGS

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1144 seconds