{"id":15722501,"url":"https://github.com/fuxfantx/acaudio","last_synced_at":"2026-02-05T06:31:08.469Z","repository":{"id":226557624,"uuid":"769025522","full_name":"Fuxfantx/AcAudio","owner":"Fuxfantx","description":"Aerials Audio System with miniaudio","archived":false,"fork":false,"pushed_at":"2025-03-22T08:57:39.000Z","size":6329,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"Stable","last_synced_at":"2025-06-10T17:57:18.710Z","etag":null,"topics":["aaudio","aerials","audio","coreaudio","defold","defold-extension","ogg-opus","opus","wasapi","wav"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"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/Fuxfantx.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,"zenodo":null}},"created_at":"2024-03-08T07:29:57.000Z","updated_at":"2025-04-03T16:34:06.000Z","dependencies_parsed_at":"2024-04-16T12:29:59.248Z","dependency_job_id":"e9d1d338-5e50-4f36-a3ba-647339469a64","html_url":"https://github.com/Fuxfantx/AcAudio","commit_stats":{"total_commits":111,"total_committers":2,"mean_commits":55.5,"dds":"0.018018018018018056","last_synced_commit":"fccdb2e97a7abef7ca87037aacb48b1f5e5cd131"},"previous_names":["fuxfantx/acaudio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fuxfantx/AcAudio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuxfantx%2FAcAudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuxfantx%2FAcAudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuxfantx%2FAcAudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuxfantx%2FAcAudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fuxfantx","download_url":"https://codeload.github.com/Fuxfantx/AcAudio/tar.gz/refs/heads/Stable","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fuxfantx%2FAcAudio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266160820,"owners_count":23885886,"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":["aaudio","aerials","audio","coreaudio","defold","defold-extension","ogg-opus","opus","wasapi","wav"],"created_at":"2024-10-03T22:08:09.713Z","updated_at":"2026-02-05T06:31:08.457Z","avatar_url":"https://github.com/Fuxfantx.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aerials Audio System\r\n\r\nA `miniaudio` binding for `Defold Engine`.\r\n\r\nOnly APIs used in `Aerials` are implemented. **Refer to** `api/acaudio.script_api` **for API usages.**\r\n\r\n***Note**: If you want to bundle a `Windows Application` with this extension, you may need to put a valid `MSVCRT.lib` file into the `lib/x86_64-win32` directory.*\r\n\r\n---\r\n\r\n### Example\r\n\r\nYou should implement your HitSound system **with a Unit Pool** like this:\r\n\r\n```lua\r\nlocal CreateUnit = AcAudio.CreateUnit\r\nlocal PlayUnit = AcAudio.PlayUnit\r\n\r\n-- Create the HitSound Unit Pool (some_src is created from AcAudio.CreateSource)\r\n--\r\nlocal HitSoundUnits, UnitCount\r\nlocal FirstUnit, UnitLen = CreateUnit(some_src)\r\nif FirstUnit then\r\n    HitSoundUnits = {FirstUnit}\r\n    --\r\n    -- Choose a reasonable filter interval,\r\n    -- And set the UnitCount according to it.\r\n    --\r\n    UnitCount = math.ceil(UnitLen / 50)            -- Filter Interval: 50ms\r\n    UnitCount = (UnitCount\u003e1) and UnitCount or 2   -- Use at least 2 Units\r\n    for i=2, UnitCount do\r\n        local u, l = CreateUnit(some_buf)\r\n        if u then\r\n            HitSoundUnits[#HitSoundUnits+1] = u\r\n        end\r\n    end\r\n    UnitCount = #HitSoundUnits\r\nend\r\n\r\n-- Encapsule the Playing Method with the Unit Pool Created above\r\n--\r\nlocal Which = 1\r\nlocal function hit()\r\n    PlayUnit(HitSoundUnits[Which], false)           -- Play the HintSound only once\r\n    Which = (Which==UnitCount) and 1 or (Which+1)   -- Update the counter\r\n    StopUnit(HitSoundUnits[Which], true)            -- Let the next Unit rewind to start\r\nend\r\n```\r\n\r\n---\r\n\r\n### Complying with Licenses Related\r\n\r\n- The extension part is under the `MIT` License.\r\n\r\n- For the `miniaudio` stuff included, the `MIT-0` License is chosen here:\r\n  \r\n  Copyright 2023 David Reid\r\n  \r\n  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.\r\n  \r\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n  \r\n  *See also: [miniaudio - A single file audio playback and capture library.](https://miniaud.io/index.html)*\r\n\r\n- library `ogg` `vorbis` `vorbisfile` `opus` and `opusfile` are included in this module for `OGG Vorbis` and `Opus` support. Licenses chosen are below.\r\n  \r\n  - [BSD 3-Clause License] ogg\r\n    \r\n    ```\r\n    Copyright (c) 2002, Xiph.org Foundation\r\n    \r\n    Redistribution and use in source and binary forms, with or without\r\n    modification, are permitted provided that the following conditions\r\n    are met:\r\n    \r\n    - Redistributions of source code must retain the above copyright\r\n    notice, this list of conditions and the following disclaimer.\r\n    \r\n    - Redistributions in binary form must reproduce the above copyright\r\n    notice, this list of conditions and the following disclaimer in the\r\n    documentation and/or other materials provided with the distribution.\r\n    \r\n    - Neither the name of the Xiph.org Foundation nor the names of its\r\n    contributors may be used to endorse or promote products derived from\r\n    this software without specific prior written permission.\r\n    \r\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\n    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r\n    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION\r\n    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\n    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r\n    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r\n    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r\n    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n    ```\r\n  \r\n  - [BSD 3-Clause License] vorbis \u0026 vorbisfile\r\n    \r\n    ```\r\n    Copyright (c) 2002-2020 Xiph.org Foundation\r\n    \r\n    Redistribution and use in source and binary forms, with or without\r\n    modification, are permitted provided that the following conditions\r\n    are met:\r\n    \r\n    - Redistributions of source code must retain the above copyright\r\n    notice, this list of conditions and the following disclaimer.\r\n    \r\n    - Redistributions in binary form must reproduce the above copyright\r\n    notice, this list of conditions and the following disclaimer in the\r\n    documentation and/or other materials provided with the distribution.\r\n    \r\n    - Neither the name of the Xiph.org Foundation nor the names of its\r\n    contributors may be used to endorse or promote products derived from\r\n    this software without specific prior written permission.\r\n    \r\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\n    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r\n    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION\r\n    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\n    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r\n    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r\n    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r\n    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n    ```\r\n  \r\n  - [BSD 3-Clause License] opus\r\n    \r\n    ```\r\n    Copyright 2001-2023 Xiph.Org, Skype Limited, Octasic,\r\n                        Jean-Marc Valin, Timothy B. Terriberry,\r\n                        CSIRO, Gregory Maxwell, Mark Borgerding,\r\n                        Erik de Castro Lopo, Mozilla, Amazon\r\n    \r\n    Redistribution and use in source and binary forms, with or without\r\n    modification, are permitted provided that the following conditions\r\n    are met:\r\n    \r\n    - Redistributions of source code must retain the above copyright\r\n    notice, this list of conditions and the following disclaimer.\r\n    \r\n    - Redistributions in binary form must reproduce the above copyright\r\n    notice, this list of conditions and the following disclaimer in the\r\n    documentation and/or other materials provided with the distribution.\r\n    \r\n    - Neither the name of Internet Society, IETF or IETF Trust, nor the\r\n    names of specific contributors, may be used to endorse or promote\r\n    products derived from this software without specific prior written\r\n    permission.\r\n    \r\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\n    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r\n    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER\r\n    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r\n    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r\n    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\r\n    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r\n    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r\n    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r\n    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n    \r\n    Opus is subject to the royalty-free patent licenses which are\r\n    specified at:\r\n    \r\n    Xiph.Org Foundation:\r\n    https://datatracker.ietf.org/ipr/1524/\r\n    \r\n    Microsoft Corporation:\r\n    https://datatracker.ietf.org/ipr/1914/\r\n    \r\n    Broadcom Corporation:\r\n    https://datatracker.ietf.org/ipr/1526/\r\n    ```\r\n  \r\n  - [BSD 3-Clause License] opusfile\r\n    \r\n    ```\r\n    Copyright (c) 1994-2013 Xiph.Org Foundation and contributors\r\n    \r\n    Redistribution and use in source and binary forms, with or without\r\n    modification, are permitted provided that the following conditions\r\n    are met:\r\n    \r\n    - Redistributions of source code must retain the above copyright\r\n    notice, this list of conditions and the following disclaimer.\r\n    \r\n    - Redistributions in binary form must reproduce the above copyright\r\n    notice, this list of conditions and the following disclaimer in the\r\n    documentation and/or other materials provided with the distribution.\r\n    \r\n    - Neither the name of the Xiph.Org Foundation nor the names of its\r\n    contributors may be used to endorse or promote products derived from\r\n    this software without specific prior written permission.\r\n    \r\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\n    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r\n    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION\r\n    OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\r\n    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r\n    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r\n    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r\n    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\r\n    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n    ```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuxfantx%2Facaudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuxfantx%2Facaudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuxfantx%2Facaudio/lists"}