Mute Packet

This processing stage will delete the audio payload content if it contains only samples with a numerical value of zero. It will replace it with a byte containing the original payload size to allow the receiving pipeline to recreate the payload full of zeros.

To use this processing stage, add the processing stage at the end of the transmitting pipeline and at the beginning of the receiving pipeline. Set the is_tx parameter accordingly.

This processing stage can be useful when using a digital audio producer (e.g. USB Audio) with a SPARK Wireless Core audio consumer using IOOK as modulation. When the audio is muted, audio packets will contain zeros which do not generate any pulses when using the IOOK modulation. This makes the audio packets undetectable by another SPARK wireless device running a clear channel assessment (CCA) check.