43int tone_gen(int16_t *tone,
size_t *tone_size, uint16_t tone_freq_hz, uint32_t smpl_freq_hz,
65int tone_gen_size(
void *tone,
size_t *tone_size, uint16_t tone_freq_hz, uint32_t sample_freq_hz,
66 uint8_t sample_bits, uint8_t carrier_bits,
float amplitude);
int tone_gen(int16_t *tone, size_t *tone_size, uint16_t tone_freq_hz, uint32_t smpl_freq_hz, float amplitude)
Generates one full pulse-code modulation (PCM) period of a tone with the given parameters.
int tone_gen_size(void *tone, size_t *tone_size, uint16_t tone_freq_hz, uint32_t sample_freq_hz, uint8_t sample_bits, uint8_t carrier_bits, float amplitude)
Generates one full pulse-code modulation (PCM) period of a tone with the given parameters.