{"id":21429003,"url":"https://github.com/samethope/sound-system","last_synced_at":"2025-03-16T21:42:40.207Z","repository":{"id":213539220,"uuid":"734321545","full_name":"SametHope/Sound-System","owner":"SametHope","description":"Versatile, efficient and simple audio system for Unity.  ","archived":false,"fork":false,"pushed_at":"2023-12-21T17:43:54.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T08:16:21.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SametHope.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T11:51:17.000Z","updated_at":"2023-12-21T12:45:14.000Z","dependencies_parsed_at":"2024-11-22T22:15:30.911Z","dependency_job_id":null,"html_url":"https://github.com/SametHope/Sound-System","commit_stats":null,"previous_names":["samethope/sound-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SametHope%2FSound-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SametHope%2FSound-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SametHope%2FSound-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SametHope%2FSound-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SametHope","download_url":"https://codeload.github.com/SametHope/Sound-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940062,"owners_count":20372044,"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-11-22T22:15:29.975Z","updated_at":"2025-03-16T21:42:40.171Z","avatar_url":"https://github.com/SametHope.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sound System\n\n Versatile, efficient and simple audio system for Unity. \n \n## Features\n\n- **No Configuration Required:** You don't need to do any configuration before using it, just include the files and you are ready to go.\n- **Pooling:** Both relevant gameobjects and coroutines are recycled when needed without destruction or initialization.\n- **Custom Component(s):** Ever wondered why Unity's Audio Source component only has the option to play sound on Awake? Yeah me too.\n- **Versatile:** With a single Sound scriptable object, configure audio clips, pitch range, cooldown, volume, pooling and more. \n- **Mixer Group Support:** Unlike most audio solutions, Sound System supports both Unity's mixer groups and custom volume and pitch settings.\n- **Contained:** With its own assembly definition and pooling system, it doesn't clutter your project or increase compile times.\n- **Fully Documented:** All code you can access is documented clearly and accurately.\n- **Custom Component Icons:** They are pretty cool.\n- **Open Source:** The code is open source.\n\n## Setup\n\n1. Get the scripts inside your project, ideally to the `Assets/Plugins/SametHope/SoundSystem` folder.\n2. Done.\n\n## Code Usage\n\n```csharp\n// Play sounds with Sound scriptable objects (recommended)\nSoundMaster.Play(SomeSound);\n\n// Play sounds with Sound scriptable objects at position\nSoundMaster.Play(SomeSound, transform.position);\n\n// Play sound with its name\nSoundMaster.Play(\"My Sound Scriptable Object\");\n\n// Play sound with its name at position\nSoundMaster.Play(\"My Sound Scriptable Object\", transform.position);\n\n// Cache the audio source\nAudioSource source = SoundMaster.Play(SomeSound);\n\n// Return a new Audio Source without playing or pooling it\nAudioSource mySpecial = SoundMaster.GetSpecial(SomeSound);\n\n// Return a new Audio Source with its name without playing or pooling it\nAudioSource myOtherSpecial = SoundMaster.GetSpecial(\"My Special Sound\");\n\n// Stop all playing sounds\nSoundMaster.Instance.ActiveSounds.ForEach(tuple =\u003e tuple.source.Stop());\n\n// Filter active sounds\nSoundMaster.Instance.ActiveSounds.First(soundDataTuple =\u003e soundDataTuple.sound.name == \"Ambiance\").source.Stop();\n```\n---\n## Component Usage\n\n![2023-12-21 15_25_49-Window](https://github.com/SametHope/Sound-System/assets/85421686/398223e2-4e10-435f-a963-7fe57ea6517d)\n\n\n![2023-12-21 15_24_57-Window](https://github.com/SametHope/Sound-System/assets/85421686/837c9862-26a7-48c9-9b82-59b261c2714c)\n\n## Sound Scriptable Object\n\n![2023-12-21 15_42_28-Window](https://github.com/SametHope/Sound-System/assets/85421686/e8ff8eb9-818b-4059-ab65-83fd8bf17cbd)\n\n![2023-12-21 15_25_25-Window](https://github.com/SametHope/Sound-System/assets/85421686/98aea982-9eac-4928-a3a4-977399c8796c)\n\n## Automatic Pooling\n\n![2023-12-21 15_26_38-Window](https://github.com/SametHope/Sound-System/assets/85421686/a8f7a782-a101-4867-831a-21d4393ae733)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamethope%2Fsound-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamethope%2Fsound-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamethope%2Fsound-system/lists"}