{"_id":"audio-context","_rev":"25-8b1efcd641d70dce243314d8524b92d3","name":"audio-context","description":"A WebAudio Context singleton","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.0":{"name":"audio-context","description":"A WebAudio Context singleton","version":"0.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/audio-context.git"},"homepage":"https://github.com/juliangruber/audio-context","dependencies":{},"devDependencies":{"tape":"*"},"keywords":["webaudio","audio","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","bugs":{"url":"https://github.com/juliangruber/audio-context/issues"},"_id":"audio-context@0.0.0","dist":{"shasum":"f1f35e06b03df748fb1feed09b744137e81370e6","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-0.0.0.tgz","integrity":"sha512-6Wy3NS4XZhc9HLXesGTPrYAumeh2zmKf/q13j16VcvrBqLf3AynRY9xxHNZ2z+LCIKJmRxa0RNqA+ARlOlxdcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICR36JVxmGyqjAk8et+eHVxa1X4OxuH6w9zF5LuAu+qEAiB8FJNLHtPXG/e9mUr4vlryLszCfNSelDrLlm/oamhv+w=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."},"0.1.0":{"name":"audio-context","description":"A WebAudio Context singleton","version":"0.1.0","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/juliangruber/audio-context.git"},"homepage":"https://github.com/juliangruber/audio-context","dependencies":{"global":"~4.2.1"},"devDependencies":{"tape":"*"},"keywords":["webaudio","audio","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/juliangruber/audio-context/issues"},"_id":"audio-context@0.1.0","dist":{"shasum":"116ee83d566e10e7e845f29d9b1e1bc2ea3520d2","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-0.1.0.tgz","integrity":"sha512-PkXXfY2f96sZf/w8JWCQZn4hHgRK3lqXNRgIPO9JgdwLOyOecH7PAuYFjWdUEDbJ7BuXudTf0WJek7A+XAFyAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMR/HWBr7JysXfDjyDwpQOGZ70ufKkKuUN7XdzUolfLgIhAMzHQewndoIp/qnfI00eipM2CvWk/wD64EqxTAsf1jd8"}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."},"1.0.0":{"name":"audio-context","description":"A WebAudio Context singleton","version":"1.0.0","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/audiojs/audio-context.git"},"homepage":"https://github.com/audiojs/audio-context","dependencies":{"global":"^4.3.1"},"devDependencies":{"is-browser":"^2.0.1","tape":"*"},"keywords":["webaudio","audio","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"c65c9bc57bcd766ba7228762cff70ee0806b6e96","bugs":{"url":"https://github.com/audiojs/audio-context/issues"},"_id":"audio-context@1.0.0","_shasum":"4b665d27963c3675c29ddc9436946ad0dca48609","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"jamen","email":"jamenmarz+npm@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"}],"dist":{"shasum":"4b665d27963c3675c29ddc9436946ad0dca48609","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-1.0.0.tgz","integrity":"sha512-4Hf7yGE4zTCCL09YsAhENx66q9XISxrjLsIchY9f49fVYaw3HMc2I0Y8iFyH9QOYOUAN7+g9K9X3Jp8wAzUMLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCDf6n3H5VFxiVn/YLYJJrrSfj3yT8SHojGvy/IZ1l+gIhAL0aMR6hMbcb/O/iDF7Tsuasa2COofJdDCl3/xYqrxLY"}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/audio-context-1.0.0.tgz_1493512931748_0.49239392275922"},"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."},"1.0.1":{"name":"audio-context","description":"A WebAudio Context singleton","version":"1.0.1","scripts":{"test":"browserify test.js | tape-run"},"repository":{"type":"git","url":"git://github.com/audiojs/audio-context.git"},"homepage":"https://github.com/audiojs/audio-context","dependencies":{"global":"^4.3.1"},"devDependencies":{"browserify":"^14.3.0","is-browser":"^2.0.1","tape":"*","tape-run":"^3.0.0"},"keywords":["webaudio","audio","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"c0b5cd24a5d2e9ff6a54b0087690867e2c184601","bugs":{"url":"https://github.com/audiojs/audio-context/issues"},"_id":"audio-context@1.0.1","_shasum":"cec4db8ace6ef4aacbf10eef0977a4571468d4ab","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"jamen","email":"jamenmarz+npm@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"}],"dist":{"shasum":"cec4db8ace6ef4aacbf10eef0977a4571468d4ab","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-1.0.1.tgz","integrity":"sha512-b7ZmHGyjcAI3KmshPa4YSPxPbjglZQtKfZtzqhUfE3VeoANTsNffywkmujI32Sj31Aku/aB9s3BW4r3nmTF88g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaBPD4vhOqWTmlbuMjLA4zrUFpevGdPPwC4yt/05fh9gIhAPxbt0xM+cnWqcEYDA9nqby/nGF/RF0KWKCXsAse7h8u"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-context-1.0.1.tgz_1495552230998_0.8072761849034578"},"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."},"1.0.2":{"name":"audio-context","description":"A WebAudio Context singleton","version":"1.0.2","scripts":{"test":"browserify test.js | tape-run && node test"},"repository":{"type":"git","url":"git://github.com/audiojs/audio-context.git"},"homepage":"https://github.com/audiojs/audio-context","devDependencies":{"is-browser":"^2.0.1","tape":"*","tape-run":"^3.0.0"},"keywords":["webaudio","audio","audiojs","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"5cce34a20acec2f8eb8eef7ffdee675f8915ce6d","bugs":{"url":"https://github.com/audiojs/audio-context/issues"},"_id":"audio-context@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"integrity":"sha512-b47gUBkmiMOvy1Hg51pm+n8Ka9ykh4idNVrwcrHbU5mL/SCyY732KrY1aZvD+M3Ld/yzQ0NRQaU5M4r1rV0CGQ==","shasum":"2d2266583ac78d524c8fb14af82eb360b132d298","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiS11B39iAvUbwzNsrB7hTJofHRaYrME9j1WBfURncjAiAsRccfvsNEC8IfXw+qni0eisTKHYCSyLSEVDBb1l9S/A=="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"jamen","email":"jamenmarz+npm@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-context-1.0.2.tgz_1515683251567_0.31027306197211146"},"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."},"1.0.3":{"name":"audio-context","description":"A WebAudio Context singleton","version":"1.0.3","scripts":{"test":"browserify test.js | tape-run && node test"},"repository":{"type":"git","url":"git://github.com/audiojs/audio-context.git"},"homepage":"https://github.com/audiojs/audio-context","devDependencies":{"browserify":"^15.1.0","is-browser":"^2.0.1","tape":"*","tape-run":"^3.0.0"},"keywords":["webaudio","audio","audiojs","context","singleton"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"09b83d885433b6b2a6c4defdc2aabc7ab380c188","bugs":{"url":"https://github.com/audiojs/audio-context/issues"},"_id":"audio-context@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"integrity":"sha512-RH3/rM74f2ITlohhjgC7oYZVS97wtv/SEjXLCzEinnrIPIDxc39m2aFc6wmdkM0NYRKo1DMleYPMAIbnTRW0eA==","shasum":"aae5636691a8cdc15fc91059704cbc7c2fb7abf9","tarball":"https://registry.npmjs.org/audio-context/-/audio-context-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGs9XfzX26BTu8asXCXSyFsLjc7B7It6E/NK8UN+kVUwIhAMFSroDBMZpxcoBD6P5DZjAs4rbxvbS7BcRod9suPd5Y"}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"jamen","email":"jamenmarz+npm@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/audio-context-1.0.3.tgz_1515684895616_0.21141836768947542"},"directories":{},"deprecated":"Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package."}},"readme":"# audio-context [![Build Status](https://travis-ci.org/audiojs/audio-context.svg?branch=master)](https://travis-ci.org/audiojs/audio-context) [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges) [![Greenkeeper badge](https://badges.greenkeeper.io/audiojs/audio-context.svg)](https://greenkeeper.io/) [![npm](https://img.shields.io/npm/v/audio-context.svg)](https://www.npmjs.com/package/audio-context) [![license](https://img.shields.io/npm/l/audio-context.svg)](https://www.npmjs.com/package/audio-context)\r\n\r\nCreates a WebAudio context singleton with the given options. Returns `null` if not supported.\r\n\r\n\r\n## Example\r\n\r\n```js\r\nvar audioCtx = require('audio-context')()\r\n```\r\n\r\nYou can also create an [`OfflineAudioContext`](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext) in case you would like to process (faster) without any rendering.\r\n\r\n\r\n```js\r\nvar offlineContext = require('audio-context')({offline: true})\r\n```\r\n\r\n\r\n## Usage\r\n\r\n[![npm install audio-context](https://nodei.co/npm/audio-context.png?mini=true)](https://npmjs.org/package/audio-context/)\r\n\r\n#### `ctx = createContext(options|sampleRate)`\r\n\r\nReturns a singleton audio context for the given `sampleRate`.\r\n\r\nThe options:\r\n\r\n- `sampleRate` - if specified, will set the context sampleRate.\r\n- `latencyHint` - if specified, will control latency. One of `'balanced'`, `'playback'`, `'interaction'` (default) or number.\r\n- `offline` - if specified, will create [OfflineAudioContext](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext).\r\n- `length` - if specified, will set number of frames for offline context.\r\n- `channels` - if specified, will set number of channels for offline context.\r\n- `{...contextAttributes}` any other options for the context.\r\n\r\nHandles vendor prefixing for audio contexts. Returns `null` if we are not in a browser, or if the context is not available, or if there was an error creating the context.\r\n\r\n\r\n## Running tests\r\n\r\n```sh\r\n# Run tests in tape-run's default browser\r\nnpm test\r\n\r\n# Run in a specified browser.\r\n# See https://github.com/juliangruber/tape-run#runopts for options\r\nnpm test -- --browser firefox\r\n```\r\n\r\n\r\n## License\r\n\r\nMIT\r\n","maintainers":[{"email":"df.creative@gmail.com","name":"dfcreative"},{"email":"df.creative@gmail.com","name":"dy"},{"email":"me@jamen.dev","name":"jamen"},{"email":"julian@juliangruber.com","name":"juliangruber"}],"time":{"modified":"2022-06-13T03:43:38.004Z","created":"2013-12-14T03:37:35.192Z","0.0.0":"2013-12-14T03:37:36.426Z","0.1.0":"2014-07-29T09:08:07.104Z","1.0.0":"2017-04-30T00:42:12.365Z","1.0.1":"2017-05-23T15:10:31.909Z","1.0.2":"2018-01-11T15:07:31.676Z","1.0.3":"2018-01-11T15:34:56.516Z"},"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"repository":{"type":"git","url":"git://github.com/audiojs/audio-context.git"},"readmeFilename":"readme.md","users":{"rchk":true,"hq":true,"kareemfikry":true},"homepage":"https://github.com/audiojs/audio-context","keywords":["webaudio","audio","audiojs","context","singleton"],"bugs":{"url":"https://github.com/audiojs/audio-context/issues"},"license":"MIT"}