Package de.sciss.eisenkraut.io

Examples of de.sciss.eisenkraut.io.AudioTrail.readFrames()


          consc.outBuf[ ch ] = source.audioBlockBuf[ ch ];
        } else {
          consc.outBuf[ ch ] = null;
        }
      }
      at.readFrames( consc.inBuf, 0, source.blockSpan );
    }
   
    if( preFade ) {
//      System.out.println( "pre fade" );
//      at.readFrames( consc.inBuf, 0, source.blockSpan );
View Full Code Here


        // XXX optimization possibilities here:
        // leave some channels null (both in readFrames
        // as well as in arraycopy) depending on some
        // kind of policy (maybe a new value of audioPolicy: POLICY_READONLY
        // and POLICY_BYPASS would become POLICY_IGNORE
        at.readFrames( consc.inBuf, inOff, source.blockSpan );
        // looks like a bit of overload but in future
        // versions, channel arrangement might be different than 1:1 from mte
        for( int ch = 0; ch < source.numAudioChannels; ch++ ) {
          System.arraycopy( consc.inBuf[ ch ], inOff, source.audioBlockBuf[ ch ], 0, writeLen );
        }
View Full Code Here

      case DecimatedTrail.MODEL_PCM:
        at      = doc.getAudioTrail();
        data    = new float[ at.getChannelNum() ][];
        data[ ch = new float[ 1 ];
        try {
          at.readFrames( data, 0, new Span( pos, pos + 1 ));
        }
        catch( IOException e1 ) { return; }
        f1      = data[ ch ][ 0 ];
        argsCsr[4= new Float( f1 );
        argsCsr[5= new Float( Math.log( Math.abs( f1 )) * TWENTYDIVLOG10 );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.