Commit Graph

15 Commits

Author SHA1 Message Date
David Reid c63e4d038d Update readme. 2017-06-25 16:52:27 +10:00
David Reid ab5713d036 Update readme. 2017-06-25 16:29:02 +10:00
David Reid ba74830079 Update documentation. 2017-06-18 22:46:54 +10:00
David Reid 0f21153ffe Add helper APIs for initializing device configs.
* mal_device_config_init()
 * mal_device_config_init_capture()
 * mal_device_config_init_playback()
2017-06-18 21:25:01 +10:00
David Reid 73ac3cc8c0 Never say never... 2017-06-05 19:25:22 +10:00
David Reid 3f8b716ef1 Tabs to spaces. 2017-04-16 20:54:32 +10:00
David Reid dd7c706ea0 Update example in readme. 2016-11-14 20:03:59 +10:00
David Reid 84bb6f86bc Add a simple logo for the website and readme. 2016-10-28 10:47:34 +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 b5831564da Use C syntax highlighting for example. 2016-10-21 13:25:58 +10:00
David Reid 3a1072e30f Update example in readme. 2016-10-21 13:24:33 +10:00
David Reid 46aaa53f2c Update documentation and add support for default buffer sizes and periods. 2016-10-21 10:33:13 +10:00
David Reid 58989ea134 Update documentation. 2016-10-15 22:42:46 +10:00
David Reid aab6cde982 Lots of work on improving synchronization and thread-safety:
- Use binary semaphores as the synchronization primitive for the worker thread
  - Generalize the worker thread so as to avoid having different worker thread
    for each backend.
  - Make state changes atomic

General improvements bug fixing:
  - Fix an error where the DirectSound backend would immediately send the
    application a bunch of invalid audio data.
  - Have the ALSA backend request more audio data only immediately before it's
    ready to write it to the device.
  - General improvements on documentation.
  - Update readme.
2016-10-15 21:02:46 +10:00
David Reid d2920b1812 Initial commit. 2016-10-14 16:10:34 +10:00