mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pwcat: simple native playback/record tool
pwcat is analogous to pacat of PulseAudio which implements both playback and recording capability. Only wav files are supported for now, and you can use the handy pwplay and pwrecord aliases for easy use. Playback a wav file $ pwplay foo.wav Record a wav file $ pwrecord -r 44100 -c 1 -f s16 foo.wav Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
This commit is contained in:
parent
6ac9b7b3a7
commit
588e9562f9
5 changed files with 997 additions and 0 deletions
|
|
@ -16,3 +16,29 @@ executable('pipewire-dot',
|
|||
install: true,
|
||||
dependencies : [pipewire_dep],
|
||||
)
|
||||
|
||||
if get_option('pwcat') and sndfile_dep.found()
|
||||
|
||||
pwcat_sources = [
|
||||
'pwcat.c',
|
||||
]
|
||||
|
||||
pwcat_aliases = [
|
||||
'pwplay',
|
||||
'pwrecord',
|
||||
]
|
||||
|
||||
executable('pwcat',
|
||||
pwcat_sources,
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: true,
|
||||
dependencies : [sndfile_dep, pipewire_dep, mathlib],
|
||||
)
|
||||
|
||||
foreach alias : pwcat_aliases
|
||||
dst = join_paths(pipewire_bindir, alias)
|
||||
cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pwcat', dst)
|
||||
meson.add_install_script('sh', '-c', cmd)
|
||||
endforeach
|
||||
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue