Commit Graph

147 Commits

Author SHA1 Message Date
David Reid 9f6d101ae4 Update test project files. 2019-07-30 20:15:18 +10:00
David Reid d289e5cf6f Sketch out an API idea for the new resampler. 2019-05-09 19:10:28 +10:00
David Reid a82bb0a4f6 Add some logging to dlopen/dlclose/dlym. 2019-05-06 07:10:47 +10:00
David Reid c38983cd07 Project update. 2019-05-05 21:10:48 +10:00
David Reid e1eb387acf Add simple_mixing example. 2019-03-17 12:49:47 +10:00
David Reid b07c3efd6f Improvements to reading and seeking bytes in decoders.
* To read bytes, use ma_decoder_read_bytes().
* To seek bytes, use ma_decoder_seek_bytes().
* The read pointer is now tracked in the ma_decoder object. You can use
  this to move back to a prior position.
2019-03-07 18:31:49 +10:00
David Reid 118c878d6a Rename "mal." to "miniaudio." in the WebAudio backend. 2019-03-06 21:07:58 +10:00
David Reid ceb81f60e4 Rename files from "mal" to "ma". 2019-03-06 21:01:51 +10:00
David Reid e00fe077f4 "mal_" to "ma_". 2019-03-06 20:55:51 +10:00
David Reid f1bf58d0f8 "MAL_" to "MA_". 2019-03-06 20:51:38 +10:00
David Reid b93faa46e5 MINI_AL_IMPLEMENTATION to MINIAUDIO_IMPLEMENTATION. 2019-03-06 20:49:18 +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 2866bc2b5f Fix build with MAL_NO_DEVICE_IO. 2019-03-06 19:24:29 +10:00
David Reid 7ad511a46d Update the stop test. 2019-03-06 19:21:49 +10:00
David Reid f6dee8d762 Fix the dithering test. 2019-03-06 18:28:08 +10:00
David Reid dae1bdd6c2 Update advanced config example. 2019-03-05 19:24:15 +10:00
David Reid 5aa63802ae Update test_0. 2019-03-01 17:51:32 +10:00
David Reid ce0850848d WASAPI: Fix some errors with automatic stream routing. 2019-02-27 19:15:39 +10:00
David Reid 957de48d80 Another potential fix for some full-duplex glitching.
This change makes it so reading and writing is done on the smaller of
the period sizes between capture and playback devices.
2019-02-27 18:18:01 +10:00
David Reid 1b957471d5 WASAPI: Fix errors with exclusive mode. 2019-02-26 19:54:07 +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 01f04b249e More full-duplex bug fixes. 2019-02-24 20:03:50 +10:00
David Reid 26a218c1af Fix some full-duplex errors. 2019-02-24 19:04:49 +10:00
David Reid 5b4b7fa266 More work on full-duplex with WebAudio. 2019-02-24 13:26:18 +10:00
David Reid 51ebb048be Work in progress for full-duplex for WebAudio. 2019-02-23 15:09:39 +10:00
David Reid d1f26b4d3b Fix bugs with sndio. 2019-02-19 20:40:22 +10:00
David Reid 9f8a4b9a8a Bug fixes for audio(4). 2018-08-25 05:12:25 +00:00
David Reid 581b90d2d3 Fix OSS build. 2019-02-19 08:15:18 +10:00
David Reid d2ca42edd7 Work on removing unnecessary attributes from mal_device. 2019-02-10 08:55:41 +10:00
David Reid 574c1adccd Get full-duplex working with DirectSound. 2019-02-10 06:38:33 +10:00
David Reid f37df9a814 Remove some unused properties from device and config structures. 2019-02-09 20:33:01 +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 6caa823ea2 OSS: Work on the blocking read/write API. 2018-07-30 10:34:09 +10:00
David Reid 4e6f702f55 Update test_0 and project files. 2019-01-05 13:19:28 +10:00
David Reid a392eefb33 Add blocking API test. 2019-01-05 13:13:33 +10:00
David Reid e30bcb13dc Fix re-routing on the WASAPI backend. 2019-01-01 07:08:24 +10:00
David Reid 6a2c324f2b Merge branch 'dev' into dev_0.9
# Conflicts:
#	mini_al.h
2018-12-31 08:16:33 +10:00
David Reid 4b1c70e4d2 Web Audio: Fix compiler errors when using the -std=c99 switch. 2018-12-31 08:07:14 +10:00