Commit Graph

624 Commits

Author SHA1 Message Date
David Reid 4c098c200d Make the mal_src API consistent. 2018-04-01 12:44:22 +10:00
David Reid 5bf26d358c Remove some bloat from mal_dsp. 2018-04-01 12:19:43 +10:00
David Reid 165350e7c5 Make mal_dsp API consistent. 2018-04-01 11:52:55 +10:00
David Reid 70e55d39f8 Rename mal_channel_router_init_deinterleaved to mal_channel_router_init 2018-04-01 11:29:11 +10:00
David Reid ac4c1109f8 Make channel router API consistent with format converter. 2018-04-01 11:13:17 +10:00
David Reid 96815f4351 Simplify the format converter API. 2018-04-01 11:00:36 +10:00
David Reid d5549b371a Rename some functions from "read_frames" to "read". 2018-04-01 10:44:41 +10:00
David Reid 1ef58d540a Add a pUserData parameter to read functions for data conversion. 2018-04-01 10:39:22 +10:00
David Reid 6f596d93f3 Set up some infrastructure for the new data conversion system. 2018-04-01 09:50:42 +10:00
David Reid 847897e3ea Add mal_channel_router_config_init(). 2018-03-31 17:16:07 +10:00
David Reid 81ae390c0a Use the term "deinterleaved" instead of "separated". 2018-03-31 17:08:08 +10:00
David Reid 82b3d10891 Make sure cmap is mono for relevant channel masks. 2018-03-31 16:54:10 +10:00
David Reid 322688d73e Fix a bad input validation check. 2018-03-31 15:46:42 +10:00
David Reid 72b28cc0bb Make blend mode the default for channel mixing. 2018-03-31 14:47:54 +10:00
David Reid 4558800991 Improvements to blended channel mixing. 2018-03-31 14:40:47 +10:00
David Reid 86428055e5 Early untested work on spatial blending for channel conversion. 2018-03-30 18:14:58 +10:00
David Reid 69c4a35e38 Set up some infrastructure for channel routing. 2018-03-28 19:59:23 +10:00
David Reid 52584ba5a8 Const-correctness improvements. 2018-03-25 16:45:04 +10:00
David Reid 13b95af695 Consistency changes. 2018-03-25 16:41:16 +10:00
David Reid a4ddf17998 Format converter bug fixes. 2018-03-25 16:28:01 +10:00
David Reid bbe719c426 Fix sign/sine wave typos.
Don't think I'll ever stop making this mistake...
2018-03-25 14:51:40 +10:00
David Reid 19f4630c92 Rename mal_get_sample_size_in_bytes() to mal_get_bytes_per_sample(). 2018-03-25 13:57:14 +10:00
David Reid a95005af03 Add a sine wave generator. 2018-03-25 13:06:56 +10:00
David Reid 0a3d077c04 Fix warnings. 2018-03-25 11:33:44 +10:00
David Reid ea0203caaa Documentation. 2018-03-25 11:27:52 +10:00
David Reid 8ff85106be Fix some bugs with interleaving/deinterleaving. 2018-03-25 11:02:38 +10:00
David Reid 0eee443bd2 Remove auto-generated code. 2018-03-25 08:53:51 +10:00
David Reid bcbc7ad4a2 Early work on improving format conversion. 2018-03-25 08:50:03 +10:00
David Reid e1a2b5adbc OpenAL: Cleanly uninitialize devices. 2018-03-19 19:14:23 +10:00
David Reid 380971d682 Fixes to the C++ build. 2018-03-18 21:33:43 +10:00
David Reid ebece8281a Fix errors when opening a decoder from a file. 2018-03-18 20:50:18 +10:00
David Reid fb527d1617 DirectSound: Fix a bug with mal_context_get_device_info(). 2018-03-18 19:38:24 +10:00
David Reid d248f32919 Don't modify pDeviceInfo in mal_context_get_device_info() on error. 2018-03-18 19:36:02 +10:00
David Reid 65cb613343 Fix some errors with DirectSound. 2018-03-18 19:27:21 +10:00
David Reid 492dec699b Fix errors with GCC when Vorbis decoding is enabled. 2018-03-18 17:42:11 +10:00
David Reid 326f268b8f Fix some compilation errors with MinGW. 2018-03-18 17:39:21 +10:00
David Reid 54b590683a Move OSS above PulseAudio in the priority list. 2018-03-18 16:16:44 +10:00
David Reid 4f15e6d7e7 Whitespace. 2018-03-18 16:06:41 +10:00
David Reid f9a8ab0dcd Fix a warning. 2018-03-18 16:02:45 +10:00
David Reid 9c03157995 Use mal_strcmp() instead of strcmp(). 2018-03-18 15:43:08 +10:00
David Reid cf245b617d Remove the old device enumeration API. 2018-03-18 15:41:04 +10:00
David Reid 3b1fe5962d Disable runtime linking of pthread by default.
This causes problems on some platforms which results in random deadlocks.
2018-03-18 14:28:03 +10:00
David Reid d3edd02a74 OSS: Implement new device enumeration APIs. 2018-03-18 14:12:53 +10:00
David Reid 7c9b952fce Add building notes for Android. 2018-03-18 12:22:46 +10:00
David Reid d46409c4b5 Remove unnecessary statics. 2018-03-18 12:01:46 +10:00
David Reid a27a97f8c8 Add some thread safety to the ALSA backend. 2018-03-18 11:44:20 +10:00
David Reid 5f0f7eb2bb Simplify mal_context_get_device_info(). 2018-03-18 11:35:27 +10:00
David Reid 44ba584c28 Replace some instances of mal_strcpy_s() with mal_strncpy_s(). 2018-03-18 10:56:42 +10:00
David Reid 2c01858f3a SDL: Implement the new device enumeration APIs. 2018-03-18 10:29:36 +10:00
David Reid 59f01c5be0 OpenAL: Implement the new device enumeration APIs. 2018-03-18 10:02:12 +10:00