sdljava.mixer

Class MixerSpec

public class MixerSpec extends 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
intchannels
A pointer to an int where the number of audio channels will be stored.
intformat
the output format actually being used by the audio device
intfrequency
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
intgetChannels()
Gets the value of channels
intgetFormat()
Gets the value of format
intgetFrequency()
Gets the value of frequency
voidsetChannels(int argChannels)
Sets the value of channels
voidsetFormat(int argFormat)
Sets the value of format
voidsetFrequency(int argFrequency)
Sets the value of frequency
StringtoString()

Field Detail

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.

format

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

frequency

int frequency
the frequency actually used by the opened audio device

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

getChannels

public int getChannels()
Gets the value of channels

Returns: the value of channels

getFormat

public int getFormat()
Gets the value of format

Returns: the value of format

getFrequency

public int getFrequency()
Gets the value of frequency

Returns: the value of frequency

setChannels

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

Parameters: argChannels Value to assign to this.channels

setFormat

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

Parameters: argFormat Value to assign to this.format

setFrequency

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

Parameters: argFrequency Value to assign to this.frequency

toString

public String toString()