Commit Graph

24 Commits

Author SHA1 Message Date
David Reid af2c185a1d Update example in README. 2018-02-25 20:01:23 +10:00
David Reid c47c416dd7 Update readme with info on the decoding API. 2018-02-25 10:14:44 +10:00
David Reid 35af204e21 Clean up whitespace. 2017-12-03 17:09:23 +10:00
David Reid 5d0705b34e Check the return value of mal_device_start() in examples. 2017-12-03 17:02:30 +10:00
David Reid c340035fe6 Polish the SDL backend and the Emscripten build.
* Remove dependency on SDL.h where possible
 * Use run-time linking where possible
 * Support both SDL 1.2 and SDL 2
 * Add device enumeration when using SDL 2

The Emscripten build currently uses SDL 1.2 because it avoids the need
for "-s USE_SDL=2" when compiling. This may change later if there's
ever a need or if there's enough demand.
2017-11-19 12:04:58 +10:00
David Reid 7649aa5348 Add jar_mod and jar_xm to readme. 2017-11-18 15:18:49 +10:00
David Reid 847392496a Add a note to the readme to make it clear mini_al does not load files. 2017-11-11 09:46:47 +10:00
David Reid 45eecb92b8 Update features list. 2017-11-05 20:00:24 +10:00
David Reid 2fb12e0fe0 Fix sample code in readme. 2017-10-28 13:31:41 +10:00
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