mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
jack: make dummy server and net libraries
This commit is contained in:
parent
9f810d1bbc
commit
d8d4e2f335
2 changed files with 67 additions and 0 deletions
41
pipewire-jack/src/dummy.c
Normal file
41
pipewire-jack/src/dummy.c
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
/* PipeWire
|
||||||
|
*
|
||||||
|
* Copyright © 2020 Wim Taymans
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice (including the next
|
||||||
|
* paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
* Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <regex.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
#include <pipewire/pipewire.h>
|
||||||
|
|
||||||
|
static void reg(void) __attribute__ ((constructor));
|
||||||
|
static void reg(void)
|
||||||
|
{
|
||||||
|
pw_init(NULL, NULL);
|
||||||
|
}
|
||||||
|
|
@ -4,6 +4,10 @@ pipewire_jack_sources = [
|
||||||
'uuid.c',
|
'uuid.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
pipewire_dummy_sources = [
|
||||||
|
'dummy.c',
|
||||||
|
]
|
||||||
|
|
||||||
pipewire_jack_c_args = [
|
pipewire_jack_c_args = [
|
||||||
'-DHAVE_CONFIG_H',
|
'-DHAVE_CONFIG_H',
|
||||||
'-D_GNU_SOURCE',
|
'-D_GNU_SOURCE',
|
||||||
|
|
@ -38,6 +42,28 @@ pipewire_jack = shared_library('jack',
|
||||||
install_dir : libjack_path,
|
install_dir : libjack_path,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pipewire_jackserver = shared_library('jackserver',
|
||||||
|
pipewire_dummy_sources,
|
||||||
|
soversion : soversion,
|
||||||
|
version : libversion,
|
||||||
|
c_args : pipewire_jack_c_args,
|
||||||
|
include_directories : [configinc],
|
||||||
|
dependencies : [pipewire_dep, jack_dep, mathlib],
|
||||||
|
install : true,
|
||||||
|
install_dir : libjack_path,
|
||||||
|
)
|
||||||
|
|
||||||
|
pipewire_jackserver = shared_library('jacknet',
|
||||||
|
pipewire_dummy_sources,
|
||||||
|
soversion : soversion,
|
||||||
|
version : libversion,
|
||||||
|
c_args : pipewire_jack_c_args,
|
||||||
|
include_directories : [configinc],
|
||||||
|
dependencies : [pipewire_dep, jack_dep, mathlib],
|
||||||
|
install : true,
|
||||||
|
install_dir : libjack_path,
|
||||||
|
)
|
||||||
|
|
||||||
if sdl_dep.found()
|
if sdl_dep.found()
|
||||||
executable('video-dsp-play',
|
executable('video-dsp-play',
|
||||||
'../examples/video-dsp-play.c',
|
'../examples/video-dsp-play.c',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue