{"id":13547547,"url":"https://github.com/HenrikJoreteg/SoundEffectManager","last_synced_at":"2025-04-02T20:30:23.975Z","repository":{"id":5725003,"uuid":"6936599","full_name":"HenrikJoreteg/SoundEffectManager","owner":"HenrikJoreteg","description":"A simple sound effect manager for playing sounds using the awesome HTML 5 Web Audio API","archived":false,"fork":false,"pushed_at":"2015-09-05T11:53:51.000Z","size":376,"stargazers_count":6,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T05:51:57.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HenrikJoreteg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-30T09:36:34.000Z","updated_at":"2021-10-15T19:58:04.000Z","dependencies_parsed_at":"2022-09-12T12:33:03.162Z","dependency_job_id":null,"html_url":"https://github.com/HenrikJoreteg/SoundEffectManager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikJoreteg%2FSoundEffectManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikJoreteg%2FSoundEffectManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikJoreteg%2FSoundEffectManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenrikJoreteg%2FSoundEffectManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenrikJoreteg","download_url":"https://codeload.github.com/HenrikJoreteg/SoundEffectManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246887737,"owners_count":20850135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:00:57.853Z","updated_at":"2025-04-02T20:30:23.370Z","avatar_url":"https://github.com/HenrikJoreteg.png","language":"JavaScript","funding_links":[],"categories":["🚀 A series of exquisite and compact web page cool effects"],"sub_categories":["Audio Effect"],"readme":"# SoundEffectManager\n\nIs just that. It's a simple sound effect manager for playing sounds using the awesome HTML 5 Web Audio API.\n\nIf you think I'm talking about `\u003caudio\u003e` tags, go read this: http://www.html5rocks.com/en/tutorials/webaudio/intro/\n\nIt's significantly better than `\u003caudio\u003e` tags for several reasons:\n\n- You don't have to create a tag for each sound you want to play\n- You can multiplex an effect without having to create duplicate tags\n- You can also control volume and add other effects\n\n\u003c!-- starthide --\u003e\nPart of the [Ampersand.js toolkit](http://ampersandjs.com) for building clientside applications.\n\u003c!-- endhide --\u003e\n\n## Installing\n\n`npm install sound-effect-manager`\n\n## Using it\n\n```js\n// just init the sound effect manager\nvar SoundEffectManager = require('sound-effect-manager');\n\nvar sm = new SoundEffectManager();\n\n// load some files by passing it a url and a name\nsm.loadFile('taps.mp3', 'taps');\nsm.loadFile('rocket.wav', 'rocket');\n\n// then play the sounds like so:\nsm.play('rocket');\n\n// or play a sound in looping mode:\nsm.play('taps', true);\n\n// and to stop a loop:\nsm.stop('taps');\n\n// that's it!\n```\n\n## License\n\nMIT\n\n## Credits\n\nBuilt (rather hastily) by [@HenrikJoreteg](http://twitter.com/henrikjoreteg) for use in [And Bang](http://andbang.com). Which you should totally check out if you work with a team, for anything, ever.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHenrikJoreteg%2FSoundEffectManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHenrikJoreteg%2FSoundEffectManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHenrikJoreteg%2FSoundEffectManager/lists"}