{"id":19529235,"url":"https://github.com/zrythm/libaudec","last_synced_at":"2025-04-26T11:34:28.221Z","repository":{"id":108236638,"uuid":"226176144","full_name":"zrythm/libaudec","owner":"zrythm","description":"A library for reading and resampling audio files","archived":false,"fork":false,"pushed_at":"2022-04-21T11:00:10.000Z","size":794,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T20:17:35.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zrythm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-05T19:41:05.000Z","updated_at":"2023-08-02T14:56:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"359b76f9-d22a-434b-bb1c-33fd76785b11","html_url":"https://github.com/zrythm/libaudec","commit_stats":{"total_commits":53,"total_committers":1,"mean_commits":53.0,"dds":0.0,"last_synced_commit":"e1003934f0bcc14af44366f1951c2a97a72e4835"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrythm%2Flibaudec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrythm%2Flibaudec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrythm%2Flibaudec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrythm%2Flibaudec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zrythm","download_url":"https://codeload.github.com/zrythm/libaudec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224032368,"owners_count":17244373,"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-11T01:23:04.239Z","updated_at":"2024-11-11T01:23:05.875Z","avatar_url":"https://github.com/zrythm.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"libaudec\n========\n\n[![builds.sr.ht status](https://builds.sr.ht/~alextee/zrythm.svg)](https://builds.sr.ht/~alextee/libaudec?)\n\nlibaudec (lib audio decoder) is a wrapper library\nover minimp3, sndfile and libsamplerate for reading\nand resampling audio files, based on Robin Gareus'\n`audio_decoder` code\n(https://github.com/x42/silan/tree/master/audio_decoder)\n\nlibaudec supports all formats supported by sndfile,\nin addition to MP3.\n\nThis library is meant to be linked in statically\nto larger projects.\n\nUntil version 1.0 is released, the API is subject\nto change.\n\n# Usage\n\nUse `#include \u003caudec/audec.h\u003e` in your C/C++\nproject and add a dependency to the library using\nthe pkg-config name `audec`.\n\nExample of loading a file into an interleaved\nfloat array at 44000Hz:\n\n    AudecInfo nfo;\n    AudecHandle * handle =\n      audec_open (filename, \u0026nfo);\n    if (!handle)\n      {\n        /* handle error */\n      }\n    float * out_frames = NULL;\n    ssize_t samples_read =\n      audec_read (\n        handle, \u0026out_frames, 44000);\n    if (samples_read \u003c 0)\n      {\n        /* handle error */\n      }\n    audec_close (handle);\n\nSee the header file for more info.\n\n# Building\n\nTo build only:\n\n    meson build\n    ninja -C build\n\nInstallation:\n\n    ninja -C build install\n\n# Patches/Issues\nSend email to dev at zrythm.org or open an issue in\nhttps://redmine.zrythm.org/projects/libaudec/issues\n\n# License\nlibaudec is released under the GNU Affero GPLv3+.\nSee the file COPYING for more details. Some files,\nwhere specified, are licensed under different\nlicenses.\n\n----\nCopyright (C) 2019-2020 Alexandros Theodotou\n\nCopying and distribution of this file, with or without modification,\nare permitted in any medium without royalty provided the copyright\nnotice and this notice are preserved.  This file is offered as-is,\nwithout any warranty.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrythm%2Flibaudec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrythm%2Flibaudec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrythm%2Flibaudec/lists"}