actually add the sound test
This commit is contained in:
Родитель
bd8f3136e9
Коммит
bf635c1ce4
|
@ -49,6 +49,8 @@ EXPORT_RESOURCE_SAMPLES := \
|
|||
$(srcdir)/samples/bg.jpg \
|
||||
$(srcdir)/samples/checkboxTest.xul \
|
||||
$(srcdir)/samples/beeptest.html \
|
||||
$(srcdir)/samples/soundtest.html \
|
||||
$(srcdir)/samples/test.wav \
|
||||
$(NULL)
|
||||
|
||||
EXPORT_RESOURCE_THROBBER := \
|
||||
|
|
|
@ -148,6 +148,8 @@ install:: $(PROGRAM)
|
|||
$(MAKE_INSTALL) samples\bg.jpg $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\checkboxTest.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\beeptest.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\soundtest.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\test.wav $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\test10.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\test11.html $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\test12.html $(DIST)\bin\res\samples
|
||||
|
@ -230,6 +232,8 @@ clobber::
|
|||
rm -f $(DIST)\bin\res\samples\bg.jpg
|
||||
rm -f $(DIST)\bin\res\samples\checkboxTest.xul
|
||||
rm -f $(DIST)\bin\res\samples\beeptest.html
|
||||
rm -f $(DIST)\bin\res\samples\soundtest.html
|
||||
rm -f $(DIST)\bin\res\samples\test.wav
|
||||
rm -f $(DIST)\bin\res\samples\test10.html
|
||||
rm -f $(DIST)\bin\res\samples\test11.html
|
||||
rm -f $(DIST)\bin\res\samples\test12.html
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Sound Service Play Example</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
var filespec = Components.classes["component://netscape/filespec"].createInstance();
|
||||
filespec = filespec.QueryInterface(Components.interfaces.nsIFileSpec);
|
||||
filespec.URLString = "file://res/samples/test.wav";
|
||||
|
||||
var sample = Components.classes["component://netscape/sound"].createInstance();
|
||||
sample = sample.QueryInterface(Components.interfaces.nsISound);
|
||||
</script>
|
||||
|
||||
<form name="form">
|
||||
<input type="button" value="Play Sound" onclick="sample.Play(filespec);">
|
||||
<form>
|
||||
</body>
|
||||
</html>
|
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче