{"id":60655,"library":"libcanberra","title":"libcanberra","description":"An implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops","status":"active","version":"0.30","language":"cpp","source_language":null,"source_url":null,"tags":["audio","sound","desktop","xdg"],"install":[{"cmd":"vcpkg install libcanberra","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(libcanberra CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE canberra::canberra)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"canberra.h","correct":"#include <canberra.h>"}],"quickstart":{"code":"#include <canberra.h>\n#include <stdio.h>\n\nint main() {\n    ca_context *ctx;\n    ca_context_create(&ctx);\n    ca_context_play(ctx, 0, CA_PROP_EVENT_ID, \"dialog-warning\", NULL);\n    ca_context_destroy(ctx);\n    return 0;\n}","lang":"cpp","description":"Play a system warning sound"},"warnings":[{"fix":"Ensure sound system is installed and running on the target system","message":"Requires a running sound system (PulseAudio, ALSA, etc.)","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'audio':19 'desktop':18,21 'event':14 'free':17 'generat':13 'implement':3 'libcanberra':1 'name':10 'sound':7,15,20 'specif':11 'theme':8 'xdg':6,22","created_at":"2026-06-17T04:23:20.132242+00:00","updated_at":"2026-06-17T04:23:20.132242+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}