super();
//
// This line advertizes all the formats that are supported
// by this renderer.
// Here we assume the renderer can support all linear/PCM formats.
//
supportedFormats = new Format[] {
new AudioFormat(
AudioFormat.LINEAR,
44100, // Sample rate
AudioFormat.NOT_SPECIFIED, // Sample size
2, // # of channels
AudioFormat.LITTLE_ENDIAN,
AudioFormat.NOT_SPECIFIED
),
new AudioFormat(
AudioFormat.LINEAR,
44100, // Sample rate
AudioFormat.NOT_SPECIFIED, // Sample size
1, // # of channels
AudioFormat.LITTLE_ENDIAN,
AudioFormat.NOT_SPECIFIED
),
new AudioFormat(
AudioFormat.LINEAR,
22050, // Sample rate
AudioFormat.NOT_SPECIFIED, // Sample size
AudioFormat.NOT_SPECIFIED, // # of channels
AudioFormat.LITTLE_ENDIAN,
AudioFormat.NOT_SPECIFIED
),
new AudioFormat(
AudioFormat.LINEAR,
11025, // Sample rate
AudioFormat.NOT_SPECIFIED, // Sample size
AudioFormat.NOT_SPECIFIED, // # of channels
AudioFormat.LITTLE_ENDIAN,
AudioFormat.NOT_SPECIFIED
),
new AudioFormat(
AudioFormat.LINEAR,
8000, // Sample rate
AudioFormat.NOT_SPECIFIED, // Sample size
AudioFormat.NOT_SPECIFIED, // # of channels
AudioFormat.LITTLE_ENDIAN,
AudioFormat.NOT_SPECIFIED
),
};
gainControl = new MCA(this);