csnd

Class Soundfile


public class Soundfile
extends java.lang.Object

Field Summary

protected boolean
swigCMemOwn

Constructor Summary

Soundfile()
Soundfile(long cPtr, boolean cMemoryOwn)

Method Summary

void
blank(double duration)
int
close()
int
create(String filename)
int
create(String filename, int framesPerSecond)
int
create(String filename, int framesPerSecond, int channelsPerFrame)
int
create(String filename, int framesPerSecond, int channelsPerFrame, int format)
void
delete()
void
error()
protected void
finalize()
protected static long
getCPtr(Soundfile obj)
int
getChannelsPerFrame()
int
getFormat()
int
getFrames()
int
getFramesPerSecond()
int
mixFrames(SWIGTYPE_p_double inputFrames, int samples, SWIGTYPE_p_double mixedFrames)
int
open(String filename)
int
readFrame(SWIGTYPE_p_double outputFrame)
int
readFrames(SWIGTYPE_p_double outputFrames, int samples)
int
seek(int frames)
int
seek(int frames, int whence)
double
seekSeconds(double seconds)
double
seekSeconds(double seconds, int whence)
void
setChannelsPerFrame(int channelsPerFrame)
void
setFormat(int format)
void
setFramesPerSecond(int framesPerSecond)
void
updateHeader()
int
writeFrame(SWIGTYPE_p_double inputFrame)
int
writeFrames(SWIGTYPE_p_double inputFrames, int samples)

Field Details

swigCMemOwn

protected boolean swigCMemOwn

Constructor Details

Soundfile

public Soundfile()

Soundfile

protected Soundfile(long cPtr,
                    boolean cMemoryOwn)

Method Details

blank

public void blank(double duration)

close

public int close()

create

public int create(String filename)

create

public int create(String filename,
                  int framesPerSecond)

create

public int create(String filename,
                  int framesPerSecond,
                  int channelsPerFrame)

create

public int create(String filename,
                  int framesPerSecond,
                  int channelsPerFrame,
                  int format)

delete

public void delete()

error

public void error()

finalize

protected void finalize()

getCPtr

protected static long getCPtr(Soundfile obj)

getChannelsPerFrame

public int getChannelsPerFrame()

getFormat

public int getFormat()

getFrames

public int getFrames()

getFramesPerSecond

public int getFramesPerSecond()

mixFrames

public int mixFrames(SWIGTYPE_p_double inputFrames,
                     int samples,
                     SWIGTYPE_p_double mixedFrames)

open

public int open(String filename)

readFrame

public int readFrame(SWIGTYPE_p_double outputFrame)

readFrames

public int readFrames(SWIGTYPE_p_double outputFrames,
                      int samples)

seek

public int seek(int frames)

seek

public int seek(int frames,
                int whence)

seekSeconds

public double seekSeconds(double seconds)

seekSeconds

public double seekSeconds(double seconds,
                          int whence)

setChannelsPerFrame

public void setChannelsPerFrame(int channelsPerFrame)

setFormat

public void setFormat(int format)

setFramesPerSecond

public void setFramesPerSecond(int framesPerSecond)

updateHeader

public void updateHeader()

writeFrame

public int writeFrame(SWIGTYPE_p_double inputFrame)

writeFrames

public int writeFrames(SWIGTYPE_p_double inputFrames,
                       int samples)