Skip to content

far0ouk/node12-jitterbuffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-jitterbuffer

Fork disclaimer
This is my naive attempt to support Node 12 in node-mumble and it's dependencies. I'm not experienced in v8 so I can't promise anything, but at least it just works.

~Fun Maker

NodeJS native bindings to libspeex jitter buffer

var jitter = require('jitterbuffer').JitterBuffer;
var JB = jitter.JitterBuffer;
var jb = new JB();

jb.put({ data: new Buffer(10), timestamp: 10, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 30, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 20, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 50, span: 10 });

jb.get(10).timestamp; // 10
jb.get(10).timestamp; // 20
jb.get(10).timestamp; // 30
jb.get(10)            // jitter.MISSING
jb.get(10).timestamp; // 50

Platform support

Supported platforms:

  • Linux x64, arm, ia32
  • Darwin x64
  • Windows x64

Add new supported platforms by running ./configure in deps/speex-1.2rc1 and copying the following files:

  • config.h
  • include/speex/speex_config_types.h

to deps/config/speex-1.2rc1/<os>/<arch>. With config.h going to the root and the speex_config_types.h going to the speex subfolder. See the existing linux configurations for an example.

Use the following flags: --enable-static --disable-shared --with-pic

Add the new platform/architecture to package.json to enable npm install.

About

NodeJS binding to Speex Jitter Buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 58.1%
  • C 19.0%
  • Python 17.6%
  • JavaScript 5.3%