Skip to content

Commit

Permalink
Merge pull request #249 from chris-rudmin/debug
Browse files Browse the repository at this point in the history
Fix decoder bug
  • Loading branch information
chris-rudmin authored Oct 15, 2021
2 parents c7d1504 + 27fd98d commit fdfdade
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 203 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ A javascript library to encode the output of Web Audio API nodes in Ogg Opus or

#### Libraries Used

- Libopus: v1.3.1 compiled with emscripten 2.0.23
- speexDSP: 1.2.0 compiled with emscripten 2.0.23
- Libopus: v1.3.1 compiled with emscripten 2.0.31
- speexDSP: 1.2.0 compiled with emscripten 2.0.31

#### Required Files

Expand Down
185 changes: 94 additions & 91 deletions dist-unminified/decoderWorker.js

Large diffs are not rendered by default.

Binary file modified dist-unminified/decoderWorker.wasm
Binary file not shown.
194 changes: 91 additions & 103 deletions dist-unminified/encoderWorker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist-unminified/recorder.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/decoderWorker.min.js

Large diffs are not rendered by default.

Binary file modified dist/decoderWorker.min.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/encoderWorker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/recorder.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opus-recorder",
"version": "8.0.4",
"version": "8.0.5",
"description": "A library for recording opus encoded audio",
"homepage": "https://github.com/chris-rudmin/opus-recorder",
"author": "Chris Rudmin",
Expand Down
2 changes: 1 addition & 1 deletion src/decoderWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ OggOpusDecoder.prototype.decode = function( typedArray ) {
OggOpusDecoder.prototype.getPageBoundaries = function( dataView ){
var pageBoundaries = [];

for ( var i = 0; i < dataView.byteLength - 32; i++ ) {
for ( var i = 0; i < dataView.byteLength - 4; i++ ) {
if ( dataView.getUint32( i, true ) == 1399285583 ) {
pageBoundaries.push( i );
}
Expand Down
2 changes: 1 addition & 1 deletion src/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Recorder.isRecordingSupported = function(){
return AudioContext && getUserMediaSupported && global.WebAssembly;
};

Recorder.version = '8.0.4';
Recorder.version = '8.0.5';


// Instance Methods
Expand Down

0 comments on commit fdfdade

Please sign in to comment.