The 32 ohm represent the headpones and the signal generator is the OUT of the AD9833
Signal looks very clean either when turning on or turning off on an oscilloscope but there is a hearable click/pop noise only when turning off the sound (gen.EnableOutput(false))
Yes you need to mute it before turning it off. I am not sure if that function is in the library or not. You can also put a transmission gate (analog switch) in the audio line with a simple pull down resistor. Many times inputs are simply shorted but without information on the generator I cannot be sure it will not damage it. Thanks for the schematic it helps better then a page explaining your project. Good Job!
May you explain what difference does it make "muting" it before disabling it? The analog switch will still open the circuit and acts as if it was disabled. I believe it happens because muting/disabling it quickly makes the voltage jump from a value to instant 0 creating this pop. I am not sure though
If you disable the clock the DAC output remains unchanged, so you should not hear a click/pop.
// Enable / Disable Internal Clock
gen.EnableInternalClock ( false );
I found a function named DisableInternalClock which I think is the one you are referring to. However, with trying it, the popping is much worse. Like 5x worse.
Same results achieved with sleep functions