sdl.audio
Class SDLAudioSpec

java.lang.Object
  |
  +--sdl.audio.SDLAudioSpec

public class SDLAudioSpec
extends java.lang.Object

Format of the SDL audio stream. All AudioPlay objects must be converted into the format of the current audio stream so they may be mixed and played.


Constructor Summary
SDLAudioSpec(int handle)
           
SDLAudioSpec(int freq, short format, byte channels, byte silence, short samples, int size)
           
 
Method Summary
 void free()
           
 byte getChannels()
           
 short getFormat()
           
 int getFreq()
           
 int getHandle()
           
 int save()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDLAudioSpec

public SDLAudioSpec(int handle)

SDLAudioSpec

public SDLAudioSpec(int freq,
                    short format,
                    byte channels,
                    byte silence,
                    short samples,
                    int size)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getHandle

public int getHandle()

save

public int save()

free

public void free()

getFormat

public short getFormat()

getChannels

public byte getChannels()

getFreq

public int getFreq()