PicoPicoGameEngine

Quick Links

Sound Objects


Warning: Missing argument 2 for l(), called in /Users/yamagame/Sites/Documents/picopicoengine/en/api/index_sound.php on line 4 and defined in /Users/yamagame/Sites/Documents/phplabo/savepage.php on line 269

ppbgm

.preload()

ppbgm.preload(filename)
filename : string

.play()

ppbgm.play(filename)
filename : string

.stop()

ppbgm.stop([close])
[close] : boolean/optional

.pause()

ppbgm.pause()

.resume()

ppbgm.resume()

.rewind()

ppbgm.rewind()

.isPlaying()

playing = ppbgm.isPlaying()
playing : boolean

  • true
  • false

.volume()

ppbgm.volume(vol)
vol = ppbgm.volume()
vol : number

ppse

.volume()

ppse.volume(vol)
vol = ppse.volume()
vol : number

.play()

soundid = ppse.play(filename, [loop], [pitch], [pan], [gain])
soundid : number

[loop] : boolean

  • true
  • false
[pitch] : number

[pan] : number

[gain] : number

.stop()

ppse.stop(soundid)
soundid : number

.preload()

ppse.preload(filename)
filename : string

.unload()

ppse.unload(filename)
filename : string