{"id":13661506,"url":"https://github.com/debox-dev/Unity_AudioRig","last_synced_at":"2025-04-25T02:33:31.539Z","repository":{"id":184819529,"uuid":"260674053","full_name":"debox-dev/Unity_AudioRig","owner":"debox-dev","description":"Unity3D Audio Utility","archived":false,"fork":false,"pushed_at":"2023-09-11T10:56:00.000Z","size":240,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T16:45:07.225Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debox-dev.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}},"created_at":"2020-05-02T11:38:09.000Z","updated_at":"2024-07-12T20:30:08.000Z","dependencies_parsed_at":"2024-01-14T14:31:40.587Z","dependency_job_id":null,"html_url":"https://github.com/debox-dev/Unity_AudioRig","commit_stats":null,"previous_names":["debox-dev/unity_audiorig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debox-dev%2FUnity_AudioRig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debox-dev%2FUnity_AudioRig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debox-dev%2FUnity_AudioRig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debox-dev%2FUnity_AudioRig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debox-dev","download_url":"https://codeload.github.com/debox-dev/Unity_AudioRig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250742112,"owners_count":21479734,"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-02T05:01:36.028Z","updated_at":"2025-04-25T02:33:30.766Z","avatar_url":"https://github.com/debox-dev.png","language":"C#","readme":"# DeBox AudioRig\n\nAudio control utility\n\n## Installation instructions\n### Quick Installation\nPut this in your `Packages/manigest.json` file\n```\n\"com.rsg.promises\": \"https://github.com/debox-dev/RSG_Promises.git\",\n\"com.debox.audiorig\": \"https://github.com/debox-dev/Unity_AudioRig.git\",\n```\n\n## Requirements\n- Unity 2019 or higher.\n- RSG Promises\n\n## Documentation\n[Documentation link](https://debox-dev.github.io/Unity_AudioRig/Docs/html/index.html)\n\n## Usage\n\n### Simple setup\n1. Create an empty game object\n2. Add the component AudioPlayer\n3. Make sure 'isMain' attribute of the AudioPlayer is turned on\n4. Done!\n\n### Basic audio clip playing\n```\nusing DeBox.AudioRig;\n```\n```\n[SerializeField] private AudioClip _myClip;\n\nprivate void Start()\n{\n    AudioPlayer.Main.Play(_myClip);\n}\n```\n\n### Looping\nUse the `PlayLoop` method\n```\nAudioPlayer.Main.PlayLoop(_myClip);\n```\n\n### Using the audio control when playing clips\n\n#### Fade the clip out\n```\n// Plays a clip in a loop, waits 3 seconds, then fades out the clip\nprivate IEnumerator PlayWaitAndFadeOutCoroutine()\n{\n    var audioControl = AudioPlayer.Main.PlayLoop(_myClip);\n    yield return new WaitForSeconds(3);\n    audioControl.FadeOut(3);\n}\n```\n\n#### Controlling clip volume at runtime\n```\nprivate void StartHumming()\n{\n    this._hummAudioControl = AudioPlayer.Main.PlayLoop(_hummLoopClip);\n}\n\nprivate void Update()\n{\n    // Play at 0.3 volume if the tutorial voice actor is speaking\n    this._hummAudioControl?.Volume = _isTutorialVoiceSpeaking ? 0.3f : 1f;\n}\n```\n\n\n#### Controlling pitch\n```\nvar control = AudioPlayer.Main.Play(_myClip);\ncontrol.Pitch = this._pressedKeyPitch;\n```\n\n#### Playing at a specific position\n```\nvar control = AudioPlayer.Main.Play(_myClip);\ncontrol.PlayAt(transform.position);\n```\n\n#### Following a transform while playing\n```\n// I am a buzzing be!\nvar control = AudioPlayer.Main.PlayLoop(_buzzLoop);\ncontrol.Follow(transform);\n```\n\nYou can stop following at any time with\n```\ncontrol.StopFollow();\n```\n","funding_links":[],"categories":["C\\#","Open Source Repositories"],"sub_categories":["Audio Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebox-dev%2FUnity_AudioRig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebox-dev%2FUnity_AudioRig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebox-dev%2FUnity_AudioRig/lists"}