{"id":24822107,"url":"https://github.com/sebbekarlsson/akit","last_synced_at":"2025-07-21T17:32:46.425Z","repository":{"id":81577785,"uuid":"527021876","full_name":"sebbekarlsson/akit","owner":"sebbekarlsson","description":"3D audio engine","archived":false,"fork":false,"pushed_at":"2023-06-05T22:29:56.000Z","size":12821,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T20:46:33.596Z","etag":null,"topics":["3d-audio","audio","audio-engine","binaural"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebbekarlsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-08-20T19:33:11.000Z","updated_at":"2025-01-01T11:46:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc4ae53c-29b9-4084-aba7-afe1dd193f90","html_url":"https://github.com/sebbekarlsson/akit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sebbekarlsson/akit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fakit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fakit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fakit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fakit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebbekarlsson","download_url":"https://codeload.github.com/sebbekarlsson/akit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebbekarlsson%2Fakit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266342809,"owners_count":23914262,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["3d-audio","audio","audio-engine","binaural"],"created_at":"2025-01-30T18:05:40.759Z","updated_at":"2025-07-21T17:32:46.408Z","avatar_url":"https://github.com/sebbekarlsson.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Akit (Audio kit)\n\u003e 3D Audio engine for Linux\n\n## Dependencies\n\u003e Currently, the only driver supported is `alsa`.\n\n## Example usage\n```C\n#include \u003cakit/engine.h\u003e\n\nint main(int argc, char* argv[]) {\n  // setup configuration\n  AkitDriverConfig config = {0};\n  config.sample_rate = 44100;\n  config.frame_length = 512;\n  config.type = AKIT_DRIVER_TYPE_ASOUND;\n\n  // initialize engine\n  AkitEngine engine = {0};\n  akit_engine_init(\u0026engine, (AkitEngineConfig){.driver_config = config,\n                                               .max_sounds = 10,\n                                               .normalize_stereo = true});\n\t\t\t\t\t\t\t\t\t\t\t   \n  // update or set where listener is\n  akit_engine_set_listener(\u0026engine, (AkitListener){.forward = VEC3(0, 0, 1),\n                                                   .up = VEC3(0, 1, 0),\n                                                   .position = VEC3(0, 0, 0)});\n  \n  // start engine\n  akit_engine_start(\u0026engine);\n  \n \n  // emit sound\n  akit_engine_push_sound(\u0026engine, (AkitSound){\n    .data = wav.data, // raw data from wav file\n    .length = wav.length,\n    .sample_rate = wav.header.sample_rate,\n    .position = VEC3(16.0f, 0.0f, 1.0f),  // position where sound is supposed to origin\n    .duration = fmax(wav.duration, 0.5f),\n    .channels = wav.header.channels,\n    .block_align = wav.header.block_align,\n    .gain = 1.0f // gain (0 to 1)\n  });\n \n  // wait for engine to finish playing audio\n  while (akit_engine_is_playing(\u0026engine)) {\n    akit_msleep(10);\n  }\n  \n  // stop and destroy engine\n  akit_engine_stop(\u0026engine);\n  akit_engine_destroy(\u0026engine);\n\n  return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbekarlsson%2Fakit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebbekarlsson%2Fakit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebbekarlsson%2Fakit/lists"}