yarp
Class Sound

java.lang.Object
  extended by yarp.PortReader
      extended by yarp.Portable
          extended by yarp.Sound

public class Sound
extends Portable


Field Summary
 
Fields inherited from class yarp.PortReader
swigCMemOwn
 
Constructor Summary
Sound()
           
Sound(int bytesPerSample)
           
Sound(long cPtr, boolean cMemoryOwn)
           
Sound(Sound alt)
           
 
Method Summary
 void clear()
           
 void delete()
           
protected  void finalize()
           
 int get(int sample)
           
 int get(int sample, int channel)
           
 int getBytesPerSample()
           
 int getChannels()
           
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound(long cPtr,
             boolean cMemoryOwn)

Sound

public Sound(int bytesPerSample)

Sound

public Sound()

Sound

public Sound(Sound alt)
Method Detail

getCPtr

public static long getCPtr(Sound obj)

finalize

protected void finalize()
Overrides:
finalize in class Portable

delete

public void delete()
Overrides:
delete in class Portable

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)
Overrides:
read in class Portable

write

public boolean write(ConnectionWriter connection)
Overrides:
write in class Portable

getRawData

public SWIGTYPE_p_unsigned_char getRawData()

getRawDataSize

public int getRawDataSize()