Commit Graph

2078 Commits

Author SHA1 Message Date
David Reid 47b17ad5fa Update extras. 2020-04-04 11:30:05 +10:00
David Reid 457248806b Use double-precision pi constant for ma_cos(). 2020-03-28 10:39:20 +10:00
David Reid b919464161 Fix a typo with a type declaration for lpf1 and lpf2. 2020-03-28 10:38:56 +10:00
David Reid c858ef1569 Fix a warning in ma_wfopen(). 2020-03-26 20:26:57 +10:00
David Reid 537a27ded6 Minor changes to ma_wfopen(). 2020-03-26 17:28:03 +10:00
David Reid f9032c55fb Documentation fixes. 2020-03-23 20:03:40 +10:00
David Reid 4b45e1ef1b Version 0.10.2 2020-03-22 19:02:38 +10:00
David Reid e01fc7472b Fix a bug in ma_linear_resampler_set_rate(). 2020-03-21 09:06:07 +10:00
David Reid 7ac0f9f28a Update revision history. 2020-03-18 07:40:43 +10:00
Clownacy 8bfad9ddd9 Mark some non-static functions as MA_API 2020-03-17 14:35:13 +00:00
David Reid 06e2f7c993 Version 0.10.1 2020-03-17 15:37:13 +10:00
David Reid c9cc99141c Minor formatting. 2020-03-17 07:14:01 +10:00
Krzysztof Kondrak 75e20452d9 Return proper result when fopen() fails. 2020-03-16 21:55:57 +01:00
David Reid b3d5842460 Update revision history. 2020-03-15 07:56:40 +10:00
Clownacy b85a88089c Fix Visual Studio .NET 2003 compatibility
Apparently `errno_t` doesn't exist here either?
2020-03-10 23:13:52 +00:00
Clownacy cd38bc0573 Fix Visual Studio 6 compatibility
That last issue is annoying: `unsigned __int64` cannot be converted
to `double`, but `signed __int64` can. I'm not sure if using the
signed type in these cases instead is actually safe.

This is a much more common problem in dr_flac.
2020-03-10 21:37:40 +00:00
David Reid 6aa342560f Fix some compilation warnings.
Public issue https://github.com/dr-soft/miniaudio/issues/139
2020-03-09 18:59:59 +10:00
David Reid 81a3f7172d Fix unused parameter warnings on macOS. 2020-03-08 12:42:38 +10:00
David Reid a5ee74ed91 Rearrange some includes.
Some headers are only required for the device IO API. This commit moves
these headers to the device IO section that they're excluded when
MA_NO_DEVICE_IO is set.

Public issue https://github.com/dr-soft/miniaudio/issues/138
2020-03-08 11:36:45 +10:00
David Reid a1f902d1be Minor formatting for improved readability. 2020-03-08 09:24:59 +10:00
David Reid 427f1f9930 Don't include pthread.h nor semaphore.h with MA_NO_DEVICE_IO.
Public issue https://github.com/dr-soft/miniaudio/issues/138
2020-03-08 09:15:34 +10:00
David Reid c59ccbf5f8 Fix compilation warnings. 2020-03-08 09:12:45 +10:00
David Reid ad4041e4e7 Remove MA_ALIGN. 2020-03-08 08:16:14 +10:00
David Reid 6d711053db Add MA_API decorations.
Public issue https://github.com/dr-soft/miniaudio/issues/139
2020-03-08 08:08:19 +10:00
David Reid ef2a27b453 Fix some typos in documentation. 2020-03-08 06:13:42 +10:00
David Reid 0a4a2b1119 Fix typo in release notes for 0.10. 2020-03-07 14:11:32 +10:00
David Reid d1a166c83a Version 0.10.0 2020-03-07 13:37:21 +10:00
David Reid f2934b135f Core Audio: Fix warnings for non-Desktop Apple platforms. 2020-03-07 11:50:09 +10:00
David Reid 80db8d96fc sndio: Fix a bug when retrieving the best sample format. 2020-03-07 10:54:30 +10:00
David Reid 000180baf4 Silence a warning on the Emscripten build. 2020-03-07 10:16:53 +10:00
David Reid 2344405606 Minor documentation update. 2020-03-07 08:08:53 +10:00
David Reid 4efbb28699 Minor documentation improvements. 2020-03-05 21:13:49 +10:00
David Reid b1d4e9a033 Fix some warnings. 2020-03-03 18:59:51 +10:00
David Reid b8b228a9da Fix a bug in WASAPI where an empty message could be logged. 2020-03-01 11:31:51 +10:00
David Reid 79cca305d9 Minor rewording to documentation. 2020-03-01 07:20:01 +10:00
David Reid 6785f777a4 Fix typos. 2020-03-01 06:54:16 +10:00
David Reid 144a8e47fb Update release notes. 2020-02-29 19:30:51 +10:00
David Reid 02620ad059 Overhaul result codes and how they're propagated.
If you're a binding maintainer you will need to update to use the new
result codes.
2020-02-29 16:39:02 +10:00
David Reid f57f78d4bf Update revision history. 2020-02-29 12:17:18 +10:00
David Reid bff8c83ed9 Improve result codes when opening a file. 2020-02-29 12:11:23 +10:00
David Reid 3cb9622a96 Add more results codes in preparation for future work. 2020-02-29 11:59:11 +10:00
David Reid a90131d843 Improvements to high order low- and high-pass filters.
This changes the Q value of the chain of second order low-pass filters
making up the high order filters. Previously the Q value was always set
to 0.707107 for the entire chain, but this is incorrect for Butterworth
filters when the order is greater than 2.

This should make a small improvement to the quality of the linear
resampler.
2020-02-29 10:14:44 +10:00
David Reid 163286be2c Add support for configuring the Q parameter of biquad based filters.
This is in preparation for improving ma_lpf, ma_hpf and ma_bpf to make
them proper Butterworth filters.
2020-02-28 20:48:50 +10:00
David Reid 5bcfda1462 Minor restructuring for consistency. 2020-02-28 19:31:18 +10:00
David Reid 324118e8bc Process first order filters before second order in LPF and HPF filters. 2020-02-28 19:26:30 +10:00
David Reid 2a77b937cb Be more consistent when describing filters. 2020-02-28 19:24:02 +10:00
David Reid e563b19e2b Improvements to ma_tzcnt32(). 2020-02-27 18:42:45 +10:00
David Reid 2be437ea33 Update revision history. 2020-02-26 21:21:24 +10:00
David Reid 228094a9ac Add some brief documentation for the new filters. 2020-02-26 19:11:16 +10:00
David Reid 34120546ca Add documentation for the encoding API. 2020-02-26 18:01:01 +10:00