{"id":19111123,"url":"https://github.com/tinyalsa/tinyalsa-cxx","last_synced_at":"2025-04-30T20:48:28.992Z","repository":{"id":141045217,"uuid":"93889989","full_name":"tinyalsa/tinyalsa-cxx","owner":"tinyalsa","description":"A pure C++14 ALSA library with no dependencies.","archived":false,"fork":false,"pushed_at":"2020-07-01T23:27:42.000Z","size":42,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T08:34:26.719Z","etag":null,"topics":["alsa","audio","cpp","cpp-library","cpp14","cpp14-library","linux","tinyalsa","tinyalsa-cxx"],"latest_commit_sha":null,"homepage":"","language":"C++","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/tinyalsa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2017-06-09T19:19:21.000Z","updated_at":"2024-09-19T23:47:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"af650d32-1d46-46f2-803c-f9dd16d13cdd","html_url":"https://github.com/tinyalsa/tinyalsa-cxx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa-cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa-cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa-cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyalsa%2Ftinyalsa-cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyalsa","download_url":"https://codeload.github.com/tinyalsa/tinyalsa-cxx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251781416,"owners_count":21642962,"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","audio","cpp","cpp-library","cpp14","cpp14-library","linux","tinyalsa","tinyalsa-cxx"],"created_at":"2024-11-09T04:27:19.274Z","updated_at":"2025-04-30T20:48:28.987Z","avatar_url":"https://github.com/tinyalsa.png","language":"C++","readme":"# tinyalsa-cxx\n\nA paper-thin C++ library for interfacing with ALSA.\n\n### Examples\n\nReading information on a PCM:\n\n```cxx\ntinyalsa::pcm pcm;\n\nauto open_result = pcm.open_capture_device();\nif (open_result.failed()) {\n  std::cerr \u003c\u003c open_result \u003c\u003c std::endl;\n  return;\n}\n\nstd::cout \u003c\u003c pcm.get_info();\n```\n\nReading audio data from a PCM:\n```cxx\n// This is a 16-bit integer stereo buffer.\nunsigned short int frames[1024];\nunsigned int frame_count = 2;\n\n// Error checking omitted for brevity.\ntinyalsa::interleaved_pcm_reader pcm_reader;\npcm_reader.open(); // Choose the device to open.\npcm_reader.setup(); // Apply hardware parameters\npcm_reader.prepare(); // Prepare the PCM to be started\npcm_reader.start(); // Begin recording\npcm_reader.read_unformatted(frames, frame_count); // Read recorded data\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyalsa%2Ftinyalsa-cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyalsa%2Ftinyalsa-cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyalsa%2Ftinyalsa-cxx/lists"}