{"id":17928536,"url":"https://github.com/hartwork/audio_pump_demo","last_synced_at":"2025-04-03T09:43:53.127Z","repository":{"id":136768310,"uuid":"584840583","full_name":"hartwork/audio_pump_demo","owner":"hartwork","description":":studio_microphone: Demos pumping audio from the microphone to headphones/speakers in C99 for PulseAudio, PortAudio and SDL 2","archived":false,"fork":false,"pushed_at":"2024-10-28T22:41:31.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T23:15:56.391Z","etag":null,"topics":["audio","audio-player","audio-processing","audio-recorder","c","c99","microphone","microphone-audio-capture","microphone-audio-recorder","microphone-to-speaker","portaudio","pulseaudio","sdl","sdl2"],"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/hartwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-03T16:44:49.000Z","updated_at":"2024-10-28T22:41:28.000Z","dependencies_parsed_at":"2023-09-05T09:00:41.093Z","dependency_job_id":"73c7e5dc-c35a-4e3e-bb43-4c62ea59fc83","html_url":"https://github.com/hartwork/audio_pump_demo","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/hartwork%2Faudio_pump_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Faudio_pump_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Faudio_pump_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hartwork%2Faudio_pump_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hartwork","download_url":"https://codeload.github.com/hartwork/audio_pump_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981151,"owners_count":20863825,"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":["audio","audio-player","audio-processing","audio-recorder","c","c99","microphone","microphone-audio-capture","microphone-audio-recorder","microphone-to-speaker","portaudio","pulseaudio","sdl","sdl2"],"created_at":"2024-10-28T21:03:53.613Z","updated_at":"2025-04-03T09:43:53.099Z","avatar_url":"https://github.com/hartwork.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build on Linux](https://github.com/hartwork/audio_pump_demo/actions/workflows/linux.yml/badge.svg)](https://github.com/hartwork/audio_pump_demo/actions/workflows/linux.yml)\n[![Enforce clang-format](https://github.com/hartwork/audio_pump_demo/actions/workflows/clang-format.yml/badge.svg)](https://github.com/hartwork/audio_pump_demo/actions/workflows/clang-format.yml)\n\n\n# Audio pump demo (for PulseAudio, PortAudio and SDL 2)\n\nThis repository demos pumping audio\nfrom the default input device (e.g. a microphone)\nto the default output device (e.g. headphones/speakers)\nin C99.\nIn other words: this demo records audio, and it plays back audio.\n\nThere are four editions:\n\n- one for [PortAudio](https://github.com/PortAudio/portaudio) using asynchronous callbacks —\n  [`portaudio_async_pump_demo.c`](https://github.com/hartwork/audio_pump_demo/blob/master/portaudio_async_pump_demo.c),\n- one for [SDL 2](https://wiki.libsdl.org/SDL2/FrontPage) —\n  [`sdl2_audio_pump_demo.c`](https://github.com/hartwork/audio_pump_demo/blob/master/sdl2_audio_pump_demo.c),\n- one for the [Simple API](https://freedesktop.org/software/pulseaudio/doxygen/simple.html) of PulseAudio —\n  [`pulseaudio_simple_pump_demo.c`](https://github.com/hartwork/audio_pump_demo/blob/master/pulseaudio_simple_pump_demo.c),\n- one for the [Asynchronous API](https://freedesktop.org/software/pulseaudio/doxygen/async.html) of PulseAudio —\n  [`pulseaudio_async_pump_demo.c`](https://github.com/hartwork/audio_pump_demo/blob/master/pulseaudio_async_pump_demo.c).\n\nThe code is Software Libre licensed under GPL v3 or later.\n\n\n# Requirements\n\n- libpulse\n- libpulse-simple\n- PortAudio\n- SDL 2.x\n\ne.g.:\n\n```console\n# sudo apt install --no-install-recommends --yes -V \\\n    build-essential \\\n    libpulse-dev \\\n    libsdl2-dev \\\n    portaudio19-dev\n```\n\n\n# Compilation\n\n```console\n# make CFLAGS='-O2 -pipe' -j\n# ./portaudio_async_pump_demo\n# ./pulseaudio_async_pump_demo\n# ./pulseaudio_simple_pump_demo\n# ./sdl2_audio_pump_demo\n```\n\n\n# Hotkeys\n\n- \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e — exit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Faudio_pump_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhartwork%2Faudio_pump_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhartwork%2Faudio_pump_demo/lists"}