Commit Graph

11 Commits

Author SHA1 Message Date
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 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 cdc49541a2 API CHANGE: Move pUserData from device_init() to device_config_init().
This change makes it consistent with mal_pcm_converter, mal_src, etc.
2018-12-30 17:29:03 +10:00
David Reid 17be86aa4c Updates profiling and dithering tests. 2018-12-30 11:04:10 +10:00
David Reid 62f2d6931c Fix the dithering example from the last commit. 2018-08-26 08:06:31 +10:00
David Reid 51fd450593 Enable debug output for the dithering test. 2018-08-26 07:57:55 +10:00
David Reid 59726df2c2 MAL_IMPLEMENTATION to MINI_AL_IMPLEMENTATION 2018-05-21 20:03:11 +10:00
David Reid 9e14a9f8f8 Update tests. 2018-04-29 16:42:47 +10:00
David Reid 859720ec2b Add helpers for initializing format converter configs. 2018-04-29 13:24:35 +10:00
David Reid 994c86fceb Add initial support for dithering. 2018-04-29 13:17:30 +10:00