quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
457 stars 64 forks source link

howto test emit receiver locally? #49

Closed NeroBurner closed 4 years ago

NeroBurner commented 4 years ago

Is there a way to emit receive on localhost?

I tried the following

./vban_receptor -i localhost -p 23232 -s test -l 4
./vban_emitter -i localhost -p 23232 -s test -l 4 -b pulseaudio

but got the following error for the emitter

./vban_emitter version 2.1.0

Info: socket_open: opening socket with port 23232
Info: socket_open with port: 23232
Info: audio_init: config is direction in, backend pulseaudio, device , buffer size 1024
Info: audio_backend_get_by_name: found backend pulseaudio
Info: audio_set_map_config: new map config is nb channels 0
Info: audio_set_stream_config: new stream config is nb channels 2, sample rate 44100, bit_fmt 16I
Debug: audio_read invoked with size 1024
Debug: packet_pcm_check: packet is vban: 1312899670, sr: 16, nbs: 255, nbc: 1, bit: 1, name: test, nu: 1
Debug: socket_write invoked
Error: socket_write: sendto error 13 Permission denied
Info: socket_close: closing socket with port 23232

I get the same error for the emitter if I use another random port like 23230

quiniouben commented 4 years ago

Emitter and receptor only accept ip v4 addresses. So, it works with 127.0.0.1 instead of localhost.

NeroBurner commented 4 years ago

thanks that worked!