masking function has no segfaults, and transmit now outputs audio