From: yeom Date: Fri, 28 Oct 2011 18:27:02 +0000 (+0000) Subject: update location identifier according to changes of class structure X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6bd15231e5793c0a64bd92f3a44445577ea5c4a4;p=IRC.git update location identifier according to changes of class structure --- diff --git a/Robust/src/Benchmarks/SSJava/MP3Decoder/LayerIIIDecoder.java b/Robust/src/Benchmarks/SSJava/MP3Decoder/LayerIIIDecoder.java index 031113ff..3936ca16 100644 --- a/Robust/src/Benchmarks/SSJava/MP3Decoder/LayerIIIDecoder.java +++ b/Robust/src/Benchmarks/SSJava/MP3Decoder/LayerIIIDecoder.java @@ -667,7 +667,7 @@ final class LayerIIIDecoder implements FrameDecoder { @LATTICE("OUTPlayer instance. */ @@ -122,7 +121,7 @@ public class Player { decoder.init(h); sampleNumber = 1; - System.out.println( "Gobble sentinel: +++" ); + System.out.println("Gobble sentinel: +++"); @LOC("IN") int count = 0; SSJAVA: while (count++ < 2147483646) { @@ -185,7 +184,6 @@ public class Player { return 0; } - /** * Decodes a single frame. * @@ -208,16 +206,7 @@ public class Player { // @LOC("O") SampleBuffer output = (SampleBuffer) decoder.decodeFrame(h); decoder.decodeFrame(h); - // it looks like there is left and right channel interleaved into the - // output buffer, so only sample one channel (stride=2) - short[] outbuf = SampleBufferWrapper.getBuffer(); - TERMINATE: for (@LOC("C") int i = 0; i < SampleBufferWrapper.getBufferLength(); i = i + 2) { - System.out.println( sampleNumber+" "+outbuf[i] ); - sampleNumber++; - } - - - + DEBUG_OUTPUT(); // synchronized (this) // { // out = audio; @@ -243,4 +232,15 @@ public class Player { return true; } + @TRUST + public void DEBUG_OUTPUT() { + // it looks like there is left and right channel interleaved into the + // output buffer, so only sample one channel (stride=2) + short[] outbuf = SampleBufferWrapper.getBuffer(); + for (int i = 0; i < SampleBufferWrapper.getBufferLength(); i = i + 2) { + System.out.println(sampleNumber + " " + outbuf[i]); + sampleNumber++; + } + } + }