Skip to content

Commit

Permalink
an attempt to fix a case where each 1s of audio is written twice to a…
Browse files Browse the repository at this point in the history
…udio file
  • Loading branch information
justinhunt committed May 3, 2022
1 parent ab55b9a commit 03a5fff
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Change List
=========
Version 3.1.56 (Build 2022050300)
- tweak to audio recording for an odd case where 2 x each 1s of recording get written to the audio file

Version 3.1.55 (Build 2022042300)
- removed JQuery UI from Poodll code so would not break M4.0 dock

Expand Down
2 changes: 1 addition & 1 deletion amd/build/msr_stereoaudio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/msr_stereoaudio.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion amd/src/msr_stereoaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ define(['jquery',
},

start: function (timeSlice, audioctx) {
//should start be called more than once, bad things could happen, so stop and then start
if(this.timeout!==0){
this.stop();
}

timeSlice = timeSlice || 1000;
var that = this;

Expand All @@ -45,7 +50,8 @@ define(['jquery',
stop: function () {
if (this.mediaRecorder) {
this.mediaRecorder.stop();
clearTimeout(this.timeout);
clearInterval(this.timeout);
this.timeout =0;
}
},
pause: function () {
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2022042300;
$plugin->version = 2022050300;
$plugin->requires = 2016052300;//moodle 3.1.0
$plugin->component = 'filter_poodll';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '3.1.54 (Build 2022042300)';
$plugin->release = '3.1.56 (Build 2022050300)';

0 comments on commit 03a5fff

Please sign in to comment.