sdljava.mixer
Class MixerSpec

java.lang.Object
  extended by sdljava.mixer.MixerSpec

public class MixerSpec
extends java.lang.Object

Encapsulates the return information from the Mix_QuerySpec function call.

Version:
$Id: MixerSpec.java,v 1.2 2004/12/24 17:32:16 ivan_ganza Exp $
Author:
Ivan Z. Ganza

Field Summary
(package private)  int channels
          A pointer to an int where the number of audio channels will be stored.
(package private)  int format
          the output format actually being used by the audio device
(package private)  int frequency
          the frequency actually used by the opened audio device
 
Constructor Summary
MixerSpec(int frequency, int format, int channels)
          Creates a new MixerSpec instance.
 
Method Summary
 int getChannels()
          Gets the value of channels
 int getFormat()
          Gets the value of format
 int getFrequency()
          Gets the value of frequency
 void setChannels(int argChannels)
          Sets the value of channels
 void setFormat(int argFormat)
          Sets the value of format
 void setFrequency(int argFrequency)
          Sets the value of frequency
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

frequency

int frequency
the frequency actually used by the opened audio device


format

int format
the output format actually being used by the audio device


channels

int channels
A pointer to an int where the number of audio channels will be stored. 2 will mean stereo, 1 will mean mono.

Constructor Detail

MixerSpec

public MixerSpec(int frequency,
                 int format,
                 int channels)
Creates a new MixerSpec instance.

Parameters:
frequency - an int value
format - an int value
channels - an int value
Method Detail

getFrequency

public int getFrequency()
Gets the value of frequency

Returns:
the value of frequency

setFrequency

public void setFrequency(int argFrequency)
Sets the value of frequency

Parameters:
argFrequency - Value to assign to this.frequency

getFormat

public int getFormat()
Gets the value of format

Returns:
the value of format

setFormat

public void setFormat(int argFormat)
Sets the value of format

Parameters:
argFormat - Value to assign to this.format

getChannels

public int getChannels()
Gets the value of channels

Returns:
the value of channels

setChannels

public void setChannels(int argChannels)
Sets the value of channels

Parameters:
argChannels - Value to assign to this.channels

toString

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