public void Updated()
{
if (SampleCount < 1) throw(new InvalidOperationException("SampleCount < 1"));
if (NumberOfChannels < 1) throw (new InvalidOperationException("NumberOfChannels < 1"));
this.Samples = new short[SampleCount * NumberOfChannels];
this.StereoSamplesBuffer = new short[SampleCount * 2];
this.VolumeLeft = PspAudio.MaxVolume;
this.VolumeRight = PspAudio.MaxVolume;
}