{"id":13743068,"url":"https://github.com/luciferous/Sound","last_synced_at":"2025-05-09T00:32:34.142Z","repository":{"id":66598573,"uuid":"2076441","full_name":"luciferous/Sound","owner":"luciferous","description":"Partial JS interface to ActionScript's Sound class","archived":false,"fork":false,"pushed_at":"2012-01-26T20:48:34.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T22:58:06.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luciferous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-20T06:07:35.000Z","updated_at":"2013-10-04T10:55:05.000Z","dependencies_parsed_at":"2023-02-20T07:30:28.144Z","dependency_job_id":null,"html_url":"https://github.com/luciferous/Sound","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciferous%2FSound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciferous%2FSound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciferous%2FSound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luciferous%2FSound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luciferous","download_url":"https://codeload.github.com/luciferous/Sound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171163,"owners_count":21865275,"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-03T05:00:39.782Z","updated_at":"2025-05-09T00:32:33.907Z","avatar_url":"https://github.com/luciferous.png","language":"ActionScript","readme":"Sound\n\nA Javascript wrapper around AS3 Sound.\n\n## Usage\n\nLoad a sound file and play it.\n\n    \u003cscript src=\"sound.js\"\u003e\n        Sound.initialize();\n        var s = new Sound();\n        s.load(\"testsound.mp3\");\n        s.play();\n    \u003c/script\u003e\n\nStream dynamically generated audio.\n\n    \u003cscript src=\"sound.js\"\u003e\n        Sound.initialize();\n        var s = new Sound();\n        var factor = (2 * Math.PI) / 44100.0;\n        var feed = function() {\n            var samples = [];\n            for (var i = 0; i \u003c 2048; i++) {\n                var sample = 1 + Math.sin(i * factor) * 32767;\n                samples.push(String.fromCharCode(sample));\n            }\n            s.buffer(samples.join(\"\"));\n            setTimeout(feed, 200);\n        };\n        feed();\n    \u003c/script\u003e\n","funding_links":[],"categories":["Multimedia"],"sub_categories":["Sound"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciferous%2FSound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluciferous%2FSound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluciferous%2FSound/lists"}