I’ve got another question regarding the PlayPCMAudio-method of the cerberus.
I’ve got an audio-amp attached to the analog-output of ma cerberus. If I start the cerb, erverything is ok, but after having played a wave-sound by using PlayPCMAudio there’s a loud noise coming from the speaker.
Is it possible to get the cerberus into the same state like before playing the audio file? Or is there some kind of reset for the analog output?
//define the analog output port to pin PA4
private static Cpu.Pin analogOutPin = GHI.OSHW.Hardware.FEZCerberus.Pin.PA4;
private static OutputPort analogOut = new OutputPort(analogOutPin, false);
//Play the soundfile
GHI.OSHW.Hardware.Util.PlayPCMAudio(Cpu.AnalogOutputChannel.ANALOG_OUTPUT_0, wavBuffer, 0, (int)Subchunk2Size, sampleRate);
//set the analog out to zero
analogOut.Write(false);
Is this the right way?
It doesn’t help, so maybe I’m wrong.