{"id":19904420,"url":"https://github.com/alloc/react-native-sound","last_synced_at":"2026-05-18T09:05:36.440Z","repository":{"id":107078708,"uuid":"176835462","full_name":"alloc/react-native-sound","owner":"alloc","description":"Sound effect player for react-native-macos","archived":false,"fork":false,"pushed_at":"2019-07-06T16:39:22.000Z","size":51,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T11:02:37.229Z","etag":null,"topics":["react-native","react-native-macos"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/alloc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-20T23:59:15.000Z","updated_at":"2025-03-26T17:48:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce6596d1-a1cb-4de2-9534-301a4ecb02d1","html_url":"https://github.com/alloc/react-native-sound","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alloc/react-native-sound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Freact-native-sound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Freact-native-sound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Freact-native-sound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Freact-native-sound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alloc","download_url":"https://codeload.github.com/alloc/react-native-sound/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alloc%2Freact-native-sound/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["react-native","react-native-macos"],"created_at":"2024-11-12T20:28:20.613Z","updated_at":"2026-05-18T09:05:36.399Z","avatar_url":"https://github.com/alloc.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @alloc/react-native-sound\n\nSound effect player for [react-native-macos](https://github.com/ptmt/react-native-macos)\n\nCompatible with __macOS 10.13+__ only.\n\n```ts\nimport {Sound} from '@alloc/react-native-sound'\n\n// When a Sound is constructed, its source is pre-loaded.\nconst foo = new Sound({\n  source: require('./foo.wav'),\n  // Throttle the sound to once per second\n  timeout: 1000,\n  // The volume limit (between 0 and 1)\n  volume: 0.5,\n  // Mute the sound without modifying `volume`\n  muted: true,\n  // Called once the sound is ready to play\n  onLoad: () =\u003e {},\n  // Called when the sound fails to load\n  onError: (error) =\u003e {\n    // The default behavior\n    throw error\n  },\n})\n\n// Play once\nfoo.play()\n\n// Some options can be mutated after creation\nfoo.volume = 0\nfoo.muted = false\n\n// Release memory\nfoo.dispose()\n```\n\n## Notes\n\n⚠️  Audio must be `.wav` format (48kHz 32bit)\n\nThanks to [Starling](https://github.com/matthewreagan/Starling) for providing much of the native implementation.\n\nType definitions included!! (TypeScript only)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Freact-native-sound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falloc%2Freact-native-sound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falloc%2Freact-native-sound/lists"}