@@ -143,9 +143,9 @@ waveform you want to generated via the `ma_waveform_config` object which you can
Noise Generation
----------------
A noise generation API has been added. This is used via the `ma_noise` API. Currently only white noise is supported, but pink and brown noise is planned. The
`ma_noise` API is similar to the waveform API. Use `ma_noise_config_init()` to initialize a config object, and then pass it into `ma_noise_init()` to
initialize a `ma_noise` object. Then use `ma_noise_read_pcm_frames()` to read PCM data.
A noise generation API has been added. This is used via the `ma_noise` API. Currently white and pink noise is supported. The `ma_noise` API is similar to the
waveform API. Use `ma_noise_config_init()` to initialize a config object, and then pass it into `ma_noise_init()` to initialize a `ma_noise` object. Then use
`ma_noise_read_pcm_frames()` to read PCM data.
Miscellaneous Changes
...
...
@@ -1070,10 +1070,22 @@ The amplitude, frequency and sample rate can be changed dynamically with `ma_wav
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.
Below are the supported waveform types:
|---------------------------|
| Enum Name |
|---------------------------|
| ma_waveform_type_sine |
| ma_waveform_type_square |
| ma_waveform_type_triangle |
| ma_waveform_type_sawtooth |
|---------------------------|
Noise
-----
miniaudio supports generation of white noise via the `ma_noise` API. Example:
miniaudio supports generation of white and pink noise via the `ma_noise` API. Example: