Package yarp
Class Sound
- java.lang.Object
-
- yarp.PortReader
-
- yarp.Portable
-
- yarp.Sound
-
public class Sound extends Portable
-
-
Field Summary
-
Fields inherited from class yarp.PortReader
swigCMemOwn
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
delete()
protected void
finalize()
int
get(int sample)
int
get(int sample, int channel)
int
getBytesPerSample()
int
getChannels()
protected static long
getCPtr(Sound obj)
int
getFrequency()
SWIGTYPE_p_unsigned_char
getRawData()
int
getRawDataSize()
int
getSafe(int sample)
int
getSafe(int sample, int channel)
int
getSamples()
boolean
isSample(int sample)
boolean
isSample(int sample, int channel)
boolean
read(ConnectionReader connection)
void
resize(int samples)
void
resize(int samples, int channels)
void
set(int value, int sample)
void
set(int value, int sample, int channel)
void
setFrequency(int freq)
void
setSafe(int value, int sample)
void
setSafe(int value, int sample, int channel)
Sound
subSound(int first_sample, int last_sample)
boolean
write(ConnectionWriter connection)
-
Methods inherited from class yarp.Portable
copyPortable, getCPtr, getType
-
Methods inherited from class yarp.PortReader
getCPtr, getReadType, swigDirectorDisconnect, swigReleaseOwnership, swigTakeOwnership
-
-
-
-
Constructor Detail
-
Sound
protected Sound(long cPtr, boolean cMemoryOwn)
-
Sound
public Sound(int bytesPerSample)
-
Sound
public Sound()
-
Sound
public Sound(Sound alt)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(Sound obj)
-
subSound
public Sound subSound(int first_sample, int last_sample)
-
resize
public void resize(int samples, int channels)
-
resize
public void resize(int samples)
-
get
public int get(int sample, int channel)
-
get
public int get(int sample)
-
set
public void set(int value, int sample, int channel)
-
set
public void set(int value, int sample)
-
getSafe
public int getSafe(int sample, int channel)
-
getSafe
public int getSafe(int sample)
-
setSafe
public void setSafe(int value, int sample, int channel)
-
setSafe
public void setSafe(int value, int sample)
-
isSample
public boolean isSample(int sample, int channel)
-
isSample
public boolean isSample(int sample)
-
clear
public void clear()
-
getFrequency
public int getFrequency()
-
setFrequency
public void setFrequency(int freq)
-
getBytesPerSample
public int getBytesPerSample()
-
getSamples
public int getSamples()
-
getChannels
public int getChannels()
-
read
public boolean read(ConnectionReader connection)
-
write
public boolean write(ConnectionWriter connection)
-
getRawData
public SWIGTYPE_p_unsigned_char getRawData()
-
getRawDataSize
public int getRawDataSize()
-
-