Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
quiniouben committed Dec 2, 2015
0 parents commit 3785f97
Show file tree
Hide file tree
Showing 9 changed files with 1,671 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions Makefile
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

32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
vban_receptor - Linux command-line VBAN to alsa player
======================================================

&copy; 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


Loading

0 comments on commit 3785f97

Please sign in to comment.