Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
24e8ec4
adding feature sendUserState and voice target for whisper.
auzanmuh Mar 20, 2018
993ea20
remove boost include library from .gitignore
auzanmuh Mar 21, 2018
7d64b05
intelij hack
auzanmuh Mar 28, 2018
429e1a5
adding opus chanel in mumblib configuration
auzanmuh Mar 29, 2018
38f4805
Update mumble proto to latest version.
auzanmuh Apr 12, 2018
218f81d
Add MumbleUser and MumbleChannel
auzanmuh Apr 18, 2018
f6ef594
adding some method, and look for cause issue #3
auzanmuh Apr 20, 2018
fe9a39a
hack typo, adding frame to buffer
auzanmuh May 23, 2018
8ea7113
update
Jan 25, 2019
f362194
merge and clean
Jan 25, 2019
d045e12
Merge remote-tracking branch 'auzanmuh/develop'
Risca Mar 26, 2020
792517d
Fix compiling on MacOSX Systems
HeroCC Jun 27, 2018
d3bcced
Fix an import statement that was causing some compilations to fail
HeroCC Jul 5, 2018
e402d62
add initial support for client certs
mrscotty May 28, 2017
bb2cfe6
Compile and link example again
Risca Mar 26, 2020
a5bf9ab
Also install headers
Risca Mar 26, 2020
0f93187
Remove spam printout
Risca Mar 26, 2020
932a09e
Use separate opus decoder state per session
Risca Mar 29, 2020
2a2cceb
Ignore .user files
Risca Mar 29, 2020
6c76dbc
include: set opus sample rate to 24000.
hiro2233 Jun 4, 2020
d30b2cb
example: set bitrate 16000 and port 1234.
hiro2233 Jun 4, 2020
7cb5c36
src: set OPUS enc ctl signal.
hiro2233 Jun 4, 2020
cfa875f
src: set logger callback to warn.
hiro2233 Jun 4, 2020
007f973
src: fixed ssl Transport reconnection.
hiro2233 Jun 4, 2020
01fe2f6
Add maintenance disclaimer.
slomkowski Dec 12, 2018
9a2683d
src: added medium bandwith and signal voice ctl.
hiro2233 Mar 29, 2020
818524c
root: set 1234 port udp by default.
hiro2233 Mar 29, 2020
a036d96
include: set 1500 encoder bitrate by default.
hiro2233 Mar 29, 2020
6db519d
include: mumlib: set 24000 sample rate to audio.
hiro2233 Mar 29, 2020
e15c07f
include: updated max udp len by 4.
hiro2233 Mar 30, 2020
34a136a
src: added debugging print.
hiro2233 Mar 30, 2020
3093809
src: changed tcp to udp buf len def macro.
hiro2233 Mar 30, 2020
43f9fee
src: added and commented add session textmsg.
hiro2233 Mar 30, 2020
4460b7f
added ping status.
hiro2233 May 28, 2020
3ce8d7c
src: fixed disconnection.
hiro2233 May 29, 2020
785b8cd
include: set opus enc 8000 and sample rate 16000.
hiro2233 Jun 4, 2020
81c802c
header: removed unused macro.
hiro2233 Jun 4, 2020
c106ecc
src: Transprot: commented logger audiopacket.
hiro2233 Jun 4, 2020
1380549
build: added MSYS target.
hiro2233 Jun 10, 2020
84581b5
mumlib: adeded MSYS macro to header.
hiro2233 Jun 10, 2020
5ea225e
mumlib: added msys macro on transport for noudp.
hiro2233 Jun 10, 2020
82d9eae
src: added missin param on mumlib.
hiro2233 Jun 10, 2020
07d6785
root: added mumble c src and headers proto.
hiro2233 Jun 10, 2020
d1c5032
build: added missing cxxflags for unix targets.
hiro2233 Jun 10, 2020
79b9dbb
buld: added urusstudio project.
hiro2233 Jun 10, 2020
c4374ce
Added dependency to Speex DSP library
bwildenhain Jun 10, 2020
926d477
Added instructions to install deps on Debian
bwildenhain Jun 10, 2020
89c76ba
Typos
bwildenhain Jun 10, 2020
3869359
Added missing Debian dependencies
bwildenhain Jun 10, 2020
aeaa573
root: changed Mumble proto c and headers filename for msys.
hiro2233 Jun 12, 2020
ab8d452
build: fixed linking boost library.
hiro2233 Jun 12, 2020
4d63624
build: added optimization level 3 on cmake.
hiro2233 Jun 13, 2020
1774ad8
src: improve throw expceptions for optimizations builds.
hiro2233 Jun 13, 2020
75c6610
src: commented throwing exceptions.
hiro2233 Jun 13, 2020
fec8d3d
src: commented log on sendEncodedAudioPacket.
hiro2233 Jun 13, 2020
98eb01b
build: fixed finding boost on msys.
hiro2233 Jun 13, 2020
274d25d
src: fixed udp connection on MSYS.
hiro2233 Jun 14, 2020
f086dbb
build: added missing static libraries to cmakelist.
hiro2233 Jun 17, 2020
8cea28e
build: added missing params to mumlib usp.
hiro2233 Jun 17, 2020
1aa33a5
src: added urusstudio macro for msys build.
hiro2233 Jun 17, 2020
133bc49
root: added missing header for msys.
hiro2233 Jun 20, 2020
3bc65d6
build: added unix target for mumlib.usp.
hiro2233 Jun 20, 2020
001625c
git: updated gitignore.
hiro2233 Jun 20, 2020
1f3d43b
git: udapted gitignore.
hiro2233 Jun 20, 2020
6a5ae02
git: ignore mumble proto c files generated.
hiro2233 Jun 20, 2020
ce4ccbe
build: added fPIC to mumble.
hiro2233 Jun 21, 2020
7dd047b
usp: added opt arguments on mumlib.
hiro2233 Jun 22, 2020
ef61beb
src: set 3 secs on transport disconnect.
hiro2233 Jun 22, 2020
29c9f4c
src: added missing returning on VarInt.
hiro2233 Jun 22, 2020
045b898
build: updated mumlib usp building on win32.
hiro2233 Jun 27, 2020
51b350c
usp: enabled build Mumble proto on unix.
hiro2233 Jun 28, 2020
6d8fc48
include: make isSessionIdValid public.
hiro2233 Jul 4, 2020
e7955da
src: declare static voicetarget mumproto member.
hiro2233 Jul 4, 2020
093da5a
src: fit iframesize to default 20ms opus frame delay size.
hiro2233 Jul 10, 2020
9d23f43
src: include missing header thread.
hiro2233 Jul 20, 2020
87091b2
src: added frame size calculation by sample rate.
hiro2233 Sep 18, 2020
125c902
src: set frame size to 10 ms
hiro2233 Sep 18, 2020
dfc72ec
src: commented ping logger.
hiro2233 Sep 18, 2020
5a6eb3e
src: added float point decoding.
hiro2233 Sep 18, 2020
ceee976
root: added build optimization boost and size def args.
hiro2233 Jun 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,18 @@ build/
# IntelliJ
*.iml
.idea/


# QtCreator
*.user

debug
release
*.gch
*.layout
*.depend
*cscope_file_list
bin
Mumble.pb.cc
Mumble.pb.h

58 changes: 48 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
cmake_minimum_required(VERSION 2.8.0)
project(mumlib)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-DOPT_TLS_GNUTLS -D_POSIX_C_SOURCE=200112L)
if (MSYS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -DLOG4CPP_FIX_ERROR_COLLISION=1 -D__USE_W32_SOCKETS -static-libstdc++ -static-libgcc -static")
add_definitions(-DOPT_TLS_OPENSSL)
elseif (NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3")
add_definitions(-DOPT_TLS_OPENSSL -D_POSIX_C_SOURCE=200112L)
elseif()
LINK_DIRECTORIES(/opt/local/lib) # Include the default MacPorts library directory
endif()

INCLUDE(FindPkgConfig)
find_package(PkgConfig REQUIRED)

if (NOT MSYS)
find_package(Boost COMPONENTS system REQUIRED)
endif()

find_package(OpenSSL REQUIRED)
find_package(Protobuf REQUIRED)

pkg_check_modules(LOG4CPP "log4cpp")
pkg_check_modules(OPUS "opus")


if (MSYS)
include_directories(~/boost_1_72_0)
elseif (NOT APPLE)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
endif()

include_directories(${OPENSSL_INCLUDE_DIR})
include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${OPUS_INCLUDE_DIRS})

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${LOG4CPP_INCLUDE_DIRS})
include_directories(include)
Expand All @@ -42,15 +56,39 @@ set(MUMLIB_SRC
src/Audio.cpp
)

set(SPEEX_LIBRARIES
speexdsp
)

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS Mumble.proto)

add_library(mumlib SHARED ${MUMLIB_SRC} ${MUMLIB_PUBLIC_HEADERS} ${MUMLIB_PRIVATE_HEADERS} ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(mumlib ${PROTOBUF_LIBRARIES})
target_link_libraries(mumlib ${Boost_LIBRARIES})
target_link_libraries(mumlib ${OPENSSL_LIBRARIES})
target_link_libraries(mumlib ${LOG4CPP_LIBRARIES})
target_link_libraries(mumlib ${OPUS_LIBRARIES})
add_library(mumlib STATIC ${MUMLIB_SRC} ${MUMLIB_PUBLIC_HEADERS} ${MUMLIB_PRIVATE_HEADERS} ${PROTO_SRCS} ${PROTO_HDRS})

if (MSYS)
target_link_libraries(mumlib
${SPEEX_LIBRARIES}
${PROTOBUF_LIBRARIES}
${OPENSSL_LIBRARIES}
${LOG4CPP_LIBRARIES}
${OPUS_LIBRARIES} ws2_32 winmm z crypto ssl)
else ()
target_link_libraries(mumlib
${SPEEX_LIBRARIES}
${PROTOBUF_LIBRARIES}
${OPENSSL_LIBRARIES}
${LOG4CPP_LIBRARIES}
${OPUS_LIBRARIES}
${Boost_LIBRARIES})
endif ()

set_target_properties(mumlib PROPERTIES PUBLIC_HEADER "${MUMLIB_PUBLIC_HEADERS}")

add_executable(mumlib_example mumlib_example.cpp)

if (MSYS)
target_link_libraries(mumlib_example mumlib ws2_32)
else ()
target_link_libraries(mumlib_example mumlib)
endif ()

install(TARGETS DESTINATION mumlib LIBRARY DESTINATION lib PUBLIC_HEADER DESTINATION include/mumlib)
Loading