Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ OWNTONE_ARG_WITH_CHECK([OWNTONE_OPTS], [Pulseaudio support], [pulseaudio], [LIBP
[AC_CHECK_FUNCS([pa_threaded_mainloop_set_name])])
AM_CONDITIONAL([COND_PULSEAUDIO], [[test "x$with_pulseaudio" = "xyes"]])

dnl PIPEWIRE
OWNTONE_ARG_WITH_CHECK([OWNTONE_OPTS], [Pipewire support], [pipewire], [PIPEWIRE],
[libpipewire-0.3], [pw_stream_new], [pipewire/pipewire.h])
AM_CONDITIONAL([COND_PIPEWIRE], [[test "x$with_pipewire" = "xyes"]])

dnl Build with libwebsockets
OWNTONE_ARG_WITH_CHECK([OWNTONE_OPTS], [libwebsockets support], [libwebsockets], [LIBWEBSOCKETS],
[libwebsockets >= 2.0.2])
Expand Down
6 changes: 5 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ if COND_PULSEAUDIO
PULSEAUDIO_SRC=outputs/pulse.c
endif

if COND_PIPEWIRE
PIPEWIRE_SRC=outputs/pipewire.c
endif

if COND_AVAHI
MDNS_SRC=mdns_avahi.c
else
Expand Down Expand Up @@ -123,7 +127,7 @@ owntone_SOURCES = main.c \
outputs/airplay_events.c outputs/airplay_events.h \
outputs/streaming.c \
outputs/dummy.c outputs/fifo.c outputs/rcp.c \
$(ALSA_SRC) $(PULSEAUDIO_SRC) $(CHROMECAST_SRC) \
$(ALSA_SRC) $(PULSEAUDIO_SRC) $(PIPEWIRE_SRC) $(CHROMECAST_SRC) \
evrtsp/rtsp.c evrtsp/evrtsp.h evrtsp/rtsp-internal.h evrtsp/log.h \
evthr.c evthr.h \
$(SPOTIFY_SRC) \
Expand Down
6 changes: 6 additions & 0 deletions src/outputs.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ extern struct output_definition output_alsa;
#ifdef HAVE_LIBPULSE
extern struct output_definition output_pulse;
#endif
#ifdef HAVE_PIPEWIRE
extern struct output_definition output_pipewire;
#endif
#ifdef CHROMECAST
extern struct output_definition output_cast;
#endif
Expand All @@ -73,6 +76,9 @@ static struct output_definition *outputs[] = {
#ifdef HAVE_LIBPULSE
&output_pulse,
#endif
#ifdef HAVE_PIPEWIRE
&output_pipewire,
#endif
#ifdef CHROMECAST
&output_cast,
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/outputs.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ enum output_types
#ifdef HAVE_LIBPULSE
OUTPUT_TYPE_PULSE,
#endif
#ifdef HAVE_PIPEWIRE
OUTPUT_TYPE_PIPEWIRE,
#endif
#ifdef CHROMECAST
OUTPUT_TYPE_CAST,
#endif
Expand Down
Loading
Loading