David Reid
45622bd777
Update revision history.
2021-11-14 17:34:20 +10:00
David Reid
ac60f859f2
Merge pull request #371 from cdsteinkuehler/uninitialized
...
Fix use of uninitialized variables
2021-11-14 17:34:11 +10:00
Charles Steinkuehler
51059e935c
Fix use of uninitialized variables
...
When shutting down, the resultALSA variable can be used when
uninitialized in the ma_device_read__alsa and ma_device_write__alsa
routines. This has been verified by both gcc warnings and in
application code (we were occasionally seeing segfaults when our
callback routine was being passed a crazy large value for the number of
frames read when shutting down).
Signed-off-by: Charles Steinkuehler <charles@steinkuehler.net >
2021-11-08 23:55:11 +00:00
David Reid
dbca7a3b44
Version 0.10.42
2021-08-22 19:12:59 +10:00
David Reid
04fe72010f
Experimental fix for an hang when stopping devices.
...
Public issue https://github.com/mackron/miniaudio/issues/355
2021-08-22 09:09:43 +10:00
David Reid
5a5d523d09
Version 0.10.41
2021-08-15 16:39:54 +10:00
David Reid
9d9395d78f
Fix some warnings with ma_libopus and ma_libvorbis.
2021-08-04 22:22:19 +10:00
David Reid
e40373a083
Update dr_libs and fix platform detection for ARM64.
2021-07-31 10:06:44 +10:00
David Reid
cb56bb6c64
Update revision history.
2021-07-31 09:20:00 +10:00
David Reid
e358e72f67
Core Audio: Fix a possible deadlock when uninitializing a device.
2021-07-31 09:16:52 +10:00
Steven Noonan
43f2e28c20
coreaudio: don't allow g_DeviceTrackingInitCounter_CoreAudio to go negative
...
Signed-off-by: Steven Noonan <steven@uplinklabs.net >
2021-07-31 09:08:02 +10:00
Steven Noonan
4be3cc597a
coreaudio: ensure we increment the tracking counter properly
...
Signed-off-by: Steven Noonan <steven@uplinklabs.net >
2021-07-31 09:03:48 +10:00
David Reid
37fe1343f0
Version 0.10.40
2021-07-23 19:33:39 +10:00
David Reid
3622dbea39
Update revision history.
2021-07-23 18:36:27 +10:00
David Reid
05e99c880b
PulseAudio: Fix a glitch when pausing and resuming a device.
...
Public issue https://github.com/mackron/miniaudio/issues/348
2021-07-22 19:28:38 +10:00
David Reid
88f8574197
Fix a bug when converting from stereo to mono.
...
Public issue https://github.com/mackron/miniaudio/issues/347
2021-07-21 20:37:42 +10:00
David Reid
8bf157f10e
Version 0.10.39
2021-07-20 19:27:24 +10:00
David Reid
14a7f719b6
PulseAudio: Fix a null pointer dereference.
2021-07-20 19:04:46 +10:00
David Reid
36779c368b
PulseAudio: Enable the stop callback when a stream is suspended.
...
Public issue https://github.com/mackron/miniaudio/issues/341
2021-07-17 12:19:40 +10:00
David Reid
5dd8fbe9ad
Improvements to the main worker thread.
...
* If starting the backend fails, don't attempt to enter the data loop
* If stopping the backend fails, don't fire the stop callback.
2021-07-17 12:13:42 +10:00
David Reid
07e56c70cf
Core Audio: Try fixing a deadlock when switching devices.
...
Public issue https://github.com/mackron/miniaudio/issues/344
2021-07-17 11:23:01 +10:00
David Reid
af70f1bd5d
Update revision history.
2021-07-17 10:29:11 +10:00
David Reid
efcaa21981
Core Audio: Fix compilation errors.
2021-07-17 10:26:04 +10:00
David Reid
ef55f6741d
Merge branch 'dev'
2021-07-14 20:46:50 +10:00
David Reid
0f5cb7829d
Version 0.10.38
2021-07-14 20:46:38 +10:00
David Reid
922c95997e
PulseAudio: Experimental work on improving the stop callback.
...
Public issue https://github.com/mackron/miniaudio/issues/341
2021-07-14 18:49:17 +10:00
David Reid
2d63e2347a
Update revision history.
2021-07-14 17:33:03 +10:00
David Reid
6040956255
Fix an error where ma_log_level_to_string() is sometimes not compiled.
...
This was happening because ma_log_level_to_string() was only being
included when MA_DEBUG_OUTPUT is enabled.
2021-07-14 17:26:30 +10:00
David Reid
3a5bfa9f9b
Fix some strict C89 issues.
2021-07-14 17:20:49 +10:00
David Reid
1161e47ec7
Merge pull request #343 from Clownacy/dev
...
Fix `ma_log_postv` not returning anything under certain circumstances
2021-07-14 17:18:14 +10:00
Clownacy
f56ea20470
Restructure ma_log_postv to be more consistent
...
The `__STDC_VERSION__ >= 199901L` and the `_MSC_VER >= 1200` code
had different styles for handling errors, so I've made them match.
2021-07-13 23:35:41 +01:00
Clownacy
b65a117132
Fix function not returning anything
...
MSVC 6 was printing a warning about this.
2021-07-13 23:33:15 +01:00
David Reid
7bb96d8a3c
Fix a crash when initializing a decoder without a config.
2021-07-11 17:04:29 +10:00
David Reid
655c087651
Avoid some superfluous decoder backend initialization.
2021-07-11 17:01:25 +10:00
David Reid
dcec55f7b8
OpenSL: Fix a bug with setting of stream types and recording presets.
2021-07-10 12:21:42 +10:00
David Reid
66b5ccb577
Update issue template.
2021-07-10 11:58:54 +10:00
David Reid
1b38b6901d
Update issue template.
2021-07-10 11:58:17 +10:00
David Reid
b8599906b7
Fix some bugs when playing inlined sounds.
...
Public issue https://github.com/mackron/miniaudio/issues/340
2021-07-10 11:57:29 +10:00
David Reid
90c7eef4f4
Version 0.10.37
2021-07-06 17:40:38 +10:00
David Reid
486bd7939c
Merge pull request #332 from Clownacy/dev
...
Fix invalid vsnprintf buffer size
2021-07-05 17:20:46 +10:00
Clownacy
72c1a74c86
Fix invalid vsnprintf buffer size
...
Was performing a `sizeof` on a pointer, which causes a warning to be
generated.
2021-07-04 12:30:44 +01:00
David Reid
5f145039b1
Fix build when compiling with MA_NO_THREADING.
2021-07-04 15:41:55 +10:00
David Reid
ffb5a995c0
Minor improvements to listener indexes.
2021-07-04 14:03:11 +10:00
David Reid
cff3398af4
Move some macros over to the main library.
2021-07-04 13:48:11 +10:00
David Reid
cc6ef11076
Clean up some old matrix code.
2021-07-04 13:42:43 +10:00
David Reid
a99eac9f22
Use rectangular channel mixing instead of shuffling mode.
...
This fixes an issue where excess channels are not heard when the sound
source has more channels than the listener.
2021-07-04 13:37:16 +10:00
David Reid
2d8b0633a4
Fix some channel mapping bugs.
2021-07-04 13:35:29 +10:00
David Reid
35ce972bd3
Make sure heap layouts are aligned properly.
2021-07-04 11:53:21 +10:00
David Reid
ebaa74d608
Improvements to channel conversion during spatialization.
...
This commit also fixes a bug where panning is incorrectly getting
applied to non-directional channels, such as mono and LFE channels.
2021-07-04 11:37:50 +10:00
David Reid
072efc6f8b
Minor updates to channel mapping.
2021-07-04 11:36:24 +10:00