Commit Graph

38 Commits

Author SHA1 Message Date
David Reid e00fe077f4 "mal_" to "ma_". 2019-03-06 20:55:51 +10:00
David Reid d72e7b1fce "mini_al" to "miniaudio". 2019-03-06 20:42:48 +10:00
David Reid af1c305d21 Update test project file. 2019-03-06 20:16:50 +10:00
David Reid 0c3b5412dc Remove unplugging test. 2019-03-06 19:31:05 +10:00
David Reid 3a58e3a1d0 Fix resampling tests. 2019-03-06 19:29:57 +10:00
David Reid f30f75a836 Remove the blocking test. 2019-03-06 19:25:43 +10:00
David Reid dae1bdd6c2 Update advanced config example. 2019-03-05 19:24:15 +10:00
David Reid cf59525ef3 Experimental fix for full-duplex on WASAPI. 2019-02-25 18:25:19 +10:00
David Reid 9ed608a452 Update simple playback example. 2019-02-24 21:01:53 +10:00
David Reid 5b5d51cf68 Update project files. 2019-02-24 20:12:28 +10:00
David Reid 32c64703dd Initial working implementation of full-duplex on WASAPI. 2019-02-09 17:39:49 +10:00
David Reid 6548f4e2f1 Set up some infrastructure for separate in/out device IDs. 2019-01-27 12:45:09 +10:00
David Reid e8e4198440 A little bit of prep work for the full-duplex example. 2019-01-27 06:56:35 +10:00
David Reid 24167ba3c2 API CHANGE: Remove the device type and ID from mal_device_init/_ex(). 2019-01-13 09:31:08 +10:00
David Reid 661115f130 API CHANGE: Simplify API for device config initialization.
There is now only a single API for initializing a device config which
is mal_device_config_init() and takes the device type as it's only
parameter. By default this will use the device's native configuration.

The device ID is also set in the device config. The next commits will
be changing mal_device_init() to remove the device type and ID from the
parameter list since they are now specified in the config.
2019-01-12 16:04:28 +10:00
David Reid 4980fcf3c5 Reorder parameters in the callback.
This swaps the order of the input and output pointers so that it's
consistent with the order used by memcpy().
2019-01-12 11:04:11 +10:00
David Reid 67db06350d API CHANGE: Change the data callback in preparation for full-duplex.
This removes the two separate callbacks for sending and receiving data
to/from the device to a unified callback that's used for both input and
output. The new callback takes a pointer to both an input and output
buffer. When the device is opened in playback mode the input pointer
will be set to null. Likewise the output pointer will be set to null
for capture devices. Both input and output pointers will be non-null
for full-duplex devices.
2019-01-12 09:34:30 +10:00
David Reid 4e6f702f55 Update test_0 and project files. 2019-01-05 13:19:28 +10:00
David Reid 7a2a2a404b Misc. updates to the new resampler. 2018-12-22 10:29:21 +10:00
David Reid fa94ca033c Update VC++ project files. 2018-12-08 09:38:09 +10:00
David Reid e84283803b More prototyping work on the new resampler. 2018-11-25 09:48:24 +10:00
David Reid 26e9721077 Add early work on a new experimental resampler. 2018-11-18 14:33:23 +10:00
David Reid 51fd450593 Enable debug output for the dithering test. 2018-08-26 07:57:55 +10:00
David Reid fadbcc31cb Update VS test project. 2018-08-18 20:14:35 +10:00
David Reid a3cad4a8b9 Add unplugging test to VS project. 2018-08-16 18:39:33 +10:00
David Reid 1a6a47af41 WASAPI: Try fixing a glitching bug with capture. 2018-08-05 14:11:46 +10:00
David Reid 48ecee6278 Add MAL_NO_DEVICE_IO option.
This option disables device playback and capture. This is useful if you
only need mini_al's decoding and/or decoding APIs.
2018-07-17 21:16:30 +10:00
David Reid 4f4530148a Start using the new callback system for the JACK backend. 2018-07-15 20:49:06 +10:00
David Reid 223c8e84d1 Add a quick and dirty test for resampling.
This will be cleaned up later. Maybe.
2018-07-15 14:17:01 +10:00
David Reid c25318d8cf Fix a crash relating to SIMD. 2018-07-05 19:53:40 +10:00
David Reid b2815ccf6b Add SSE2 optimized implementation of f32 -> s16 conversion. 2018-05-27 17:50:56 +10:00
David Reid b6e8fcb5f7 Update tests. 2018-04-29 16:24:17 +10:00
David Reid 994c86fceb Add initial support for dithering. 2018-04-29 13:17:30 +10:00
David Reid ae6b8f95bc Update project file to use the correct output directory. 2018-04-25 16:18:37 +10:00
David Reid 87f079d982 Update tests to always use the reference implementation. 2018-04-21 15:46:48 +10:00
David Reid e0d28c16ce Add a simple profiling test. 2018-04-21 13:31:38 +10:00
David Reid 7701dc4e30 Update test and build files. 2018-04-21 12:25:55 +10:00
David Reid dbb90b80aa Add a basic test. 2018-03-18 21:37:07 +10:00