Commit Graph

2065 Commits

Author SHA1 Message Date
David Reid 069549254d Rename some APIs from previous commit.
This uses the "enabled" notion rather than "available" as I think it's
a bit clearer in terms of enabled at compile time rather than available
at run time.

Public issue https://github.com/mackron/miniaudio/issues/211
2020-10-25 09:54:58 +10:00
David Reid e59ee1e773 Add support for retrieving available backends at run-time.
The following APIs have been added:

  * ma_is_backend_available()
  * ma_get_avaialable_backends()

Public issue https://github.com/mackron/miniaudio/issues/211
2020-10-25 09:06:57 +10:00
David Reid 52e45237ac Fix some typos. 2020-10-13 17:29:31 +10:00
David Reid 7090c1b773 Core Audio: Fix an error from an earlier commit.
Public issue https://github.com/mackron/miniaudio/issues/201
2020-10-11 21:51:09 +10:00
David Reid 3c68efb333 Fix a bug in the stereo panner effect. 2020-10-11 15:40:58 +10:00
David Reid d8aa619250 Add some experimental fading APIs to the engine API.
This is a simplified and somewhat more intuitive way of handling fades.
With these APIs, fades are applied immediately, whereas with the old
fading APIs the fades were scheduled. The old APIs still exist, but may
be removed.

The ma_sound_set_fade_in_frames/milliseconds() API sets the fade which
will be applied immediately. If the starting volume is negative, the
fade will start from the current fade volume. This will also overwrite
any existing fade that is already happening.

The ma_sound_get_current_fade_volume() API allows you to retrieve the
current volume of the fade.

The fade is layered on top of the normal volume parameter. I.e. they
are configured and applied to the signal interdependently.

Currently, all fades are applied linearly.
2020-10-11 14:41:08 +10:00
David Reid f6beb7993c Update revision history. 2020-10-11 11:46:47 +10:00
David Reid 016eed9698 Tabs to spaces. 2020-10-11 11:38:46 +10:00
David Reid e972a03b3f Core Audio: Add notes regarding the Apple notarization process. 2020-10-11 11:36:57 +10:00
David Reid 6ecb728326 Core Audio: Fix a bug when using multiple contexts. 2020-10-11 10:56:53 +10:00
David Reid 0ae8adc1c0 Core Audio: Remove logic that forces the device's original sample rate. 2020-10-11 10:27:09 +10:00
David Reid 5a20743a03 Core Audio: Fix a compilation warning. 2020-10-11 10:08:03 +10:00
David Reid 4f63069984 Engine: Fix a bug where sounds groups are not initialized properly.
This is happening due to the hierarchy not being constructed properly.
2020-10-11 09:40:57 +10:00
David Reid ea82457317 Update revision history. 2020-10-08 18:56:54 +10:00
David Reid 6fda59f4e9 Merge pull request #202 from gooderist/dev
Fix loopback typo
2020-10-08 18:54:11 +10:00
Will Wong 78dab3643c Fix loopback typo 2020-10-08 13:20:12 +09:00
David Reid 17b360539f Update split version. 2020-10-07 17:43:08 +10:00
David Reid 634cdb028f Version 0.10.20 2020-10-06 17:43:19 +10:00
David Reid d20c3bf5a9 Fix the UWP build.
Public issue https://github.com/mackron/miniaudio/issues/199
2020-10-05 07:55:20 +10:00
David Reid 742bccff4d Remove an unnecessary member from ma_engine_config. 2020-10-01 20:24:52 +10:00
David Reid e951e7ee61 Fix compilation errors when compiling as C++. 2020-10-01 20:12:17 +10:00
David Reid 7bf985eb82 Update feature list. 2020-09-30 20:29:11 +10:00
David Reid 17c4c23b6a Change some wording on the website.
This phrase now has some negative connotations. They just had to ruin
it, didn't they?!
2020-09-30 20:25:28 +10:00
David Reid 4b32673701 Update documentation to use more professional language. 2020-09-30 20:10:26 +10:00
David Reid 5b82783d19 Version 0.10.19 2020-09-22 21:43:03 +10:00
David Reid 35beabb8d7 Fix a bug in ma_decoder_seek_to_pcm_frames().
This bug is that the function is never returning MA_SUCCESS even when
successful.
2020-09-21 18:01:46 +10:00
David Reid 7a72cc3f84 WASAPI: Return an error when the native format is not supported. 2020-09-20 13:26:35 +10:00
David Reid 5effa71e94 Minor refactor. 2020-09-15 17:39:15 +10:00
David Reid 0a73233877 Try fixing a bug where a sound is never unmarked as mixing.
This should fix a deadlock when uninitializing a sound after it's
reached the end.
2020-09-14 19:51:21 +10:00
David Reid 5e1f653efb Engine: Fix some bugs with effects. 2020-09-12 19:14:36 +10:00
David Reid 8d64b597f8 Fix a typo. 2020-09-12 12:56:57 +10:00
David Reid c50d5435e1 Store the sample rate in the ma_lpf and ma_hpf structures. 2020-09-12 12:56:41 +10:00
David Reid b0736de6b1 Add support for initializing an engine using a pre-initialized device. 2020-09-09 19:15:40 +10:00
David Reid 0c4fc08759 Minor documentation updates. 2020-09-05 13:45:22 +10:00
David Reid 9535551f3c Add a new resource manager example and simplify the old one. 2020-09-05 10:49:57 +10:00
David Reid e6392c0ba7 Add hello world example for engine. 2020-09-05 10:24:31 +10:00
David Reid acf4284aa9 Fix a crash when passing in NULL for the engine config. 2020-09-05 10:12:27 +10:00
David Reid d0bfcf0cc1 Rename ma_engine.h to miniaudio_engine.h. 2020-09-05 10:01:44 +10:00
David Reid 3c734f936f Merge ma_mixing into ma_engine. 2020-09-05 09:49:01 +10:00
David Reid edb8f870db Create FUNDING.yml 2020-09-02 17:30:10 +10:00
David Reid 4203697b38 Version 0.10.18 2020-08-30 11:58:18 +10:00
David Reid ecc0cb3418 Update links to point to the new repository location. 2020-08-30 11:56:37 +10:00
David Reid 6562e6a0c8 Update FLAC decoder. 2020-08-30 11:41:37 +10:00
David Reid 2012c93cc9 Add support for customizing the VFS for ma_engine. 2020-08-29 20:47:43 +10:00
David Reid 35d8f093ec Only set the isPlaying flag when the audio has finished playing. 2020-08-29 18:05:45 +10:00
David Reid 3a347e04ed Fix a bug where a sound is never marked as not playing. 2020-08-29 17:24:11 +10:00
David Reid ecb139a791 Update revision history. 2020-08-29 16:50:58 +10:00
David Reid dde178a0ea Add a comment about a VC6 limitation. 2020-08-29 15:09:39 +10:00
David Reid 578db3c8e1 Remove an unnecessary function declaration. 2020-08-29 15:00:27 +10:00
David Reid 7adf2f3bbc Merge pull request #192 from Clownacy/dev
Fix some VC6/2003 errors
2020-08-29 14:50:17 +10:00