{"id":15003670,"url":"https://github.com/tinyalsa/tinyalsa","last_synced_at":"2025-05-14T21:06:52.037Z","repository":{"id":1526467,"uuid":"1797311","full_name":"tinyalsa/tinyalsa","owner":"tinyalsa","description":"Tiny library to interface with ALSA in the Linux kernel","archived":false,"fork":false,"pushed_at":"2024-11-28T02:09:47.000Z","size":848,"stargazers_count":630,"open_issues_count":25,"forks_count":307,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-05-07T00:25:12.055Z","etag":null,"topics":["alsa","c","linux-kernel","tinyalsa"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yahoo/locator-dust","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinyalsa.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":"2011-05-25T04:57:26.000Z","updated_at":"2025-04-28T00:58:59.000Z","dependencies_parsed_at":"2024-06-18T18:13:08.970Z","dependency_job_id":"fa533ecb-7f4d-4d6d-997a-804f3b172f72","html_url":"https://github.com/tinyalsa/tinyalsa","commit_stats":{"total_commits":444,"total_committers":83,"mean_commits":5.349397590361446,"dds":0.6486486486486487,"last_synced_commit":"4fbaeef03cd1cb216e0f356c0433ca70f8b9c464"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyalsa","download_url":"https://codeload.github.com/tinyalsa/tinyalsa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227612,"owners_count":22035669,"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":["alsa","c","linux-kernel","tinyalsa"],"created_at":"2024-09-24T19:00:06.067Z","updated_at":"2025-05-14T21:06:47.003Z","avatar_url":"https://github.com/tinyalsa.png","language":"C","readme":"TinyALSA\n========\n\n[![Build Status](https://travis-ci.org/tinyalsa/tinyalsa.svg?branch=master)](https://travis-ci.org/tinyalsa/tinyalsa)\n\nTinyALSA is a small library to interface with ALSA in the Linux kernel.\n\nThe aims are:\n\n - Provide a basic pcm and mixer API.\n - If it's not absolutely needed, don't add it to the API.\n - Avoid supporting complex and unnecessary operations, that could be\n   dealt with at a higher level.\n - Provide comprehensive documentation.\n\n### Building\n\nTinyALSA supports these build systems:\n\n - [CMake](https://en.wikipedia.org/wiki/CMake)\n - [Make](https://en.wikipedia.org/wiki/Make_(software))\n - [Meson](https://en.wikipedia.org/wiki/Meson_(software))\n - [Soong](https://android.googlesource.com/platform/build/soong/+/refs/heads/master/README.md) for Android\n\nTo build and install with Make, run the commands:\n\n```\nmake\nsudo make install\nsudo ldconfig\n```\n\n### Installing\n\nTinyALSA is now available as a set of the following [Debian](https://en.wikipedia.org/wiki/Debian)\npackages from [launchpad](https://launchpad.net/~taylorcholberton/+archive/ubuntu/tinyalsa):\n\n| Package Name:   | Description:                                        |\n|-----------------|-----------------------------------------------------|\n| tinyalsa        | Contains tinyplay, tinycap, tinymix and tinypcminfo |\n| libtinyalsa     | Contains the shared library                         |\n| libtinyalsa-dev | Contains the static library and header files        |\n\nTo install these packages, run the commands:\n\n```\nsudo apt-add-repository ppa:taylorcholberton/tinyalsa\nsudo apt-get update\nsudo apt-get install tinyalsa\nsudo apt-get install libtinyalsa-dev\n```\n\n### Documentation\n\nOnce installed, the man pages are available via:\n\n```\nman tinyplay\nman tinycap\nman tinymix\nman tinypcminfo\nman libtinyalsa-pcm\nman libtinyalsa-mixer\n```\n\n### Test\n\nTo test libtinyalsa, please follow the instructions,\n\n#### Setup Bazel build environment\n\nVisit [here](https://docs.bazel.build/versions/3.7.0/install.html) to get more info to setup Bazel environment.\n\n#### Insert loopback devices\n\nThe test program does pcm_* operations on loopback devices. You have to insert loopback devices after your system boots up.\n\n```\nsudo modprobe snd-aloop\nsudo chmod 777 /dev/snd/*\n```\n\n#### Run test program\n\n```\nbazel test //:tinyalsa_tests --test_output=all\n```\n\nThe default playback device is hw:2,0 and the default capture device is hw:2,1. If your loopback devices are not hw:2,0 and hw:2,1, you can specify the loopback device.\n\n```\nbazel test //:tinyalsa_tests --test_output=all \\\n    --copt=-DTEST_LOOPBACK_CARD=[loopback card] \\\n    --copt=-DTEST_LOOPBACK_PLAYBACK_DEVICE=[loopback playback device] \\\n    --copt=-DTEST_LOOPBACK_CAPTURE_DEVICE=[loopback capture device]\n```\n\n#### Generate coverage report\n\n```\nbazel coverage //:tinyalsa_tests --combined_report=lcov --test_output=all\ngenhtml bazel-out/_coverage/_coverage_report.dat -o tinyalsa_tests_coverage\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyalsa%2Ftinyalsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyalsa%2Ftinyalsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyalsa%2Ftinyalsa/lists"}