csnd

Class Soundfile

public class Soundfile extends Object

Field Summary
protected booleanswigCMemOwn
Constructor Summary
Soundfile(long cPtr, boolean cMemoryOwn)
Soundfile()
Method Summary
voidblank(double duration)
intclose()
intcreate(String filename, int framesPerSecond, int channelsPerFrame, int format)
intcreate(String filename, int framesPerSecond, int channelsPerFrame)
intcreate(String filename, int framesPerSecond)
intcreate(String filename)
voiddelete()
voiderror()
protected voidfinalize()
intgetChannelsPerFrame()
static longgetCPtr(Soundfile obj)
intgetFormat()
intgetFrames()
intgetFramesPerSecond()
intmixFrames(SWIGTYPE_p_double inputFrames, int samples, SWIGTYPE_p_double mixedFrames)
intopen(String filename)
intreadFrame(SWIGTYPE_p_double outputFrame)
intreadFrames(SWIGTYPE_p_double outputFrames, int samples)
intseek(int frames, int whence)
intseek(int frames)
doubleseekSeconds(double seconds, int whence)
doubleseekSeconds(double seconds)
voidsetChannelsPerFrame(int channelsPerFrame)
voidsetFormat(int format)
voidsetFramesPerSecond(int framesPerSecond)
voidupdateHeader()
intwriteFrame(SWIGTYPE_p_double inputFrame)
intwriteFrames(SWIGTYPE_p_double inputFrames, int samples)

Field Detail

swigCMemOwn

protected boolean swigCMemOwn

Constructor Detail

Soundfile

public Soundfile(long cPtr, boolean cMemoryOwn)

Soundfile

public Soundfile()

Method Detail

blank

public void blank(double duration)

close

public int close()

create

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

create

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

create

public int create(String filename, int framesPerSecond)

create

public int create(String filename)

delete

public void delete()

error

public void error()

finalize

protected void finalize()

getChannelsPerFrame

public int getChannelsPerFrame()

getCPtr

public static long getCPtr(Soundfile obj)

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, int whence)

seek

public int seek(int frames)

seekSeconds

public double seekSeconds(double seconds, int whence)

seekSeconds

public double seekSeconds(double seconds)

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)