forked from hzeller/gmrender-resurrect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This contribs is just an example how to create a new output module. It's not stable. output_mpg123.c is the real module sound_alsa and sound_module manages the sound playback with alsa (a version with tinyalsa may be contributed too in the future) webclient allows to send GET request to the server and to receive the audio file data.
- Loading branch information
Showing
9 changed files
with
886 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SUBDIRS = src data | ||
SUBDIRS = src data contribs | ||
|
||
EXTRA_DIST = autogen.sh |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if HAVE_MPG123 | ||
pkglib_LTLIBRARIES = gmrender_mpg123.la | ||
endif | ||
|
||
gmrender_mpg123_la_SOURCES = \ | ||
sound_module.c sound_module.h \ | ||
sound_alsa.c \ | ||
webclient.c \ | ||
output_mpg123.c | ||
|
||
GMRENDER_MPG123_VERSION=0.0.1 | ||
|
||
MOD_MAJOR_VERSION=$(word 1,$(subst ., ,$(GMRENDER_MPG123_VERSION))) | ||
MOD_MINOR_VERSION=$(word 2,$(subst ., ,$(GMRENDER_MPG123_VERSION))) | ||
MOD_MICRO_VERSION=$(word 3,$(subst ., ,$(GMRENDER_MPG123_VERSION))) | ||
|
||
gmrender_mpg123_la_CFLAGS = $(GLIB_CFLAGS) $(ALSA_CFLAGS) -I ../src | ||
gmrender_mpg123_la_CFLAGS += -DMOD_MAJOR_VERSION=$(MOD_MAJOR_VERSION) | ||
gmrender_mpg123_la_CFLAGS += -DMOD_MINOR_VERSION=$(MOD_MINOR_VERSION) | ||
gmrender_mpg123_la_CFLAGS += -DMOD_MICRO_VERSION=$(MOD_MICRO_VERSION) | ||
gmrender_mpg123_la_LIBADD = $(GLIB_LIBS) $(ALSA_LIBS) -lmpg123 | ||
gmrender_mpg123_la_LDFLAGS = -module -release $(GMRENDER_MPG123_VERSION) |
Oops, something went wrong.