tinpotnick / project-mediaswitch

Slim, efficient and fast event-driven, asynchronous SIP Switch.
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

WebRtc functions #4

Open smalls12 opened 4 years ago

smalls12 commented 4 years ago

I can't seem to locate any of the WebRtc functions.

My build keeps failing as such

[ 78%] Building CXX object rtp/CMakeFiles/rtp.dir/projectrtpcodecx.cpp.o
/home/src/3rdparty/project-mediaswitch/rtp/projectrtpcodecx.cpp: In member function ‘void codecx::reset()’:
/home/src/3rdparty/project-mediaswitch/rtp/projectrtpcodecx.cpp:120:5: error: ‘WebRtcIlbcfix_DecoderFree’ was not declared in this scope
     WebRtcIlbcfix_DecoderFree( this->ilbcdecoder );

Which library has these defined?

tinpotnick commented 4 years ago

The ilbc library.

On Sat, 16 May 2020, 21:18 smalls12, notifications@github.com wrote:

I can't seem to locate any of the WebRtc functions.

My build keeps failing as such

[ 78%] Building CXX object rtp/CMakeFiles/rtp.dir/projectrtpcodecx.cpp.o

/home/src/3rdparty/project-mediaswitch/rtp/projectrtpcodecx.cpp: In member function ‘void codecx::reset()’:

/home/src/3rdparty/project-mediaswitch/rtp/projectrtpcodecx.cpp:120:5: error: ‘WebRtcIlbcfix_DecoderFree’ was not declared in this scope

 WebRtcIlbcfix_DecoderFree( this->ilbcdecoder );

Which library has these defined?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tinpotnick/project-mediaswitch/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBM4NVUZVCFNR3ICABOS43RR3YKRANCNFSM4NDB6ZIQ .

smalls12 commented 4 years ago

Seems like there are a couple different libraries out there. This one I found here has the WebRtc functions. https://github.com/TimothyGu/libilbc

smalls12 commented 4 years ago

The only thing left was the definition for WebRtc_Word16. I ended up replacing them with int16_t and then everything compiled.