Repository navigation
cvcMedia: SDL3 audio out of cvcGL into a GL-free library; ari-media (media M4) - #934
Merged
Merged
Conversation
…media M4) cvcMedia (src/cvcMedia) is libcvc's GL-free media library, its own package like cvcGL (find_package(cvcMedia), cvc::cvcMedia), so the cvc package's single-target contract and the lean libcvc are untouched. It holds the SDL3 audio output and the auto-pumped stream player that were cvcGL's, now cvc::media::playback (cvc/media/playback/*.h); SDL3 is optional and only its audio subsystem is used. cvcGL links it and keeps the cvc::gl::playback names as aliases, so the conference app and media verbs are unchanged; a standalone cvcGL build (the cvcgl recipe) builds and installs it beside itself, and the recipe ships it. ari-media is the same ari with cvcMedia linked: sound with no window, display, GL, VTK or ImGui (ari-media info lists the playback devices). It is built with cvcGL or -DCVC_BUILD_ARI_MEDIA=ON in-tree, and by the new ari-media recipe from src/ari with -DARI_WITH_MEDIA=ON, which links cvcMedia statically, so the package is bin/ari-media alone (deps: libcvc, sdl3). The lean ari links libcvc only, as before. Test: cvcmedia_audio_output plays through SDL's dummy driver with the video subsystem never initialized and no GL/VTK/ImGui/cvcGL loaded.
This was referenced Oct 31, 2026
Ariadne: video:/audio: in the browser pages through <video>/<audio> (media M6, stacked on #935)
#936
Merged
… release bumped them before this one landed)
transfix
added a commit
that referenced
this pull request
Nov 2, 2026
…-media-video Their changes are already here from their branches, so this keeps this tree and makes the squashes ancestors, so the branch merges into master.
transfix
added a commit
that referenced
this pull request
Nov 2, 2026
…media M5, stacked on #933 + #934) (#935) Media M5: `video:` and `audio:` widgets with poster, autoplay, loop, muted and state-bound player keys, played natively by cvcMedia's FFmpeg + SDL3 player (`media.player`; ari-media and arigl, `--media-play`). Snapshots wait for players whose URL a reply puts in state.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Media M4 from the design (#929, docs/roadmap/ARIADNE_MEDIA.md §5). It is independent of #931–#933 and based on master.
Why.
ariis a terminal program, but SDL3's audio subsystem needs no window. The audio output lived in cvcGL, so playing sound meant linking GL, VTK and ImGui. This PR moves it into a GL-free library and addsari-media, which plays sound in a terminal while the defaultaristays lean.cvcMedia (
src/cvcMedia) is its own library and package, like cvcGL:find_package(cvcMedia)givescvc::cvcMedia. That leaves the cvc package's single-target contract alone, and the libcvc SDK never links SDL.audio_outputandaudio_stream_player, moved with history from cvcGL. They are nowcvc::media::playback, incvc/media/playback/*.h, and addhave_audio_output().cvc::gl::playback::*as aliases in its old headers, somedia_verbs.cpp, arigl's conference mix and the tests are unchanged.-S src/cvcGL) builds cvcMedia beside itself and installs it.cvcGLConfig.cmakefinds it, and the cvcgl recipe'spackage.filesandcmake_packagesnow include it.ari-media is
src/ari/main.cppbuilt withARI_MEDIAand cvcMedia linked.ari-media infoaddsaudio output (SDL3) yesand the playback devices; the field is in--jsontoo. The video:/audio: widgets come in M5.-DCVC_BUILD_ARI_MEDIA=ON.cvcpkg/recipes/ari-media(linux, macos, windows):-S src/ari -DARI_WITH_MEDIA=ON. cvcMedia builds statically into the binary, so the package isbin/ari-mediaalone, with deps libcvc and sdl3.bin/ari, so the packages never collide and a launcher can preferari-media. A dlopen plugin was set aside as an ABI contract with libcvc's exact build on three OSes. The recipe is not wired into publish-cvcpkg yet, the same as the arigl recipes.Verified locally (GCC 13, Release, GL deps prefix)
cvcmedia_audio_output(new) runs on SDL's dummy driver. It plays through the audio subsystem withSDL_WasInit(SDL_INIT_VIDEO) == 0, and/proc/self/mapsshows no libGL, libEGL, libvtk, libimgui or libcvcGL.cvcgl_*(audio|media|mic|conference)|cvcmedia|ari_*|AriNet|AriTestpassed 24/24: cvcgl_audio_output, audio_player, audio_source, media_audio, media_capture and media_play run through the aliases.ldd ari-mediashows libcvcMedia and libSDL3, with no VTK, GL or ImGui.ldd arihas no SDL.cmake --installof the tree, building-S src/ari -DARI_WITH_MEDIA=ONagainst that prefix producedari-mediawith a static cvcMedia, linking only libcvc and SDL3.find_package(cvcGL)consumer of the installed tree configures (cvcMedia re-found through cvcGLConfig), links and runscvc::gl::playback::list_audio_playback_devices().Not built locally: the Windows and macOS recipe scripts, and the wasm cvcGL build with cvcMedia, which CI's cvcGL wasm job covers.