Skip to content

UDP голосовой чат-клиент для двух ПК

Notifications You must be signed in to change notification settings

Corsider/go-audiochat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-audiochat

Простой full-duplex UDP голосовой чат-клиент для двух ПК.

Сборка (Windows)

  1. Установить vcpkg
  2. Установить с помощью vcpkg пакеты opusfile, portaudio:
vcpkg install opusfile --triplet x64-mingw-static
vcpkg install portaudio --triplet x64-mingw-static 
  1. Настроить переменные окружения Go для работы с полученными библиотеками:
set CGO_CFLAGS=-I{{path_to_vcpkg}}/installed/x64-mingw-static/include
set CGO_LDFLAGS=-L{{path_to_vcpkg}}}/installed/x64-mingw-static/lib -lopus -lportaudio -lwinmm -lole32 -lsetupapi
  1. Установить путь до PKG_CONFIG пакетов:
$env:PKG_CONFIG_PATH = "{{path_to_vcpkg}}/installed/x64-mingw-static/lib/pkgconfig"
  1. go mod download, go build

Запуск (пример)

ПК №1 (адрес 192.168.0.120):

.\go-audiochat.exe -d 192.168.0.100:9001 -l :9000

ПК №2 (адрес 192.168.0.100):

.\go-audiochat.exe -d 192.168.0.120:9000 -l :9001

About

UDP голосовой чат-клиент для двух ПК

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages