X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/source/Sound.html diff --git a/docs/source/Sound.html b/docs/source/Sound.html new file mode 100644 index 00000000..722c6c34 --- /dev/null +++ b/docs/source/Sound.html @@ -0,0 +1,28 @@ + + + The source code + + + + +
/** + * @class Ext.air.Sound + * + * @singleton + */ +Ext.air.Sound = { +
/** + * Play a sound. + * @param {String} file The file to be played. The path is resolved against applicationDirectory + * @param {Number} startAt (optional) A time in the sound file to skip to before playing + */ + play : function(file, startAt){ + var soundFile = air.File.applicationDirectory.resolvePath(file); + var sound = new air.Sound(); + sound.load(new air.URLRequest(soundFile.url)); + sound.play(startAt); + } +}; +
+ + \ No newline at end of file