Commit Graph

324 Commits

Author SHA1 Message Date
David Reid cf3fd4876f Add support for pink noise. 2020-02-24 20:22:14 +10:00
David Reid b1c4cfe5cc Remove some old testing code. 2020-02-24 17:27:08 +10:00
David Reid a5644d7295 Documentation fixes. 2020-02-24 17:25:49 +10:00
David Reid f305dc9890 Add second order high shelf filter. 2020-02-23 21:21:02 +10:00
David Reid 5b385670f3 Add second order low shelf filter. 2020-02-23 21:03:22 +10:00
David Reid b6d0591042 Minor restructuring. 2020-02-23 20:17:53 +10:00
David Reid f1abfccb52 Add second order notching filter. 2020-02-23 20:08:44 +10:00
David Reid 825cd23ae8 Add second order peaking EQ filter.
This API is called ma_peak.
2020-02-23 19:52:01 +10:00
David Reid b4e024a481 Update documentation. 2020-02-23 17:19:33 +10:00
David Reid 2fd71d3a7a Add an encoding API.
This API is called ma_encoder. Currently it only supports encoding to
WAV files, which is done via dr_wav.
2020-02-23 17:04:46 +10:00
David Reid 4d3dcb71bd Integrate the new LPF into the linear resampler. 2020-02-23 15:11:42 +10:00
David Reid 3edc03f931 Add ma_bpf with support for configuring the number of poles. 2020-02-23 14:46:32 +10:00
David Reid cda27514f0 Add ma_hpf with support for configuring the number of poles. 2020-02-23 14:07:48 +10:00
David Reid 2e1869ab1b Add 1-pole high pass filter. 2020-02-23 13:55:46 +10:00
David Reid a48c23a5a1 Minor restructuring. 2020-02-23 12:14:23 +10:00
David Reid a263cd9730 Add ma_lpf with support for configuring the number of poles. 2020-02-23 12:04:43 +10:00
David Reid e9234f8894 Rename ma_bpf to ma_bpf2. 2020-02-23 10:54:27 +10:00
David Reid 846b27908d Rename ma_hpf to ma_hpf2. 2020-02-23 10:50:34 +10:00
David Reid 22b958b471 Rename ma_lpf to ma_lpf2. 2020-02-23 10:48:15 +10:00
David Reid d6f1d05d64 Add ma_lpf1_config_init(). 2020-02-23 10:35:15 +10:00
David Reid 10f0aebed3 Add 1-pole low-pass filter. 2020-02-23 10:12:29 +10:00
David Reid 969679113c Fix a typo. 2020-02-22 21:31:03 +10:00
David Reid e51a732126 Add website URL. 2020-02-22 19:39:32 +10:00
David Reid 27c7c41716 Update release notes. 2020-02-22 19:39:14 +10:00
David Reid 479503ec02 Add documentation about negative amplitude with waveforms. 2020-02-22 15:05:52 +10:00
David Reid 619b94c3b4 Optimizations to f32 and s16 waveform generation. 2020-02-22 14:32:06 +10:00
David Reid 6b2997728e Minor rewording. 2020-02-22 13:15:13 +10:00
David Reid 187e8b2e5d Bug fixes to noise generation. 2020-02-22 13:01:35 +10:00
David Reid ccba7ef6a9 Fix a compilation error when using MA_USE_REFERENCE_CONVERSION_APIS. 2020-02-22 11:23:15 +10:00
David Reid 367e864431 Update release notes. 2020-02-22 10:46:31 +10:00
David Reid 53adeab6ea Add documentation for the noise API. 2020-02-22 10:24:00 +10:00
David Reid 117b1b8595 Update waveform API to be consistent with other APIs. 2020-02-22 10:06:14 +10:00
David Reid 502d55ec69 Fix typos. 2020-02-22 09:48:33 +10:00
David Reid 4a3ddad442 Add initial code for a noise generation API. 2020-02-21 20:28:12 +10:00
David Reid 2322d65470 Make use of EMSCRIPTEN_KEEPALIVE consistent with documentation.
Unlikely fix for https://github.com/dr-soft/miniaudio/issues/134
2020-02-21 19:17:33 +10:00
David Reid 17e5caf9bb Fix a typo. 2020-02-21 19:04:37 +10:00
David Reid ea17a0d820 Update documentation. 2020-02-19 20:32:15 +10:00
David Reid 50f97346c5 Add band-pass filter. 2020-02-19 19:17:10 +10:00
David Reid f7d7208f68 Add high pass filter. 2020-02-19 18:28:07 +10:00
David Reid 3f321db1fb Add documentation for the waveform API. 2020-02-19 18:05:39 +10:00
David Reid f98fd001de Add some APIs to allow dynamics changes to waveform parameters. 2020-02-19 17:40:07 +10:00
David Reid 8a7a65c271 API CHANGE: Replace ma_sine_wave with ma_waveform.
The ma_waveform API is a more general API supporting different waveform
including sine, square, triangle and sawtooth.
2020-02-18 20:46:36 +10:00
David Reid 415ded561c Remove more unused macros. 2020-02-16 20:50:48 +10:00
David Reid 57884cdf66 Remove unused macros. 2020-02-16 20:50:04 +10:00
David Reid d356e71a02 Fix VC6 build. 2020-02-16 14:58:38 +10:00
David Reid 336a8cbb98 API CHANGE: Rename ma_calculate_frame_count_after_src().
This has been renamed to ma_calculate_frame_count_after_resampling()
for consistency with the new ma_resampler API.
2020-02-16 12:59:31 +10:00
David Reid 18df4a80c8 Bug fix for ma_decoder_get_length_in_pcm_frames().
This previously returned the frame count based on the internal sample
rate of the underlying stream, whereas it should have instead returned
a frame count based on the output sample rate. This commit fixes this.

This commit commit also changes the implementation of
ma_calculate_frame_count_after_src() to use the ma_resampler API which
should make it a bit more robust and easier to maintain.
2020-02-16 12:46:58 +10:00
David Reid 7e5863b37b Add some comments. 2020-02-15 07:37:00 +10:00
David Reid 259d8aa2eb Core Audio: Add a comment. 2020-02-14 21:54:03 +10:00
David Reid cd66d5848c WebAudio: Add a clarification comment concerning draining. 2020-02-14 19:59:14 +10:00