Code Monkey home page Code Monkey logo

gsm-wasm's Introduction

(Original source and documetnation)[https://github.com/d3x0r/gsm)

	var gsm = _gsm_create();

	var compress_partial_buffer_idx = 0;
	var compress_partial_buffer_heap = Module._malloc( 160*2 );
	var compress_partial_buffer = new Int16Array( Module.HEAP16.buffer, compress_partial_buffer_heap, 160 );

 	_gsm_encode( gsm
 			  , compress_partial_buffer_heap
 			  , compress_buffer_heaps[compress_segments] );



 	var decode_buffer_heap = Module._malloc( data.length );
 	var decode_buffer = new Uint8Array( Module.HEAPU8.buffer, decode_buffer_heap, data.length );
 	decode_buffer.set( data, 0 )```
 	for( n = 0; n < datalen; n ++ )
 	{
 		_gsm_decode( gsm, decode_buffer_heap + n*33, decompress_buffer + 2 * n * 160 );
 	}
 	var u16 = new Int16Array( Module.HEAP16.buffer, decompress_buffer, n*160 );

gsm-wasm's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.