-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3785f97
Showing
9 changed files
with
1,671 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,54 @@ | ||
CC := $(CROSS_COMPILE)gcc | ||
LD := $(CROSS_COMPILE)gcc | ||
STRIP := $(CROSS_COMPILE)strip | ||
|
||
# -Wno-multichar is used for vban.h:25 define. | ||
CFLAGS := -DLINUX -ansi -Wpedantic -Wall -Wno-multichar | ||
LDFLAGS := -lasound | ||
|
||
# Defaultly compiles release version of the application | ||
CONFIG := release | ||
|
||
ifneq ($(filter release%,$(CONFIG)),) | ||
LDFLAGS += -O3 | ||
endif | ||
|
||
ifneq ($(filter debug%,$(CONFIG)),) | ||
CFLAGS += -g | ||
endif | ||
|
||
SOURCES := main.c \ | ||
socket.c \ | ||
audio.c \ | ||
|
||
OBJECTS := $(SOURCES:.c=.o) | ||
DEPENDENCIES:= $(SOURCES:.c=.d) | ||
EXECUTABLE := vban_receptor | ||
|
||
all: $(EXECUTABLE) | ||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
@echo "Linking $@" | ||
@$(LD) $(LDFLAGS) -o "$@" $^ | ||
ifneq ($(filter release%,$(CONFIG)),) | ||
@echo "Stripping $@" | ||
@$(STRIP) "$@" | ||
endif | ||
|
||
%.o:%.c | ||
@echo "Compiling $<" | ||
@$(CC) -c $(CFLAGS) -MMD -MF "$(patsubst %.o,%.d,$@)" -o "$@" "$<" | ||
|
||
-include $(DEPENDENCIES) | ||
|
||
install: | ||
@mkdir -p $(DESTDIR)/usr/sbin | ||
@cp $(EXECUTABLE) $(DESTDIR)/usr/sbin | ||
|
||
clean: | ||
@echo "Cleaning artifacts and objects" | ||
@rm -f $(OBJECTS) $(DEPENDENCIES) $(EXECUTABLE) | ||
@rm -f *~* | ||
|
||
distclean: clean | ||
|
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,32 @@ | ||
vban_receptor - Linux command-line VBAN to alsa player | ||
====================================================== | ||
|
||
© 2015 Benoît Quiniou - quiniouben[at]yahoo(.)fr | ||
|
||
vban_receptor is an open-source implementation of VBAN protocol. | ||
It currently takes the form of a Linux command-line player to play a VBAN audio stream to alsa local audio device. | ||
VBAN is a simple audio over UDP protocol proposed by VB-Audio, see [VBAN Audio webpage](http://vb-audio.pagesperso-orange.fr/Voicemeeter/vban.htm). | ||
|
||
Compilation and installation | ||
---------------------------- | ||
|
||
vban_receptor doesn't have a configure script. Nevertheless the makefile is very simple and has some basic variables (CC, LD, STRIP, CROSS_COMPILE, DESTDIR) to define whatever compilation toolchain you wish to use and where you want to install. This will probably evolve in future releases. | ||
So simply use: | ||
|
||
$ make | ||
# make install | ||
|
||
Usage | ||
----- | ||
|
||
Invoking vban_receptor without any parameter will give hints on how to use it : | ||
|
||
Usage: vban_receptor [OPTIONS]... | ||
|
||
-i, --ipaddress=IP : ipaddress to get stream from | ||
-p, --port=PORT : port to listen to | ||
-s, --streamname=NAME : streamname to play | ||
-q, --quality=ID : network quality indicator from 0 (low latency) to 4. default is 1 | ||
-h, --help : display this message | ||
|
||
|
Oops, something went wrong.