Socket
Socket
Sign inDemoInstall

uupaa.audioclock.js

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uupaa.audioclock.js

WebAudio based high precision timer.


Version published
Weekly downloads
3
Maintainers
1
Install size
405 kB
Created
Weekly downloads
 

Readme

Source

AudioClock.js Build Status

npm

WebAudio based high precision timer.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/AudioClock.js"></script>
<script>
    var tickCallbacks = [tick, 100, 0];
    var clock = new AudioClock(tickCallbacks, { context: PlayableAudioContext, start: true });

    function tick(timeStamp,   // @arg Number - current time
                  deltaTime) { // @arg Number - delta time

        // your code here.

    }
</script>

Keywords

FAQs

Last updated on 03 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc