Examples of readFrames()


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

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

        // 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

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

      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

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

            f.seekFrame( fOffset );
          }
          for( int k = 0; k < channelMap.length; k++, j++ ) {
            mappedData[ channelMap[ k ]] = data[ j ];
          }
          f.readFrames( mappedData, offset, len );
        }
      }
      clearMappedData()// avoid memory footprint
    }
    return len;
View Full Code Here

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

              f.seekFrame( fOffset );
            }
            for( int k = 0; k < channelMap.length; k++, j++ ) {
              mappedData[ channelMap[ k ]] = data[ j ];
            }
            f.readFrames( mappedData, 0, chunkLen );
          }
          target.writeFrames( data, 0, chunkLen );
          framesCopied += chunkLen;
        }
      }
View Full Code Here

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

            f.seekFrame( fOffset );
          }
          for( int k = 0; k < channelMap.length; k++, j++ ) {
            mappedData[ channelMap[ k ]] = data[ j ];
          }
          f.readFrames( mappedData, offset, len );
        }
      }
      clearMappedData()// avoid memory footprint
    }
    return len;
View Full Code Here

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

              f.seekFrame( fOffset );
            }
            for( int k = 0; k < channelMap.length; k++, j++ ) {
              mappedData[ channelMap[ k ]] = data[ j ];
            }
            f.readFrames( mappedData, 0, chunkLen );
          }
          target.writeFrames( data, 0, chunkLen );
          framesCopied += chunkLen;
        }
      }
View Full Code Here

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

    size = (int) iff.getFrameNum();
    if( size != distanceTable.length ) {
      distanceTable = new float[ size ];
    }
    frameBuf[ 0 ] = distanceTable;
    iff.readFrames( frameBuf, 0, size );
    iff.close();

    iff = AudioFile.openAsRead( new File( new File( (File) options.get(
        XMLRepresentation.KEY_BASEPATH ), SUBDIR ), getName() + SUFFIX_ROTATION ));
     
View Full Code Here

Examples of de.sciss.io.InterleavedStreamFile.readFrames()

    size = (int) iff.getFrameNum();
    if( size != rotationTable.length ) {
      rotationTable = new float[ size ];
    }
    frameBuf[ 0 ] = rotationTable;
    iff.readFrames( frameBuf, 0, size );
    iff.close();
  }
}
View Full Code Here

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

              warpedTime[j]   = v_start_norm * t + dv_norm * tt;
//              warpedTime[j]   = (v_start_norm * t + dv_norm * tt) * 1.5f - 0.25f;  // extrap.
            }
            evaluateFunction( warpedTime, interpBuf, len );
            if( bc != null ) {
              at.readFrames( srcBuf, 0, new Span( start, start + len ));
              if( interpOff < bc.getLen() ) {  // EEE getLen?
                bc.blend( interpOff, srcBuf, 0, interpBuf, 0, interpBuf, 0, len );
              }
              if( interpLen - (interpOff + len) < bc.getLen() ) {  // EEE getLen?
                bc.blend( interpOff - (interpLen - bc.getLen()), interpBuf, 0, srcBuf, 0, interpBuf, 0, len );
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.