Commit Graph

3059 Commits

Author SHA1 Message Date
David Reid 90674d4b09 Don't log device info unless MA_DEBUG_OUTPUT is enabled. 2021-12-27 09:57:41 +10:00
David Reid 46a062e149 Add ma_device_get_name(). 2021-12-27 09:49:52 +10:00
David Reid b611aa4de9 Add ma_device_get_info() and try to fix a bug in AAudio.
Public issue: https://github.com/mackron/miniaudio/issues/294
2021-12-26 18:29:02 +10:00
David Reid aae6c899c9 Use enums for flag declarations.
Public enum https://github.com/mackron/miniaudio/issues/218
2021-12-25 15:34:32 +10:00
David Reid d36acb0d87 Update revision history. 2021-12-25 15:10:49 +10:00
David Reid f9a355527a Switch result codes to an enum.
Public issue https://github.com/mackron/miniaudio/issues/218
2021-12-25 14:59:12 +10:00
David Reid 2b37266b47 Update revision history. 2021-12-25 13:42:01 +10:00
David Reid a50426b08f Merge pull request #382 from kgdev/dev
fix a typo when using ma_round_to_standard_sample_rate__opensl.
2021-12-25 13:39:04 +10:00
David Reid 5efdcf7188 Merge pull request #383 from Perksey/patch-1
Reorder examples in README
2021-12-25 13:04:09 +10:00
Dylan Perks 76dcdf776b Reorder examples in README 2021-12-24 19:16:24 +00:00
kgdev b571441204 fix typo in (*g_maEngineSL)->CreateAudioRecorder 2021-12-24 17:42:55 +08:00
kgdev bbc46b8011 fix a typo when using ma_round_to_standard_sample_rate__opensl. 2021-12-24 14:20:01 +08:00
David Reid eabae58988 Remove old release notes. 2021-12-23 19:25:36 +10:00
David Reid 1a06769faf Update revision history. 2021-12-23 19:21:14 +10:00
David Reid 1b60027ac3 Convert channel positions over to an enum.
Public issue https://github.com/mackron/miniaudio/issues/218
2021-12-23 17:23:22 +10:00
David Reid 7f7e8b267e AAudio: Allow initialization of devices in exclusive mode. 2021-12-23 16:52:16 +10:00
David Reid 27e792cf94 Merge pull request #381 from kgdev/dev
fix wrong assert in ma_open_stream__aaudio
2021-12-23 16:36:02 +10:00
kgdev cbf56420c8 fix wrong assert in ma_open_stream__aaudio 2021-12-23 13:12:12 +08:00
David Reid 6aab29a982 OpenSL: Set the default device ID when enumerating over devices.
Public issue https://github.com/mackron/miniaudio/issues/379
2021-12-22 17:39:44 +10:00
David Reid fe6b8dc08f OpenSL: Always force the use of the default device on Android.
Public issue https://github.com/mackron/miniaudio/issues/379
2021-12-22 17:31:18 +10:00
David Reid 0c6dfa6911 Whitespace. 2021-12-22 17:10:24 +10:00
David Reid cd1692ac56 Fix a crash in ma_engine_init().
This happens when the pEngine parameter is NULL.
2021-12-22 17:09:11 +10:00
David Reid c9a4f21e4e Version 0.11.0 2021-12-18 21:19:34 +10:00
David Reid 042fe95b70 Update readme. 2021-12-18 21:13:38 +10:00
David Reid 7a8eed3ed5 Documentation fixes. 2021-12-18 20:58:11 +10:00
David Reid b0ee942427 Update c89atomic. 2021-12-18 19:16:23 +10:00
David Reid ec14c62a93 Silence a warning with GCC. 2021-12-18 19:12:31 +10:00
David Reid 064c1abf30 Engine: Add support for controlling how the mono channel is expanded. 2021-12-18 18:48:37 +10:00
David Reid 1bbd14a592 Minor documentation change. 2021-12-18 18:16:50 +10:00
David Reid 3344df4f1c Minor updates to example description. 2021-12-18 18:15:21 +10:00
David Reid 800a7192ca Fix documentation error. 2021-12-18 18:15:09 +10:00
David Reid 0108939910 Update branding icon. 2021-12-18 15:38:10 +10:00
David Reid bb0d5506de Add an example for using effects with the engine. 2021-12-18 13:17:18 +10:00
David Reid fdc43c4c95 Minor updates to examples. 2021-12-18 13:14:57 +10:00
David Reid 80ca8c838e Fix an error with the previous commit. 2021-12-16 19:46:07 +10:00
David Reid 409e575a08 Use the device channel map for listeners if applicable. 2021-12-16 19:45:06 +10:00
David Reid 0704e1fd24 Add a diagram for the node graph to documentation. 2021-12-15 19:41:55 +10:00
David Reid 3c8a39f0fd API CHANGE: Rename some volume control APIs:
- ma_device_set_master_gain_db() > ma_device_set_master_volume_db()
  - ma_device_get_master_gain_db() > ma_device_get_master_volume_db()

This commit also relaxes the upper limit for volume control to allow
for amplification.

Public issue https://github.com/mackron/miniaudio/issues/377
2021-12-15 19:25:49 +10:00
David Reid 13b905ca64 Add node graph example. 2021-12-15 18:10:43 +10:00
David Reid 8b2397a3fb Pedantic whitespace fix. 2021-12-14 19:49:33 +10:00
David Reid ad1c36dfae More documentation improvements. 2021-12-13 21:01:53 +10:00
David Reid 04a6b232bf Update version number and revision history. 2021-12-13 17:41:13 +10:00
David Reid 01881a2b02 Add some documentation for custom resamplers. 2021-12-12 19:31:39 +10:00
David Reid 448d8a14fc Improve documentation for resource management. 2021-12-12 19:06:56 +10:00
David Reid 40c8235e9d Add documentation for custom decoders. 2021-12-12 16:57:31 +10:00
David Reid 7e708dccef Add small section for optimization tips to documentation.
This still needs some expansion.
2021-12-12 16:06:46 +10:00
David Reid 1484b9e239 Documentation. 2021-12-12 16:00:04 +10:00
David Reid 274bdd9ca5 API CHANGE: Rename linear/decibel conversion functions.
- ma_factor_to_gain_db > ma_volume_linear_to_db
  - ma_gain_db_to_factor > ma_volume_db_to_linear
2021-12-12 15:37:38 +10:00
David Reid bf60b96189 Add documentation about object management. 2021-12-12 15:25:22 +10:00
David Reid 23e87698e1 Update c89atomic. 2021-12-12 15:07:21 +10:00