Commit Graph

941 Commits

Author SHA1 Message Date
David Reid 17be86aa4c Updates profiling and dithering tests. 2018-12-30 11:04:10 +10:00
David Reid 1acb96ed22 Update test_0 for changes to the log callback. 2018-12-30 11:02:20 +10:00
David Reid c1c422d3ea Update dr_mp3. 2018-12-30 11:01:35 +10:00
David Reid 4f9f19c3d2 Change licensing to a choice of public domain or MIT-0 (No Attribution) 2018-12-30 09:49:36 +10:00
David Reid 3372de7db0 API CHANGE: Add log level to the log callback. 2018-12-30 09:45:30 +10:00
David Reid 0b8101e150 API CHANGE: Remove deprecated APIs.
Removed APIs:
 * mal_device_set_recv_callback()
 * mal_device_set_send_callback()
 * mal_src_set_input_sample_rate()
 * mal_src_set_output_sample_rate()
2018-12-30 09:41:20 +10:00
David Reid 183d839865 Simplify sized types declarations. 2018-12-30 09:32:35 +10:00
David Reid fe1bc9807a Use block comments for major sections. 2018-12-30 09:28:44 +10:00
David Reid f223ea498b Update test_0. 2018-12-30 09:23:12 +10:00
David Reid 08f9cb21b5 API CHANGE: Rename sine wave reading APIs to f32 convention.
Renamed APIs:
 * mal_sine_wave_read()    -> mal_sine_wave_read_f32()
 * mal_sine_wave_read_ex() -> mal_sine_wave_read_f32_ex()
2018-12-30 09:22:59 +10:00
David Reid d0e29698fd Update simple playback example. 2018-12-30 09:19:36 +10:00
David Reid 76e3267c78 API CHANGE: Rename decoding APIs to "pcm_frames" convention.
Renamed APIs:
 * mal_decoder_read()          -> mal_decoder_read_pcm_frames()
 * mal_decoder_seek_to_frame() -> mal_decoder_seek_to_pcm_frame()
2018-12-30 09:16:17 +10:00
David Reid 2aa05be5c6 Disable SDL on Emscripten to avoid compiler errors. 2018-12-29 16:24:40 +10:00
David Reid 36bd13742b Make FLAC decoding a bit more efficient for s16 and f32. 2018-12-29 16:01:28 +10:00
David Reid d8a0fd09c9 AAudio: Set the performance mode based on mini_al's performance profile 2018-12-29 15:48:17 +10:00
David Reid feccdedba5 Add AAudio to the readme and remove OpenAL and SDL. 2018-12-29 15:41:15 +10:00
David Reid 40b848113c Rename some functions. 2018-12-29 15:07:22 +10:00
David Reid 7e5c604863 Update documentation. 2018-12-29 14:55:27 +10:00
David Reid ec188f57c1 Merge branch 'aaudio' into dev 2018-12-29 14:22:40 +10:00
David Reid 76ca09c52f Web Audio: Call the onStop callback when the device is stopped. 2018-12-29 14:22:32 +10:00
David Reid 2ad6f67ba5 AAudio: Put the onStop callback in the right spot... 2018-12-29 13:53:28 +10:00
David Reid bfb1f07d72 AAudio: Call the onStop callback when the device is stopped. 2018-12-29 13:51:21 +10:00
David Reid 2c2c4c64bb AAudio: Remove dependency on AAudio.h. 2018-12-29 13:45:06 +10:00
David Reid b51bbe04b7 Initial work on the AAudio backend for Android.
This backend is the new priority backend for Android.
2018-12-29 13:11:57 +10:00
David Reid f7c184ea79 Disable WASM in the test build script for Emscripten.
This makes it more convenient to test because it avoids the need for
the use of emrun.
2018-12-28 22:08:53 +10:00
David Reid 1bb35612c1 Update Emscripten readme and build batch file. 2018-12-28 22:04:01 +10:00
David Reid a102ae0764 Fix a compiler error with Emscripten. 2018-12-28 22:03:32 +10:00
David Reid bd557bbf33 Add Web Audio to the list of backends. 2018-12-28 21:29:12 +10:00
David Reid 8fe0cf9a75 Fix a typo. 2018-12-28 21:27:29 +10:00
David Reid eb4ee0b1d7 Update test program. 2018-12-28 21:25:26 +10:00
David Reid f5f2749802 Get initial work on the Web Audio backend working. 2018-12-28 21:20:32 +10:00
David Reid 21f509c3ba Update Web Audio test web page. 2018-12-28 21:19:57 +10:00
David Reid 5a8d786c7d Fix compiler errors with the Web Audio backend. 2018-12-26 17:42:48 +10:00
David Reid 2eb6b39a4f Fix build of the test_0. 2018-12-26 17:42:24 +10:00
David Reid a9852f3e1f Start version controlling a Web Audio test web page. 2018-12-26 11:54:43 +10:00
David Reid 73df4bba58 Add some boilerplate for the Web Audio backend. 2018-12-26 11:50:00 +10:00
David Reid 7a2a2a404b Misc. updates to the new resampler. 2018-12-22 10:29:21 +10:00
David Reid 2407933fb8 Add some asserts and validation checks to the OpenSL backend. 2018-12-17 20:27:54 +10:00
David Reid 647a61e664 Simplify device starting and stopping. 2018-12-17 19:39:43 +10:00
David Reid 0694af4032 Update external libs. 2018-12-16 21:30:18 +10:00
David Reid d8c9057bc8 Add support for custom weights to the channel router. 2018-12-16 13:25:40 +10:00
David Reid ae7097303f Add rectangle channel mix mode which is an alias of planar_blend. 2018-12-16 08:19:58 +10:00
David Reid 560013b89b Prepare for update to new APIs of dr_* decoders. 2018-12-16 08:18:41 +10:00
David Reid ed1bcd1a99 OpenSL: Do not explicitly set the device state to stopped.
This change makes it consistent with iOS.
2018-12-14 18:52:45 +10:00
David Reid 666f39c93f Initial work on a basic test program for the resampler.
This test will be replaced later with something better.
2018-12-10 20:56:30 +10:00
David Reid c8ba70cc35 Bug fixes for the new resampler. 2018-12-10 20:50:21 +10:00
David Reid 3fd31f29c1 Add quick and dirty s16 read implementations for the resampler. 2018-12-09 10:11:20 +10:00
David Reid 1a2445e887 Bug fixes for the new resampler. 2018-12-09 09:36:59 +10:00
David Reid b390ef9826 Add untested support for interleaved streams to the new resampler. 2018-12-09 08:04:01 +10:00
David Reid 640ce6c5f6 Change mal_interleave/deinterleave_pcm_frames to take a 64-bit count. 2018-12-09 08:01:11 +10:00