Skip to content

Commit

Permalink
Removed floor in writeInt. Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Sep 8, 2010
1 parent 83df439 commit 91c28c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/dynamicaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ DynamicAudio.prototype = {
else if (this.flashElement != null) {
var out = new Array(samples.length);
for (var i = samples.length-1; i != 0; i--) {
out[i] = Math.floor(samples[i]*32768);
out[i] = Math.floor(samples[i] * 32768);
}
this.flashElement.write(out.join(' '));
}
Expand All @@ -86,7 +86,7 @@ DynamicAudio.prototype = {
if (this.audioElement != null) {
var out = new Array(samples.length);
for (var i = samples.length-1; i != 0; i--) {
out[i] = Math.floor(samples[i]/32768);
out[i] = samples[i] / 32768;
}
this.audioElement.mozWriteAudio(out);
}
Expand Down

0 comments on commit 91c28c4

Please sign in to comment.