Commit Graph

624 Commits

Author SHA1 Message Date
Ahmad Fatoum a8cd5b2dcf Support {Net,Open}BSD OSS
Fixed this build failure building raylib:
http://www.cpantesters.org/cpan/report/a069fade-0e1f-11e8-a1cf-bb670eaac09d

Functionality is untested, but it now compiles on NetBSD. A quick google search for
libossaudio OpenBSD indicates that linking to libossaudio would be required there too.

raylib issue: raysan5/raylib#463
2018-02-11 12:19:33 +01:00
David Reid 7f6218e847 Merge branch 'master' of https://github.com/dr-soft/mini_al 2018-02-03 20:22:08 +10:00
David Reid d4c12dbf80 Fix some warnings when compiling with Visual C++. 2018-02-03 20:19:36 +10:00
David Reid 5dc5258fdf Fix a warning. 2018-01-26 12:58:33 +10:00
David Reid f47ec961a1 Version 0.6a 2018-01-26 12:40:08 +10:00
David Reid 679ae6de6c Fix errors with channel mixing when increasing the channel count. 2018-01-26 06:27:52 +10:00
David Reid bd744e7ed7 Improvements to the build system for the OpenAL backend. 2017-12-14 19:32:12 +10:00
David Reid ed3b3761ab Fix a typo. 2017-12-09 10:11:22 +10:00
David Reid b1ca581019 Prepare version 0.6. 2017-12-08 20:16:55 +10:00
David Reid 89e89e4a7b Tweak some values for Raspberry Pi. 2017-12-08 20:08:03 +10:00
David Reid da78f93e0d Fix compilation error with some placeholder code. 2017-12-06 18:44:47 +10:00
David Reid 6db4bc58c2 Update change log. 2017-12-03 17:24:18 +10:00
David Reid 35af204e21 Clean up whitespace. 2017-12-03 17:09:23 +10:00
David Reid 8727d3d8ba Clean up. 2017-12-03 11:10:28 +10:00
David Reid cfb3a64010 ALSA: Experimental work on device-specific default buffer sizes. 2017-12-03 10:34:13 +10:00
David Reid 0b2967c278 Add mal_dsp_config_init(). 2017-12-03 07:58:20 +10:00
David Reid 63cdc5efe9 Improvements to the OpenAL backend. 2017-12-02 14:14:37 +10:00
David Reid ac00f05825 Add support for compile-time linking for OpenAL. 2017-12-02 10:13:01 +10:00
David Reid f2b59e8135 Fix a typo.
Fixes issue #7
2017-12-02 10:01:58 +10:00
David Reid 585ad04812 SDL: Fix incorrect buffer size calculations. 2017-11-24 21:43:11 +10:00
David Reid f47fa01c00 Add SDL to mal_get_backend_name(). 2017-11-23 18:31:05 +10:00
David Reid 695dc2b902 Fix VC6 build. 2017-11-21 19:34:17 +10:00
David Reid 3acd03b133 Fix a bug in mal_device_start() where the wrong value is returned.
This issue affects the OpenSL and SDL backends.
2017-11-21 06:34:21 +10:00
David Reid 2eebeda814 Fix an error with the SDL 1.2 backend. 2017-11-20 21:45:41 +10:00
David Reid 54c6842eff Update documentation. 2017-11-19 19:36:50 +10:00
David Reid 4ae623e9b4 Add some early work on tracking the name of devices.
This commit implements a generic method for determining the name which
simply performs an enumeration and compares against IDs. The problem
with this technique is that it cannot know the name of the default
device without help from the backend.
2017-11-19 15:50:12 +10:00
David Reid ef8c2c2d00 Update the title. 2017-11-19 12:18:06 +10:00
David Reid 7d5a59ee50 Update build instructions for Emscripten. 2017-11-19 12:13:29 +10:00
David Reid 4eb4077add Fix typo. 2017-11-19 12:09:53 +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 fbecb5dedf Initial work on an experimental SDL backend for Emscripten. 2017-11-18 22:29:15 +10:00
David Reid 1e18d68fd5 Update log. 2017-11-18 11:51:07 +10:00
David Reid 3f45def36b Don't use run-time linking of pthread on Android nor Emscripten. 2017-11-18 11:44:58 +10:00
David Reid ce05440620 Fix compilation errors and warnings with the Android build. 2017-11-18 11:28:06 +10:00
David Reid 3bf830079f Don't use OSS with Emscripten. 2017-11-18 10:23:36 +10:00
David Reid 132af6ff6f Add APIs for getting friendly names of backends and formats. 2017-11-18 10:03:36 +10:00
David Reid a0776ec3e0 Disable backends based on the availability of development packages. 2017-11-17 20:16:54 +10:00
David Reid 88071f0c62 Update change log. 2017-11-16 21:41:23 +10:00
David Reid 0a69454845 Improve auto-generation of format conversion routines. 2017-11-16 21:36:04 +10:00
David Reid 77128b0a05 Improvements to f32 -> u8/s16/s24/s32 conversion routines.
Not quite sure what I was originally thinking with these. Much better
now.
2017-11-16 20:24:02 +10:00
David Reid 1ff3fa7d4c Fix some warnings. 2017-11-16 19:32:42 +10:00
David Reid 0419a51651 Fix a bug in mal_src_read_frames_ex(). 2017-11-16 19:15:48 +10:00
David Reid cc04821ba6 Add support for dynamically adjusting sample rates for SRC/DSP. 2017-11-15 21:46:41 +10:00
David Reid a08b942ed9 Add support for flushing the internal buffers when reading from dsp/src 2017-11-14 20:29:22 +10:00
David Reid 0ee4296dcc Fix build for some versions of MinGW. 2017-11-13 21:33:54 +10:00
David Reid 6ca0ec2032 Improvements to event and thread APIs. 2017-11-13 21:13:24 +10:00
David Reid 824e3a4699 API CHANGE: SRC/DSP callbacks now take a pointer to a mal_src/mal_dsp. 2017-11-13 20:49:34 +10:00
David Reid 21736d59b0 Fix a stale comment. 2017-11-13 20:37:40 +10:00
David Reid 3ede2b1f88 API CHANGE: Expose and improve mutex APIs. 2017-11-13 20:35:14 +10:00
David Reid c8cd85ebde Merge pull request #4 from gen2brain/master
Add macOS library names
2017-11-13 18:38:56 +10:00