Giter Site home page Giter Site logo

broadvoice32-js-codec's Introduction

broadvoice32-js-codec

chrome page

broadvoice32-js-codec's People

Contributors

bozhyk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

broadvoice32-js-codec's Issues

why BV32 Encoding takes ten times as long as decoding?

Hello,

I use BroadVoice32OpenSource.v1.2.zip to test encoding and decoding,On windows10 or ARM Nordic nRF52840,

using 16bit 16Khz Continuous audio,And has been converted bin2c array.(Normal sound can be played through I2S)

Simplified code:

Reset_BV32_Encoder((struct BV32_Encoder_State*)enc_state);
Reset_BV32_Decoder((struct BV32_Decoder_State*)dec_state);

//for(int i=0;i<10000;i++) or one times
BV32_Encode((struct BV32_Bit_Stream*)enc_bs, (struct BV32_Encoder_State*)enc_state, data);
BV32_BitPack(oPackedStream, (struct BV32_Bit_Stream*)enc_bs);

//for(int i=0;i<10000;i++) or one times
BV32_BitUnPack(oPackedStream, (struct BV32_Bit_Stream*)dec_bs);
BV32_Decode((struct BV32_Bit_Stream*)dec_bs, (struct BV32_Decoder_State*)dec_state, data);

I get the result as shown in the figure.(the same on J-Link RTT Viewer log)
see the png and MSVC project code.

My question,why BV32 Encoding takes ten times as long as decoding?

thanks
image
image
image

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.