WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsISound

IID:B01ADAD7-D937-4738-8508-3BD5946BF9C8
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void beep ( ) void init ( ) void play ( nsIURL URL ) void playSystemSound ( AString soundAlias )

void beep ( )


void init ( )

Not strictly necessary, but avoids delay before first sound. The various methods on nsISound call Init() if they need to.


void play ( nsIURL URL )

Arguments:
URL

void playSystemSound ( AString soundAlias )

For playing system sounds

Arguments:
soundAlias

Reference documentation is generated from Mozilla's source.