|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.audio.SDLAudioSpec
public class SDLAudioSpec
The SDL_AudioSpec structure is used to describe the format of some audio data. This structure is used by SDL_OpenAudio and SDL_LoadWAV. While all fields are used by SDL_OpenAudio, only freq, format, samples and channels are used by SDL_LoadWAV.
Field Summary | |
---|---|
(package private) SDL_AudioSpec |
swigAudioSpec
|
Constructor Summary | |
---|---|
SDLAudioSpec()
|
Method Summary | |
---|---|
short |
getChannels()
|
int |
getFormat()
|
int |
getFreq()
|
int |
getSamples()
|
short |
getSilence()
|
long |
getSize()
|
SDL_AudioSpec |
getSwigAudioSpec()
Gets the value of swigAudioSpec |
void |
setChannels(int channels)
Set number of channels (1-mono, 2-stereo) |
void |
setFormat(int format)
Set Audio data format |
void |
setFreq(int freq)
Set Audio frequency in samples per second |
void |
setSamples(int samples)
Set Audio buffer size in samples |
void |
setSwigAudioSpec(SDL_AudioSpec argSwigAudioSpec)
Sets the value of swigAudioSpec |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
SDL_AudioSpec swigAudioSpec
Constructor Detail |
---|
public SDLAudioSpec()
Method Detail |
---|
public SDL_AudioSpec getSwigAudioSpec()
public void setSwigAudioSpec(SDL_AudioSpec argSwigAudioSpec)
argSwigAudioSpec
- Value to assign to this.swigAudioSpecpublic void setFreq(int freq)
freq
- an int
valuepublic int getFreq()
public void setFormat(int format)
format
- an int
valuepublic int getFormat()
public void setChannels(int channels)
channels
- a short
valuepublic short getChannels()
public short getSilence()
public void setSamples(int samples)
samples
- an int
valuepublic int getSamples()
public long getSize()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |