Package

purescript-howler

Repository
soupi/purescript-howler
License
MIT
Uploaded by
soupi
purescript-howler on Pursuit

purescript-howler

Binding for a subset of howlerjs

Status: Experimental

License: MIT

You'll need to download howlerjs and include it as a script in your index.html (or use CDN)

Example

module Main where

import Prelude (bind, Unit)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (log, CONSOLE)

import Audio.Howler as Howl

main :: forall e. Eff (howler :: Howl.HOWLER, console :: CONSOLE | e) Unit
main = do
  sound <- Howl.new (Howl.defaultProps { urls = ["audio/gling.mp3"] })
  Howl.play sound
  log "playing"

Link to API Documentation