cultofmetatron / webaudio-basics

playing around with the webaudio api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webaudio-basics

playing around with the webaudio api

to start a, initialize the object. open your console var AudioManager = requestModule('AudioManager'); var AudioFile = requestModule('AudioFile'); window.audioManager = new AudioManager(); audioManager.loadAudioObject('weatherman', new AudioFile('/sounds/The_Dada_Weatherman_-Circle_of_Sea.mp3', audioManager.context)); audioManager.loadAudioObject('feverDub', new AudioFile('/sounds/PDF-_Fever_Dub.mp3', audioManager.context));

audioManager.playBuffer('weatherman'); audioManager.playBuffer('feverDub');

About

playing around with the webaudio api


Languages

Language:JavaScript 99.9%Language:CSS 0.1%