Commit Graph

156 Commits

Author SHA1 Message Date
David Reid acb5ce1595 Tabs to spaces. 2017-06-18 20:08:56 +10:00
David Reid 3348fc0a3c Update examples. 2016-12-29 20:43:31 +10:00
David Reid 1d9ccdec51 Update examples. 2016-11-14 20:02:41 +10:00
David Reid 7afcede3bd API CHANGE: Add device callbacks to mal_device_config.
Rationale:
1) It allows the callbacks to be set at initialization time which feels
   a bit more intuitive to me.
2) It avoids the need to call mal_device_set_send_callback(), etc.
3) It's a bit more consistent with the onLog callback. Previously,
   onLog would be passed to mal_device_init(), whereas onSend, etc were
   set with mal_device_set_send_callback(), etc. which feels needlessly
   inconsistent.
2016-10-26 22:20:16 +10:00
David Reid cba66e9bae API CHANGE: Pass config properties to mal_device_init() via a structure.
Rationale:
1) The number of parameters is just getting too much.
2) It makes it a bit easier to add new configuration properties in the
   future. In particular, there's a chance there will be support added
   for backend-specific properties.
2016-10-26 10:40:27 +10:00
David Reid 26ccabc834 Add examples. 2016-10-21 12:53:38 +10:00