From 479503ec029c779dc762452f7fa134dd3dea48f8 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 22 Feb 2020 15:05:52 +1000 Subject: [PATCH] Add documentation about negative amplitude with waveforms. --- miniaudio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index d0d866a3..ebc13193 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -1060,6 +1060,9 @@ miniaudio supports generation of sine, square, triangle and sawtooth waveforms. The amplitude, frequency and sample rate can be changed dynamically with `ma_waveform_set_amplitude()`, `ma_waveform_set_frequency()` and `ma_waveform_set_sample_rate()` respectively. +You can reverse the waveform by setting the amplitude to a negative value. You can use this to control whether or not a sawtooth has a positive or negative +ramp, for example. + Noise -----