{"id":20027598,"url":"https://github.com/nonunknown/smart-audio-stream","last_synced_at":"2025-10-16T02:01:49.795Z","repository":{"id":110850383,"uuid":"272440770","full_name":"nonunknown/smart-audio-stream","owner":"nonunknown","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-15T13:28:52.000Z","size":5,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T17:24:42.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"GDScript","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/nonunknown.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":"2020-06-15T13:03:46.000Z","updated_at":"2025-01-10T12:22:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"8df86f48-a473-4563-8e72-b06e14e5a95d","html_url":"https://github.com/nonunknown/smart-audio-stream","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonunknown%2Fsmart-audio-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonunknown%2Fsmart-audio-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonunknown%2Fsmart-audio-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonunknown%2Fsmart-audio-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nonunknown","download_url":"https://codeload.github.com/nonunknown/smart-audio-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460046,"owners_count":19966516,"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-13T09:10:55.576Z","updated_at":"2025-10-16T02:01:49.719Z","avatar_url":"https://github.com/nonunknown.png","language":"GDScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Audio Stream\n\n* Godot 3.2\n\n## Description\n\nCurrently its only implemented for **AudioStreamPlayer3D**\nbut you can easily convert it just by changing:\n\n```\nextends AudioStreamPlayer3D # change 3D to 2D\n```\n\n## What this plugin does?\n\nSimple, think a jumping audio with a duration of 1 sec but your player takes only .5s to\ndo jumps, using the normal AudioStream it will cut the currently playing audio and start it again, with this plugin it knows if a sound is already playing and instead of cut and play again\nit will set another stream to play so you will hear the sounds without cutting them.\n\n## How to use?\n\n* Activate plugin\n* Create a Node searching by SmartAudioStream3D\n* set the initial amount of streams\n* set the array of audio samples (.wav or .ogg)\n* them with a reference to this node call `$SmartStream.play_audio(sample_index)`\n* Tips:\n``` \n# you can use a enum for easily refer the audio you want\n# suppose you have This tree\n# - KinematicBody (this script is here)\n#  L SmartAudioStream3D\n#  L OtherNodes\n# suppose too you have two audios on SmartAudio samples exported var [jump,talk]\n# use this:\n\nenum AUDIO {JUMP, TALK}\n\nfunc _ready():\n\t$SmartAudioStream3D.play_audio(AUDIO.TALK)\n\n```\n\n## How does it works behind the scenes?\nThe smartAudio stream class has:\n\n* initial_stream - (how many AudioStreamPlayer3D will be generated at _ready)\n* samples - Audio Files Array\n* play_audio(sample_idx) - play the audio according to samples array\n* the following are private:\n\t- _create_stream (generate streams to avoid audio cutting)\n\t- _play_last_stream (when all audios from array are playing it will generate a new stream and play the audio on it)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonunknown%2Fsmart-audio-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnonunknown%2Fsmart-audio-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonunknown%2Fsmart-audio-stream/lists"}