Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

parsed int was unncessary and upset parsing of large files

  • Loading branch information...
commit 77de01935410dbb84c544d6929deae7596dee1b4 1 parent dc68d4d
@leegee authored
Showing with 16 additions and 2 deletions.
  1. +14 −0 Demo/index.html
  2. +2 −2 Source/PcmImage.js
View
14 Demo/index.html
@@ -118,6 +118,19 @@
the loss of the dynamic overlay.
</p>
+<!--
+<figure>
+ <figcaption>
+ Test larger file
+ </figcaption>
+ <div id='soundtest6'
+ class='pcmimg'
+ data-uri='/g/lsys/koch_snowflake-24gens.wav'
+ data-step='128'
+ ></div>
+</figure>
+-->
+
<figure>
<figcaption>
<p>HTML default, style from class:</p>
@@ -222,6 +235,7 @@
></div>
</figure>
+
<!--
<figure>
<figcaption>
View
4 Source/PcmImage.js
@@ -17,7 +17,7 @@ provides: [PcmImage]
*/
/*
- Version 0.2
+ Version 0.3
This code is copyright (C) 2012 Lee Goddard, Server-side Systems Ltd.
All Rights Reserved.
@@ -289,7 +289,7 @@ var PcmImage = new Class({
this.overlayInterval = 50; // quater second update
var overlaySteps = ((this.buffer.duration*1000) / this.overlayInterval )-1;
- this.overlay.inc = parseInt( this.width / overlaySteps );
+ this.overlay.inc = this.width / overlaySteps;
this.overlay.lastX = this.overlay.inc * -1;
this.overlay.thisX = 0;
this.renderTimer = this.overlayImg.periodical(
Please sign in to comment.
Something went wrong with that request. Please try again.